Vous êtes sur la page 1sur 77

Monday, June 21, 2010

Sample Question Paper 01


This post was published to C-DAC Entrance Exam Syllabu... at 12:19:23 AM 6/21/2010

Sr. Question No. ________performs and supervises the execution of instructions and directs other 01 devices of computer to act as per their designated functions. All of the following are input devices 02 EXCEPT 03 04 05 06 07 08 09 10 11 ALU Touch screen Direct access Zip disk Numeric Keypad Software Control Unit RAM Main Memory 2 Option1 Option2 Option3 Option4 Answer

12

13 14 15 16 17

None of these 4 options Random None of these Magnetic disk is a ________ storage device Indirect access 1 access options Which of the following are not Hard disk Disk packs Floppy disk Winchester Disk 3 Which of these keys belong to QWERTY Alphanumer All of these null 4 keyboard ic Keys options Collection of Programs is Instructions Hardware Procedure 1 All of these _______is a program execution. Procedure Process Algorithm 2 options All of these _______ is an operating system MS-DOS WINDOWS LINUX 4 options The conversion of digital data to analog form Modulatio Demodulation Sampling Modem 1 is _______ n Vaccum None of these The first generation machines used _________ Transistors IC`s 1 Tube options The input interfaces transforms the data into hexa binary octal decimal 2 _________code MULTIPROC PARELLEL FUZZY LOGIC Super computers use __________ and RISC ESSING AND PROCESSI AND __________ technologies to solve complex AND 2 PARELLEL NG AND NEUTRAL problems faster CISC PROCESSING RISC TECHNIQUE System Command Job control All of these Different types of user interfaces include 4 calls language language options _______ is a device capable of changing Trasistor Transducer Sampler Scanner 2 signals from one form to another. The interface that enables similar networks to Bus Cable Router Bridge 4 communicate is called network modem A value written into a program instruction that does not change during the execution of Identifiers Constants Objects Operators 2 program. Algorithms can be represented in various ways PROGRA FLOWCHART DECISION SPREADSHEET 4 EXCEPT MS S CHARTS Punch Cards Mouse

_________ symbol is used for Processing of data. The ______ symbol is used to indicate the comments/remarks on the contents of a 19 procedure in order to clarify some point of the flowchart. All of the following are computer Language 20 Processors EXCEPT: Language Primarily used for internet-based 21 applications 18 The errors that occur in computer program 23 is________ 24 Program errors are known as ________

Oval

Parallelogram Rectangle

Diamond

Document Annotaion Translation Software C++ Logical error Bugs

Arrow

Connector None of these options FORTRAN

Compiler ADA Syntax error Virus

Interpreter JAVA

4 3 3 2

25

The component of data base management system is ________

Data Data definition manipulation Language Language Indexed Sequential

Syntax error None of these and Logical options error All of these Errors options Data definition Language None of these and Data options manipulatio n Language Sequential only windows operating system 2ndday Batch All of these options None of these options

26

The file organization method which stores records in no specific order is called:

Direct

27 C can be used on Which of the following is not a valid identifier? void main() { int A=0, B=0, C=0, D=0; if((A==B)&&(A*B<=B)) { 29 if(D==1) C=1; else if(A==1) C=2; } else

Only MSonly unix DOS operating operating system system name_23 __tail__

28

10

00

01

11

C=3; if((B==0)&&(A==B)&&(A!=1)) D=1; } What are the final values of C and D? #include<stdio.h> void main() { 30 int x=10; (x<0)?(int a =100):(int a =1000); printf(" %d",a); } If `a` is an integer variable, a = 5/2; will return 31 2.5 a value: What is the output of the following code : #include<stdio.h> void main() { 32 extern int out; printf("%d",out); } int out=100; What is the output of the following code? #include<stdio.h> 34 void main() { int a = 0; 0 1 Compile Time error Runtime Error 4 Run time Compile time error error Error 1000 100 None of these options 1

100

Garbage value

printf("\n %d\t", (a = 10/a)); } Write a for loop which will read five characters (use scanf) and deposit them into 35 the character based array words, beginning at element 0. #include<stdio.h> void main() { while (1) { if (printf("%d",printf("%d"))) 36 break; else continue; } } The output is What is the output of the following code? #include<stdio.h> char *someFun() { char *temp = "String constant"; 37 } main() { puts (someFun()); return temp; String constant Null value Error None of these options 1 Compile Goes into an time error infinite loop Garbage values None of these options

for( loop = for( loop = 0; 0; loop < loop <= 5; 5; loop++ loop++ )scanf( )scanf(

for( loop = 0; loop < 4; None of these loop++ options )scanf(

} What is the output of the following code? #include<stdio.h> int Check(int); void main() { printf("\n%d\t",Check(100)); } int Check(int a) 38 { if(a%2==0) { return 1; break; } return 0; } The expression temp1 = f(); temp2 = g(); 39 temp3 = h(); temp4 = temp2 * temp3; temp5 = temp1 * temp4; is equivalent to 40 If you don`t initialize a static array, what will 0 be the elements set to? an undetermined value order a floating point number subscript the character constant `\0` data type 1 3 f() + g() * Any of these None of these f() + (g() * h()) h() options options 4 1 0 Error None of these options

41 Elements in an array are identified by a unique symbol

_______. What is the output of the following code? #include<stdio.h> void main() 42 { int arr[2][3][2]={{{2,4},{7,8},{3,4},}, {{2,2},{2,3},{3,4}, }}; printf("\n%d",**(*arr+1)+2+7); } What is the output of the following code? #include<stdio.h> void main() { 43 int arr[] = {10,20,30,40,50}; int x,*ptr1 = arr, *ptr2=&arr[3]; x = ptr2 - ptr1; printf("\n%d\t",x); } An address is a ________, while a pointer is a variable, 44 _________. location #include"stdio.h" main() { int *p1,i=25; 45 void *p2; p1=&i; p2=&i; p1=p2; Program will not compile Garbage value 6 3 Compile Time error Runtime Error 2 16 7 11 Error 1

variable, position

constant, variable

None

25

Address of I

p2=p1; printf("%d",i); } The output of the above code is : main() { char thought[2][30]={"Don`t walk in front of me..","I am not follow"}; 46 printf("%c%c",*(thought[0]+9),*(*(thought+0 )+5)); } What is the output of this program? 47 ptr equivalent of a[i][j] is Given the statement, 48 maruti.engine.bolts = 25; which of the following is true? struct num { int no; char name[25]; }; 49 void main() { struct num n1[]={{25,"rose"},{20,"gulmohar"},{8,"geran ium"},{11,"dahalia"}}; printf("%d%d"n1[2].no,(*&n1+2)->no+1); 88 89 98 8 , unpredictable 2 ((*a+i)+j) *(*(a+i)+j) structure bolts is nested within structure engine **a+i+j none of these options 2 kk

Don`t walk in I may not front of me follow

structure structure maruti is engine is nested nested within within structure maruti structure engine

structure maruti is nested within 2 structure bolts

} What is the output of this program? What is the output of the following program? void main() { struct player { 50 char name[30]; unsigned char player_number; float batting_average }; printf("size = %d", sizeof (struct player)); } A _______ is a linear list in which additions 51 and deletions take place at the same end. 52 Stack can be represented using 53 Stack is not used in size = 32 size= 35 size= 36 size= 33 3

Stack Arrays

Queue Arrays or linked list

Recursion Quick Sort

None of the above Only linked None of the list above Postfix Simulation Notation Linked list enque(Q,X) push(Q,X)

1 2 4 4

Which of the following is not an operation of 54 queue, assuming that queue has items `Q` and empty(Q) deque(Q,X) `X`? Consider a linked list of n elements. What is 55 the time taken to insert an element after an O(log2n) O(n) element pointed by some pointer? One data One data and The node of the circular doubly linked list and two 56 one address must have: address fields fields macro conditional 57 The function of the C Preprocessor is: replaceme inclusion nt for( a = for( a = `a`; a `z`; a < <= `z`; a = a + The statement that prints out the character set `a`; a = a - 1) 58 from A-Z, is 1) printf("%c", printf("%c &a);

O(1) Two data and two address fields file inclusion

O(n log2n) Two data and one address fields

All of the above. 4

for( a = `A`; a <= `Z`; a = for( a = `Z`; a <= a + 1) `A`; a = a + 1) printf("%c", printf("%c", a); a);

", &a); /*consider that file zzz.h starts here*/ printf("Hello"); /*and ends here*/ void main() 59 { #include "zzz.h" printf("World"); } What is the output of the above program void menu( The function called menu which prints the text int menu( void void ) { string "Menu choices", and does not pass any ){ printf("Me data back, and does not accept any data as printf("Menu nu parameters, looks like choices"); } choices"); } #define Which of the following are correctly formed INCH #define SQR #define statements PER FEET (X * X) (X) 12 Front==rea When is linear queue said to be empty ? Front=rear-1 r The data type created by the data abstraction Class Structure process is called Peer-to-peer relationship is a type of Associatio Aggregation _________. n int menu( char string[] None of the ){ above printf("%s", string); } World Hello HelloWorld Compilaion Error 3

60

61

#define #define SQR(X) SQR (X* X 4 (X) * (X) * X) 1 3 3 4

62 63 64

65 An object has _____.

66 A derived class

67 Reusability can be achieved through. 68 An object containing other object is called_____.

Front=rear+ Front=rear+1 1 Abstract User Define Data type Data type None of these Link options All of these State Behaviour Identity. options. Inherits Inherits data data Object can members and members access member Inherits and protected functions from constructors member members base class as and destructor. functions with the dot well as Inherits from base operator. constructors and class. destructor. Inheritance All of these Composition. Association. . options Containing None of these Containing Composition and options

4 2

69 UML stands for

Unique Unified modeling modeling language. language packaging.

Composition Unified Unified master modern laqnguage language encapsulatio grouping n.

The term given to the process of hiding all the details of an object that do not contribute to its data70 essential characteristics is called hiding. _____________.

71

72

73 74 75 76 78 79 80 81 82 83

84

All Objects data will be stored in Compiler same Default will not Object creation If constructor is not provided then memory constructor will compile is not possible area so be provided the class overwriting of data will happen A feature in Overloadin which member Overloading g different function with without None of these Method overloading is _________ member same name and argument options function of different pasing. a class signature. snow : tree : WATERFALL : CASCADE :: missile : launch wave : undulate freeze exfoliate redundant heavenly : SATURINE : MERCURIAL :: saturn : venus wolf : sly : wordy starry flood : EXPLOSION : DEBRIS :: famine : food fire : ashes disease : germ water artifacts : tools : instruments : DOCUMENTS : ARCHIVE :: actors : stage museum worker musicians apathy : immorality : frequency : TENACITY : WEAK :: pity : strong caring wrong known stamp : diaper : BANDAGE : WOUND :: gloves : hands cast : fracture envelope baby confirmed announced : included : RESOLVED : DOUBT :: suggested : idea : suspicion candidacy guest innocuous deleterious : required : compulsory : PROHIBITED : REFRAIN :: : forbid embark decide comply ASSUAGE : humiliate intensify convert solidify COURT : reject uncover infect subject The In 1950, transylyvania earned $ 1 million in number of average Average tourist revenue.By 1970, tourist revenue tourists the number of expenditure per stay per doubled and in 1980, it reached the sum of $4 has total hotel rooms tourist has tourist has million Each of the following, if true may increased has increased. increased increased explain the trend in tourist revenue except: from 1950 to 1980

4 3 1 1 1 4 1 4 2 1

85 86

87

89

90

91

92

93

94

Each of the following could be the number of 4 5 6 8 2 white puppies in the shelter EXCEPT sushil is the son of the teacher. mohan is the definitely teacher and he has a son and daughter probably true cannot say probably false 2 true therefore mohan is the father of sushil Typically the entrepreneur is seen as an individual who owns and operates a small business. But, simply to won and operate a An owner Someone who Entrepreneu Entrepreneurs small business or even a big business does not of a large develops an rs do not are the main make someone an entrepreneur. If this person business enterprise may own and actors in 2 is a true entrepreneur, then new products are may be an be considered operate economic being created, new ways of providing services entreprene an small growth. are being implemented. Which of the ur. entrepreneur. businesses. following conclusion can be best drawn from the above passage. During 1985, advertising expenditures on Advertisin Canned food Canned food canned food products increased by 20%, while g prices Can opener products are canned food consumption rose by 25%.Each effectivene decreased production 1 available in of the following, if true, could help explain the ss relative to doubled. more stores. increase in food consumption except: increased. substitutes. Once a company has established an extensive Sales sales network in a foreign market and network some larger markets therefore has achieved substantial sales, it can be the Extensive sales countries abroad are more seems that thesemarket should be treated in a same in networks are develop adaptable to very similar fashion to those in one`s own both preferable to 4 economicall domestic courtry. It is therefore those countries where foreign less developed y faster than marketing only initial sale and representation have been and ones. others methods developed where marketing methods will have domestic to differ from domestic activities market starting from a point x jayant walked 15metres towards the west he turned to his left and walked 20 metres he then turned to his left and 32 metres 42 metres 47 metres east 27 metres south 1 walked 15 metres he then further turned to his south north right and walked 12 metres how far is jayant from the point x and in which direction? Every town with a pool hall has its share of All Every town unsavory characters. This is because the pool All pool halls All gamblers are gamblers has hall attracts gamblers and all gamblers are attract attracted by pool 3 are unsavory unsavory. Which of the following, if true gamblers. halls. unsavory. characters. cannot be inferred from the above? In winning its bitter,protracted battle to Blue Blue acquire Blue industries, Inc., Bell industries Belle Industries Industries Industries is More divestment has fulfilled its goal to lessen its reliance on is in the is in the in the takes place in the 3 tobacco holdings, while the $5.2 billion deal insurance tobacco insurance tobacco may spur more takeover activity in the business industry. business. insurance, analysts said. Every town with a pool hall has its share of All All pool halls Every town All gamblers are unsavory characters. This is because the pool gamblers attracts has attracted by pool 3 hall attracts gamblers and all gamblers are are gamblers unsavory halls

unsavory. which of the following, if true unsavory cannot be inferred from the above? Which of the following equations can be used to find a number x, if the difference between 95 x - 21 = 4x x2- 21 = 4x the square of this number and 21 is the same as the product of 4 times the number? How many terms of the series -9 , -6 , -3 96 ,.........must be taken such that the sum may be 11 13 66? If the measures of the three angles of a triangle 97 are (3x + 15), (5x - 15), and (2x + 30), what is 75 60 the measure of each angle? A boy takes a 25 question test and answers all queations. His score is obtained by giving him 4 points for each correct answer, and then 98 17 18 subtracting 1 point for each wrong answer. He obtains a score of 70, how many questions did he answer correctly? First Second Which is a better investment? 14% stock at 99 investment investment is Rs.120 or 10% stock at Rs.90 ? is better better I sell 20 boxes for Rs. 132 gaining thereby the 100 cost price of 4 boxes. What is the cost price of 5.0 4.8 each? If the ratio of women to men in a meeting is 4 101 to 1, what percent of the persons in the 20% 25% meeting are men? 102 .03 times .05 is 15% 1.5% 103 What is the length of side BC ? 3 5 If the lengths of the two sides of right triangle adjacent to the right angle are 8 and 15 104 15.8 16 respectively, then the length of the side opposite the right angle is

characters

x2 = 21-4x

x + 4x2=21

10

45

25

19

20

Both are equally good 5.5

None of the above. 6.6

33 1/3% 0.15% (34)1/2 17

80% 0.015% 7 17.9

1 3 3 3

Monday, June 21, 2010


Sample Question Paper 02
Sr. Question No. 01 02 03 04 ________performs and supervises the execution of instructions and directs other devices of ALU Control Unit RAM computer to act as per their designated functions. ______Gate is the Universal gate NAND OR AND Direct Indirect Random Magnetic disk is a ________ storage device access access access Modern magnetic tapes use 8 bit ________code EBCDIC BCD ASCII format for data recording Extends Projects the Analog to information computer` Digital and from a SCSI Interface helps in s Bus Digital to computer on outside Analog a large the Conversions screen computer ___________ is the Software made available on Firmware Fireware Casetool Hardware stored in ROM. System Command Job control Different types of user interfaces include calls language language A process is selected for running from the READY queue in FIFO sequence. If the process Round runs beyond a certain fixed length of time, it is SJF Relocation Robin interrupted and returned to the end of the READY queue. This is known as The interface that enables similar networks to Bus Cable Router communicate is called network modem _______ computers perform the complex processing by directly measuring the discrete Analog Digital Hybrid physical quantities. Amplitud _______is not a Modulation Technique Phase Frequency e RISC CISC processor processor Parellel processor Main Memory 2 NOR 2 None of these 1 options All of these 1 options It is an Interface unit between I/O device and Ports Abstraction All of these options Option1 Option2 Option3 Option4 Answer

05

06 07

1 4

08

FCFS

09 10 11

Bridge Personal Light

4 2 4

The fifth generation computers worked on the 12 principle of_________ 13

Physical devices of a computer is User Hardware Software a____________ software In the third generation of computers which of the Mini Micro Main frame 14 Super computer 1 following type of machines was introduced? computers computers Computers Scanning Sampling Digitization is composed of __________ and Selection None of these 15 and and 2 __________. and Sorting options Encoding Quantisation

None of these options is 3 correct None of these 1 options

_____ contains the addresses of all the records 16 according to the contents of the field designed as Index Subscript the record key. The programming language that was designed 17 Address ASCII for specifying algorithm Processin 18 Connector is used as a substitute for Decision g 19 Advantages of using flow charts is Effective Efficient Analysis Coding

Array ALGOL

File

None of these 3 options 3

Flow Lines Input Output Effective Time Analysis and consuming Efficient Coding

20

21

22 23 24 25 26 27

28

It is a program May be written so The following statement is valid in context with Also Known Intrinsic or All of these that it can sub-programming: as Functions Programmer options be used Written without rewriting. Object Language wherein Encapsulation and Assembly oriented Pascal Cobol Abstraction of data is done is called as: Language programmin language g Language During system evolution __________ is to be Time Ease of All of these Failure rate considered analysis maintenance options _________ is a point at which the debugger Memory None of these stops during program execution and awaits a Watch point Break point Dump options further command. Sequentia Direct and Indexed All of these Commonly used file organization are: l Random Sequential options The file organization method which stores Indexed Direct Sequential Batch records in no specific order is called: Sequential C language came into existence in the year 1971 1958 1972 1983 double d; double d; Any of these None of these The correct statement to read a double is options scanf("%f scanf("%lf", options ", &d); &d); value != value >= value <= Which is the correct statement to check whether 99 && 100 && value >= 100 || 100 || value a number is in the range of 100 to 1000 value value value <=1000 <=1000 !=1000 <=1000 What is the output of the following code #include<stdio.h>

4 3 4 1 3 2

29

main() {

Compile 10 10 time error

Runtime error

None of the above

int x=10, j=20; y=x, y?(x,y)?x: y: y; printf("%d %d", x,y); } 30 The value of the expression 3 ^ 2 & ~ 1 is : What is the output of the following code? #include<stdio.h> void main() { int a=14; 31 a += 7; a -= 5; a *= 7; printf("\n%d",a); } What is the output of the following code #include<stdio.h> main() 32 { int a = 5; printf("%d %d %d %d %d",a++, a--,++a,--a,a); } The statement which reproduces the following output, is 1 33 22 333 55665 56655 45654 45545 4 112 98 89 None of these 1 options

a = 1; while(a <= 5){

a = 1;

a = 1;

a = 1;

while(a <= while(a <= while(a <= 5){b = 1; 5){ 5){printf(" ");b 2 = 1; while(b while(b <= while(b <= a){ <= 5){printf("% while(a <= a){printf( d", a);b = b b){printf("%d", "%d ", printf("%d",

4444 55555

a);b = b + a);b = b + 1;} 1;} ;a = a + 1;}

+ 1;}

a);b = b + 1;} a = a + 1;}

a=a+ printf(" ");a 1;printf(" = a + 1;} ");}

#include<stdio.h> void main() { while (1) { if (printf("%d",printf("%d"))) 34 break; else continue; } } The output is Passing a copy of a variable into a function Passing a Choosing a A function that pointer to a random does not return 1 variable into value for a any values a function variable Compile Goes into an Garbage time error infinite loop values None of these 3 options

35 What does the term `call-by-value` refer to?

What is the output of the following code? #include <stdio.h> main() { 36 char string[] = "Hello World"; display(string); } void display(char *string) Hello World Garbage value Compile time error None of the above 3

{ printf("%s", string); } What is the output of the following code? #include<stdio.h> func(a,b) int a,b; { return (a= (a==b)); } main() 37 { int process(), func(); printf("The value of process is %d", process(func,3,6)); } process (int (*pf) (), int val1, int val2) { return((*pf) (val1,val2)); } What is the output of the following code? #include<stdio.h> void main() 38 { int arr[2][3][2]={{{2,4},{7,8},{3,4},}, {{2,2},{2,3},{3,4}, }}; 16 7 11 Error 1 Error Garbage value The value of Null Value process is 0 3

printf("\n%d",**(*arr+1)+2+7); } The statement 39 int n[4] = { 11, -13, 17, 105} What is the output of the following code? #include<stdio.h> void main() { 40 int i; int a[5] = {1,2,3}; for(i=0;i<5;i++) printf("\n%d",a[i]); } What is the output of the following code? #include<stdio.h> void main() { 41 int arr[] = {10,20,30,40,50}; int *ptr = arr; printf("\n %d\t %d\t",*++ptr, *ptr++); } What is the output of the following code ? void main() 42 { int i = 100, j = 200; const int *p=&i; 100 200 300 None of the above 2 30 20 30 10 20 30 30 30 2 123 No output garbage garbage 12300 There is a run 3 time error is wrong; it assigns assigns the assigns the gives an the value value 17 to value -13 to error 17 to n[3] n[2] n[2] message 3

p = &j; printf("%d",*p); } void main() { float x[2][3]={{1.1,1.2,1.3}, {2.1,2.2,2.3}}; 43 printf("%1.1f", *(*(x+1))); } What does the printf statement is the above code print #include<stdio.h> void main() { int I,fun1(),fun2(),fun3(); int (*f[3])(); f[0]=fun1; f[1]=fun2; 44 f[2]=fun3; for(I=0;I<3;I++) (*f[I])(); } fun1(){ printf("what");fun2();} fun2(){printf("happened");} fun3(){printf("Tulika");} What is the output of this program? Interpret the following statement : 45 void(*b)(int *); what what happened happened Tulka what happened happened Tulika 1.1 2.3 2.1 2.2 3

Error:Invalid pointer assignment

b is a invalid pointer to statement a function

b is a b is a pointer of pointer to a type int which 1 void which is a pointer to a

which takes a pointer to an int and returns a void struct { int acct_no; float balance; } customer, *pc = & customer; 46 The member acct_no can be accessed by a. pc->balance b. *pc->balance c. *pc.balance d. (*pc).balance What is the output of the following code? #include<stdio.h> void main() { union result { 47 int marks; char grade; } res; res.marks = 90; res.grade = `A`; printf("\n%d\t%c",res.marks,res.grade); 90 A garbage A a and b a and c

can be void typecast as a pointer to int

b and d

a and d

Error

garbage garbage

} Memory Memory needed needed for for storing the storing smallest the largest variable variable

48 The memory allocated to the union is equal to

Compiler dependent

None of these 1 options

Transform this expression to infix form? 49 50

51 52 53

54

55

((A+B)*C$+*ABC- $+GF-None of the (D-FGDE$ ED*C+BA above E))$(F+G) AB+C*DE--FG+$ A _______ is a linear list in which additions and None of the Stack Queue Linked list deletions take place at the same end. above A list of data items usually words or bytes with the accessing restriction that elements can be Stack Memory Linked list Heap added or removed at one end of the list, is known as Queue has ------indices 0ne two three none Before deleting an element from list we make it is not a it is not an it is an list it must be full. sure that invalid list empty list Which of the following is a tabular listing of contents of certain registers and memory location Loop Program Subroutine Byte sorting at different times during the execution of a program trace program program program? What is time required to insert an element in a O(1) O(log2n) O(n) O(n log2n) stack with linked implementation? What is the output of the following code? #include<stdio.h> void main() { int i=5,j=0;

3 1

1 2 3

56 while ( i-- && ++j) { printf ("\n%d\t%d\n",i,j); } }

5 1, 4 2, 3 4 0, 3 0, 2 0, 4 1, 3 2, 2 3, None of these 3, 2 3, 1 3 1 0, 0 0, 1 4, 0 5, options 4,

57 Why doesn`t strcat(string, `!`); work?

Perhaps string doesn`t have enough

"!" is not "!" instead None of the allowed as a of "!" should above. character. be used.

memory. struct num { int no; char name[25]; }; void main() 58 { struct num n1[]={{25,"rose"},{20,"gulmohar"},{8,"geraniu m"},{11,"dahalia"}}; printf("%d%d"n1[2].no,(*&n1+2)->no+1); } What is the output of this program? What is the output of the following code? #include<stdio.h> void main() { 59 int arr[]={0,1,2,3,4,5,6}; int i,*ptr; for(ptr=arr+4,i =0; i<=4; i++) printf("\n%d",ptr[-i]); } struct time { 60 int hours; int minutes; tt.seconds (*tt).seconds time.t tt->seconds 4 Error 65432 0 garbage garbage garbage garbage 88 89 98 8, unpredictable

43210

int second; } t; struct time *tt; tt = &t; Looking at the above declarations, which of the following refers to seconds correctly: 61 Default constructor: Requires Requires at Can be None of these no least one overridden options parameter parameter always have doesn`t have return object depends on return return value of the owner requirement value class All of these State Behaviour Identity. options. Inherits Inherits data data Object can members and members Inherits access member and constructors protected functions from member and members base class as functions destructor. with the dot well as Inherits from base operator. constructors class. and destructor. 1

62 Constructors___________

63 An object has _____.

64 A derived class

Which is a logical abstract base class for a class Bank. Athlete. Sport. Team. called "CricketPlayer"? Complex object composing of other object is Aggregati Composition None of these 66 Assosiation. called_____? on. . options A line with an arrowhead Only with a Diamond pointing line between Cannot be shape 67 Inheritance in UML can be represented by: in base class & represented in between direction derived UML. classes. of parent classes. or superclass . Which of the following do you think is used to Comma Semi-colon 68 Colon (:) Tilde (~) seperate the base classes in a base class list? (,) (;) Pass Pass Make arguments arguments general Improve data 69 Inheritance is a way to and and add classes into hiding and improve features to more encapsulation data existing specific 65

3 1

70 71 72 73 74 75 76 77 78 79 80

81

82

83

classes classes and without add features rewriting to existing them. classes. According to OOP, What is the kind of Aggregati Composition Inheritance. Friend. relationship we should not have for two classes. on. . rancid : myopic : euphonious : Odoriferous : Smell :: decrepit : age taste vision sound pond : desert : RAIN : DELUGE :: ore : iron street : road ocean camel fruit : CONE : PINE :: bulb : flower acorn : oak needle : fir berry bird : Horse : colt :: child : adult seed : fruit sheep : lamb eaglet itinerary : tenant : volume : BLUEPRINT : CONSTRUCTION :: signal : light trip premises library pious : competent : opaque : chaste : MANDATORY : OPTIONAL :: indignant inept ornate celibate determina recklessness vanity : debauchery : Imitation : Individuality :: tion : : courage conformity morality success conclusiv INTRANSIGENT : workable recognizable amenable e foolhardin TEMERITY : negligence timidity care ess insignific SALIENT : climactic worrisome awesome ant Employee -owned The movement to ownership by unions is the Employee Employee companie Employee latest step in the progression from management participation union s union owner ownership. Employee ownership to employee in ownership generally drives up ownership can save depressed and losing mangaement enable worker have salaries and companies. All the following statements, if true raises to share in the higher wages provide support for the claim above EXCEPT morale profits. productiv e Rock and roll music started in the 1950s as a As rock young mans medium and rock is still best performer Women The physical performed by men in their twenties and thirties. s mature, performers Rock music demands of As rock performers grow into their forties and their have always is dominated performing even fifties, they are simply less physically performan played a by male rock are better capable of producing the kind of exciting music ces tend significant performers met by the they did when they were younger. All of the to become role in rock young following assumptions underline the argument less music above EXCEPT: exciting A politician wrote the following: "I realize there Most Most people the A large, are shortcomings to the questionaire method. people in the questionnair absolute However, since I send a copy of the quetionnaire who district live e method of number of

hiding.

1 3 1 3 4 1 2 4 4 3 1

84

85

86

87

88

89

to every home in the district, I believe the results received in homes. data replies is are quite representative.... I think the numbers the collection is synonymous received are so large that it is quite accurate even questionn unscientific with accuracy though the survey is not done scientifically" aire have replied Typically the entrepreneur is seen as an Someone individual who owns and operates a small who business. But, simply to won and operate a small An owner Entrepreneu develops an Entrepreneurs business or even a big business does not make of a large rs do not enterprise are the main someone an entrepreneur. If this person is a true business own and may be actors in entrepreneur, then new products are being may be an operate considered economic created, new ways of providing services are entrepren small an growth. being implemented. Which of the following eur. businesses. entrepreneur conclusion can be best drawn from the above . passage. During 1985, advertising expenditures on canned Advertisi Canned food Canned food food products increased by 20%, while canned ng prices Can opener products are food consumption rose by 25%.Each of the effectiven decreased production available in following, if true, could help explain the increase ess relative to doubled. more stores. in food consumption except: increased. substitutes. It is impossibl e to Even if measure In modern people A worldwide ban on the production of certain with societies, should give The coolants in ozone-destroying chemicals would provide only accuracy refrigeration up the use of refrigerators an illusion of protection. Quantities of such the of food is refrigerators, can be fully chemicals, already produced, exist as coolants in quantity necessary to the coolants recovered at millions of refrigerators. When they reach the of ozone- prevent already in the end of the ozone layer in the atmosphere, their action destroyin unhealthy existing useful life of cannot be halted. So there is no way to prevent g and refrigerators the these chemicals from damaging the ozone layer chemicals potentially are a threat refrigerators further. Which of the following, if true, most that exist lifeto and reused. seriously weakens the argument above? as threatening atmospheric coolants conditions. ozone. in refrigerat ors. Every town with a pool hall has its share of All Every town unsavory characters. This is because the pool All pool All gamblers gamblers has hall attracts gamblers and all gamblers are halls attract are attracted by are unsavory unsavory. Which of the following, if true cannot gamblers. pool halls. unsavory. characters. be inferred from the above? Looking at a potrait, A said "her mother`s only son is my cousin`s father". My cousin is the A`s A`s Uncle A`s sister A`s mother daughter of my maternal uncle who has an only grandmohter sister. whose potrait was "A" looking at? Which of the following is an acceptable schedule L, M, N, M, N, O, N, O, N, L, P, P, O, L, M, L starting from Monday to Friday? O, P M M

If F sits directly opposite L and between K and G M, which guest must sit directly opposite M? Which of the following equations can be used to find a number x, if the difference between the x - 21 = 91 square of this number and 21 is the same as the 4x product of 4 times the number? 92 If x + 1/x = 5, then value of x3 + 1/x3 is 125 The price of 4 rolls, 6 muffins, and 3 loaves of bread at a certain bakery is $9.10. The price of 2 93 rolls, 3 muffins, and a loaf of bread at the same $1.10 bakery is $3.90. What is the price of a loaf of bread at this bakery? The volume of a cube is numerically equal to the 94 sum of its edges. What is its total area in square 66 units? There are 4 quarts in a gallon. A gallon of motor oil sells for Rs.12 and a quart of the same oil sells for Rs.5. The owner of a rental agency has 6 95 Rs.84 machines and each machine needs 5 quarts of oil. What is the minimum amount of money she must spend to purchase enough oil ? If a certain chemical costs Rs.50 for 30 gallons, 96 then how many gallons of the chemical can be 12.5 purchased for Rs.625? The population of a town increases 4% annually but is decreased by emigration annually to the 97 10 extent of 1/2%. What will be the increase percent in three years? An employer reduces the number of employees in the ratio 9:8 and increases the wages in the 98 Rs.92.00 ratio 14:15. The difference in the amount of the bill, if the earlier bill was Rs.1890, is The towns of Andover and Diggstown are 840 miles apart. On a certain map, this distance is 99 represented by 14 inches. The towns of Lincoln 91/2 and Charleston are 630 miles apart. On the same map, the distance between them in inches is 100 If x = K + 1 / 2 and K = 3 / 2, then x = ? 1/2 90

K x + 4x2=21 75

x2- 21 = 4x x2 = 21-4x 110 45

2 2

$1.20

$1.25

$1.30

183

36

72

Rs.94

Rs.96

Rs.102

24

325

375

9.8

10.8

10.5

Rs.95.50

Rs.90.00

Rs.94.50

10

10.5

11

5/2

Monday, June 21, 2010 Sample Qestion Paper 03

Sr . Question N o. The input interfaces 01 transforms the data into hexa _________code The following is not a type 02 Analog of computers 03 ______ holds data as the CPU works with it. Processor binary Digital Memory Cache Memory octal Hybrid Processor and Memory decimal Logical Option1 Option2 Option3 Option4

Answ er

2 4 2

The connectivity channel 04 between CPU and Memory is________ Which of these is an 05 electronic card. The branch that deals with systematic application of 06 the principles of computer science is________ ___________ is a multi 07 tasking system.

BUS

None of these options None of Control Unit these options

Magnetic Strip Smart Card ATM Card Punch Card 2 Card computer engineering None of software IT these engineering engineering options Unix Linux None of these options 2

MS-DOS

08

09

10

11

________ is used by operating system to map file names to their corresponding file attributes Directories and file data, and also to provide greater flexibility to users in file naming ______ is the smallest unit Frame of data The job of the _____ layer in OSI model is to provide node-to-node communication and to hide Data-Link all the details of the communication subnet from the session layer. Which of these keys belong Numeric

Diary

Paging

File

Header

Byte

Bit

Physical

Transport

Presentation 3

null

Alphanumer All of these 4

to QWERTY keyboard ______is collection of the facts or informational raw 12 material and become information after processing.

Keypad

ic Keys

options Main Memory

Data

Database

Computer

13 SCSI Interface helps in

Extends the computer`s Bus outside the computer Monitor DAN

Analog to Digital and Digital to Analog Conversions Plotter WAN

Projects It is an information Interface from a unit 1 computer on between I/O a large device and screen Ports Keyboard LAN COM MAN 3 1

14 15

16

17

18

19

20

21

23

24 25

Which of these is not a output device. _______ is not a network type _____ contains the addresses of all the records according to the contents of the field designed as the record key. A sequence of precise and un ambiguous instructions for solving a problem in a finite number of operation is___________ ___________ symbol is used to show data transmission from one location to other. __________ is the analysis tool used for planning program logic A language which allows instructions to be represented by letters (i.e abbrevation) is_______ Language wherein Encapsulation and Abstraction of data is done is called as: During system evolution __________ is to be considered The errors that occur in computer program is________ Standard methods of organizing data are:

Index

Subscript

Array

File

ALGOL

Algorithm

Procedure

None of these options

Annotation

Offline Storage

Merge

Communica 4 tion Link

Protocol

None of PROLOG these options Assembly Language Scientific Language

Pseudocode 4

Machine language

Programmin 2 g language

Assembly Language

Object oriented Pascal programmin language g Language

Cobol

Time analysis

Ease of All of these Failure rate 4 maintenance options Syntax error None of Logical error and Logical these error options DatabaseFileObject oriented oriented Oriented 3 3

Syntax error File-oriented approach

approach

approach and Databaseoriented approach

approach

A file management system typically supports the Transaction 26 following types of files, file EXCEPT: Which of the following are keywords of the "C" language? i.if 27 ii.else iii.then iv.elseif All of the following are C 28 basic data types except: void main() { int A=0, B=0, C=0, D=0; if((A==B)&&(A*B<=B)) { if(D==1) C=1; else 29 if(A==1) C=2; } else C=3; if((B==0)&&(A==B)&&( A!=1)) D=1; 10 All are keywords

Storage file Master file Backup file 2

only i,ii and only i,ii and only i and ii iii are iv are are 2 keywords keywords keywords

int

float

char

Union

00

01

11

} What are the final values of C and D? Which statement sets the 3rd lowermost bit of an 30 unsigned integer x to 0, ^3; leaving other bits unchanged? What is the output of the following code? void main() { int a=0, b=2, x=4, y=0; 31 printf("\n%d\t,",(a==b)); printf("\n%d\t,",(a!=y)); printf("\n%d\t,",(b<=x)); printf("\n%d\t,",(y > a)); } What is the output of the following code? #include<stdio.h> void main() { char str1[]="India", str2[]="India"; 32 if(str1==str2) printf("\nBoth the string are same"); else printf("\nBoth the string are not same"); } 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 4

x|(~3);

x&(~3);

x&3;

Both the Both the string Compile Runtime string are not are same Time error Error same

What is the output of the following code? #include<stdio.h> void main() 33 { int a = 0; printf("\n %d\t", (a = 10/a)); } What is the output of the following code? #include<stdio.h> void main() { int s=0; 34 while(s++<10) { if(s<4 && s<9) continue; printf("\n%d\t",s); } } The break statement is used 35 an if statement a for loop to exit from: I have a function extern int f(int *); 36 f(&5); which accepts a pointer to an int. How can I pass a constant by reference? 37 What is the output of the x=8 y=10 12345678 1 2 3 10 9 456789 456789 3 10 0 1 Compile Runtime Time error Error 4

a program

the main() function

int five = 5; int five = 5; f(5); f(&five); f(five);

x=10 y=8

Null value

Error

following code? #include <stdio.h> main() { void swap(); int x=10, y=8; swap(&x, &y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; } Are Are necessary Take less executable to solve a main storage faster than None certain class of space iterative problems ones

38 Recursive Functions

What is the output of the following code? #include<stdio.h> void main() { 39 int arr[2][3][2]={{{2,4},{7,8}, {3,4},}, {{2,2},{2,3},{3,4}, }}; printf("\n%d",**(*arr+1)+2 +7); } 40 What is the difference 16 7 11 Error 1

first is

first is array first is

both specify 2

between the 5`s in these two expressions? int num[5]; num[5];

particular size, second particular element, is particular element, second is type element second is array size

array size

int **array2 = (int **)malloc(nr ows * int **array1 = sizeof(int (int *)); **)malloc(nro ws * sizeof(int array2[0] = *)); (int How can I dynamically *)malloc(nro 41 allocate a two-dimensional for(i = 0; i < ws * array? nrows; i++) ncolumns * sizeof(int)); array1[i] = (int *)malloc(ncolu for(i = 1; i < mns * nrows; i++) sizeof(int)); array2[i] = array2[0] + i * ncolumns; #include<stdio.h> void main() { int I=10,*p=&I,**q=&p; 42 printf("%u",***(&(*(&Q))) ); } What is the output of this program? What is the output of the following code? #include<stdio.h> 43 void main() { Error 65432 value of p is printed

int *array3 = (int *)malloc(nr Any of the 1 ows * above. ncolumns * sizeof(int));

address of p value of I is address of I 3 is printed printed is printed

0 garbage garbage garbage garbage

43210

int arr[]={0,1,2,3,4,5,6}; int i,*ptr; for(ptr=arr+4,i =0; i<=4; i++) printf("\n%d",ptr[-i]); } This pointer for any class 44 internally declared as #include<stdio.h> void prg(int); main() { int a=10,j=3,i=2; prg(a); a*=( i + j ); printf("%d",a); 45 } void prg(x) { int x; int k=2; x*=k; return (x); } What is the output of this program? Consider the program segment given below. (The 46 10 italicized numbers represent program line numbers) : 10 20 50 None of these 3

int *this;

X *thid;

const X *this;

X *const this;

1000

20

None of these options

1. #include<stdio.h> 2. int y; 3. void main() 4. { 5. int x,*px,**ppx;void f1(int *); 6. x = 10; 7. y = 1000; 8. px = &x; 9. ppx = &px; 10. f1(px); 11. printf("%d",*px); 12. } 13. void f1(int *p) 14. { 15. *p = 20; 16. printf("%d",*p); 17. } The printf() at line 11 prints the value: Consider the declaration : struct sample { 47 unsigned int a; unsigned int b; }; 1 bit 6 bits 5 bits None of the 4 above

struct sample v; The size of v.b is struct node { typedef struct char *item; { char *item; struct node Both are None of NODEPTR *next; }; 2 correct. above. next; } typedef *NODEPTR; struct node *NODEPTR; To allow the To allow the same same storage storage location to To use it location to None of the store data of instead of store data of 1 above different data structure different types at data types at different times. the same time. Append Queue Quick Sort Insert Linked list Push All of the above 4 1

The correct way for a 48 structure in C to contain a pointer to itself is

49

The main purpose of declaring a union.

The operation for adding an 50 entry to a stack is Add traditionally called: 51 Pushdown list means: 52 Stack is not used in When is linear queue said to be empty ? 55 Queue has ------indices 53 56 In case of a linked list Stack Recursion

Postfix Notation Front=rear+ Front==rear Front=rear-1 1 0ne two three Every link Links have Arrays are node has a arrays of used to hold pointer to the pointer to the list next link code next link Try %% Try $%

Simulation 4 Front=rear+ 1 1 none 2 All of the above None of these options 1

How can I print a `%` character in a printf format 57 Try \% string? I tried \%, but it didn`t work. #include<stdio.h> void prg(int); main() 58 { int a=10,j=3,i=2; prg(a); 10

20

50

None of these options

a*=( i + j ); printf("%d",a); } void prg(int x) { int k=2; x*=k; return (x); } What is the output of this program? What will happen if you try to put so many values into 59 an array when you initialize Nothing it that the size of the array is exceeded? What is the output of the following code? #include<stdio.h> void main() { int x=25, y=50, z=75, *ptr; 60 ptr = &x; *ptr *=2; ptr = &y; *ptr *=3; ptr = &z; *ptr *=4; printf("\n %d\t %d\t %d\t", x, y ,z); } What is the output of the following code : #include<stdio.h> Error 50 150 600 50 150 300 50 75 100 3

Error Possible message system from the malfunction compiler

Other data may be 3 overwritten

61

Run time error

Compile time error

100

Garbage value

void main() { extern int out; printf("%d",out); } int out=100; What is the output of the following code? #include<stdio.h> void main() { 62 int a = 20,b=100; int &n = a; n=a++; n = &b; printf("\n%d, %d",a, n); } 63 Encapsulation is Information hiding and Data Binding Data Binding All Objects data will be stored in Compiler will Object same not compile creation is memory the class not possible area so overwriting of data will happen to allocate To initialize to initialize the memory for the objects objects of it`s the objects of of it`s class class. it`s class as well as to Information hiding None of these options 3 21, 21 20, 21 21, 22 Error 4

64

If constructor is not provided then

Default constructor 4 will be provided

65

The use of constructor is ______.

None of these options.

only

allocate memory for the objects of it`s class Both Polymorphi 2 sm and Inheritance Interface inheritance 2 model. None of these 1 options Used only with attributes not with methods..

__________ is the capability to share and 66 extent the functionality of an existing class. Inheritance through 67 interface is called ________. Complex object composing 68 of other object is called_____

Polymorphism. Inheritance. Abstraction.

Implementatio Definition Delegation n inheritance. inheritance. inheritance. Aggregation Assosiation Compositio n Whether the methods & attributes are overloaded or overridden. Data Encapsulati on, Inheritance & Polymorphi sm Object based language

Whether the The (+) sign and (-) sign to methods & 69 the left of the attributes & attributes are methods signify: public or private.

Whether the methods & attributes are global or local.

Data Encapsulation, Which are the main three 70 Inheritance & features of OOP language? Exception handling Which of the following 71 programming technique focuses on the algorithm. Procedural language

Inheritance, Polymorphis m& Exception handling Object oriented language

Overloading , Inheritance & 3 Polymorphi sm Structural language

72 A derived class

73

IGNOMINY : DISLOYALTY ::

74 RAIN : DELUGE :: 75 CONE : PINE :: 76 Horse : colt :: 77 Bland : Piquant ::

Inherits data members Object can and member Inherits data Inherits access functions members and constructors protected from base member 1 and members class as well functions from destructor. with the dot as Inherits base class. operator. constructors and destructor. death : derelict : martyr : fame : heroism 1 victory fool man desert : pond : ocean ore : iron street : road 1 camel fruit : berry bulb : flower acorn : oak needle : fir 3 bird : eaglet child : adult seed : fruit sheep : lamb 4 inane : charlatan : slavish : terse : 2 relevant genuine servile serious

78 OPEN : SECRETIVE :: 79 INTRANSIGENT :

mystery : detective

80 INCREDULOUS : 81 SCRUPULOUS : 82 JEOPARDY : During 1985, advertising expensing expenditure on canned food products increased by 20 percent, Advertising while canned food 83 effectiveness consumption rose by 25 increased percent. Each of the following, if true, could help explain the increase in food consumption except Each of the following could be the number of white 84 4 puppies in the shelter EXCEPT The gateway of india is in mumbai mumbai is in 85 maharashtra therefore the false gateway of india is in maharashtra sushil is the son of the teacher. mohan is the teacher and he has a son 86 definitely true and daughter therefore mohan is the father of sushil Prof. Tembel told his class that the method of student evaluation of teachers is not valid measure of teaching quality. Students should fill Prof. Tembel out questionnaires at the received low 87 end of the semester when rating from his courses have been students. completed. Which of the following, if true, provides support for Prof. Tembel`s proposal ? The Pistons have more The Nuggets points than the Nuggets. have fewer 88 The Bullets have less points points than the than the Lakers. The Bullets. Nuggets and the Suns have

forthright : snide recognizabl conclusive workable e argumentative imaginative indifferent Wasteful Flippant Sloppy danger safety perjury tunnel : toil

better : best 3 amenable 4

irreligious 4 Shady 3 conundrum 2

Canned food price decreased relative to substitutes

Canned food Canned products opener 4 were avaible production in more doubled stores

cannot say

true

probably false

probably true cannot say

probably false

Students filled up the Students are questionnaire interested in after the teachers midterm evaluation. exam.

Teachers are not obligated to 2 use the survey results.

The The Pistons Nuggets have more have fewer points than points than the Bullets. the Lakers.

The Lakers have more 1 points than the Pistons.

the same number of points. The Suns have more points than the Bullets. If the above is true, which of the following must also be true? being being overweight is overweight always caused is the only by cause of unhappiness unhappiness and and unattractivenes unattractiven s ess unhappiness and unhappiness unattractive necessarily ness can leads to 2 cause being someone to overweight be overweight

89

A person hearing this advertisement countered,

If the 2nd and 4th saturdays and all sundays are declared holidays ,what would be the 90 24 minimum no of working days of any month of any year If G sits at the head of the table, and F in the middle seat on one side of the table 91 G and immediately on K`s left, the guest seated directly opposite F must be An employment questionnaire asks the prospective employee, "If XYZ company hires you, will you continue to use drug?" The prospective employee may not wish to indicate "yes" or "no" because 92 1. a simple "yes" or "no" answer could indict the applicant. 2. The question contains an implication to which the applicant may not wish to lend credence. 3. The question presents a moral judgment. If the operation * is defined 93 23 by *a = a2 - 2, then *(*5) is 1 only

25

23

22

2 only

1 and 2 only 2 and 3 only 3

527

529

623

94

95

96

97

98

99

10 0

10 1

On the number line shown, which point corresponds to I H the number 2.27? It is between 10 and 11 that the hour and minute hands 54 6/11 mts. of a watch are exactly 56 mts. past 10 past 10 coincident. What is the time? A trapezium ABCD is formed by adding the rectangle ABEF whose area is 6 sqr. inches and two right triangles AFD and 2t + 6 5t + 25 BEC equal in area of t sq.inches. What is the area of the trapezoid in square inches? A manufacturer of jam wants to make a profit of Rs.75 when he sells 300 jars of jam. It costs 65 paise each to make the first 100 Rs.175 Rs.225 jars of jam and 55 paise each to make each jar after the first 100. What price should he charge for the 300 jars of jam ? By selling 12 marbles for a rupee, a shopkeeper loses 20%. In order to gain 20% in the transaction he should 8 6 sell the marbles at the rate of how many marbles for a rupee? To a sugar solution of 3 liters containing 40% sugar one liter of water is added. 33 30 The percentage of sugar in the new solution is If the length of a rectangle is increased by 20% and the decreases by decreased by width is decreased by 20%, 20% 4% then the area A car traveled 75% of the way from town A to town B at an average speed of 50 10 20 kmph. The car travels at an average speed of S kmph for the remaining part of

35 6/11 mts. 57 6/11 past 2 past 10 10

2.5t + 12.5 (t + 5)2

Rs.240

Rs.250

15

None of the 2 above.

stays the same

increases by 2 10%

33.34

37.5

the trip. The average speed for the entire trip was 40 kmph. What is S? For every six metres forward a man walks, a gale force wind pushes him back 10 two metres. If he needs to 500 2 cross a 200-metre plot, how many metres will he actually walk?

480

300

240

Tuesday, June 22, 2010 Sample Qestion Paper 04

Sr. No.

Question

Option1

Option2

Option3

Option4

Answer

01 _______ is a non-volatile memory chip in which data ROM once stored cannot be altered by programmer 02 The Calculations & decision Control Unit making is done in 03 Modern magnetic tapes use 8 bit ________code format for EBCDIC data recording 04 Magnetic disk is a ________ Direct access storage device 05 Which of the following are of CD-ROM type Optical Disk: 06 Collection of Programs is 07 FAT stands for Software

PROM

EPROM

ROM and PROM Control Unit and ALU

ALU BCD Indirect access WORM Instructions

RAM ASCII Random access CD-ROM and WORM Hardware File Available Table

All of these options 1 None of these options Zip disk Procedure File Allotment Transfer 1 3 1 1

File File Allocation Administration Table Table

08 ________ is used by operating system to map file names to their corresponding file attributes and file data, Directories and also to provide greater flexibility to users in file naming 09 The OSI model has ________ 5 layers 10 __________ terminal is a graphics terminal that has a rich set of terminals 11 The fastest computers of today`s era is________ Which of these keys belong to QWERTY keyboard 12 Which of the following is true in regard to Work station. Intelligent terminal

Diary

Paging

File

6 X terminal

7 Dumb terminal

8 Smart terminal mini computer

2 2

microcomputer super computer Pentium 3 s Numeric Keypad null Alphanumeric Keys

All of these options 4

It is a powerful desktop It is not used for computer computer aided designed to design meet greater

They can be used by several All of these options 1 personnel at a time

processing power, large storage etc. 13 Rules that govern transmission of data over communication network is__________ 14 The periodic refreshing of ____________ RAM is required Router Topology Prototype Protocol 4

STATIC

DRAM

STATIC and DRAM

None of these options

15 A value written into a program instruction that does Identifiers not change during the execution of program. 16 _____ contains the addresses of all the records according to Index the contents of the field designed as the record key. 17 The flowcharts used to describe the sequence of operations for a particular problem is called 18 The method of carrying out the instructions given in the flowchart with some sample data is known as System flowcharts

Constants

Objects

Operators

Subscript

Array

File

Program flowcharts

Activity flowcharts

None of these options

Tracking

Tracing

Executing

Tracking and Tracing

19 Language wherein Encapsulation and Assembly Abstraction of data is done is Language called as: 20 Language Primarily used for ADA internet-based applications 21 Process which should be _________is not true related planned and to Debugging. scheduled properly

Object oriented programming Pascal language Language C++ It is complete when all desired verification s against specifications are done Bugs Databaseoriented approach JAVA It is process of validating the correctness of program. Errors

Cobol

FORTRAN

All of these options 4

23 Program errors are known as Virus ________ 24 Standard methods of organizing data are: 25 The component of data base management system is File-oriented approach

All of these options 2

File-oriented approach and Object Oriented Database-oriented approach approach Data definition Language and None of these options

Data definition Data Language manipulation

________

Language

Data manipulation Language all of the above main () function 4 4

26 which of the following is NOT a character constant 27 Every C program requires :

`Thank You` char

`enter values of `23.56e-03` p n r` statement arithmetic operator

28 void main() { float x[2][3]={{1.1,1.2,1.3}, 1.1 {2.1,2.2,2.3}}; printf("%1.1f", *(*(x+1))); } 29 the process of compiling and Source running a C program program includes: 30 A continue usually associated goto with __________. 31 (int) 21.3/ (int) 4.5 5 1971 6 Char

2.3

2.1

2.2

object code Else 1 1958 8 Char

executable object all of the above code If 0 1972 31 char None None 1983 32 char

4 4 1 3 3 3

32 C language came into existence in the year 33 A max width of c variable name can be 34 void main() { while(1) printf(" sunc"); }

The condition Sunc will be in while loop printed once. is illegal Hi Hello

The while loop is A linker error is an infinite loop. generated. Hello Hi Infinite no of times 22

35 main() { printf(" \n Hello"); disp(); } disp() { printf(" \n Hi"); main(); } 36 main() { char ch= 'A'; printf("%d%d", sizeof(ch) ,sizeof('A')); } 37 which of the following statement is wrong 38 void main() { float a=0.7; if(a< 0.7) printf("c"); else printf("c++"); } 39 Unions are different than structures in that

Hello Hi still stack 4 overflow Error 3 + a = b; None 2 4 1

11

12

mes = 123.56; con = `T` * `A` this = `T` * 20; c c++ c c++

union contents union members union members are not use the same are anonymous members space i only i and iii

All of above

40 Which of the following statement is correct regarding i, ii and iii arrays ? Array elements are stored in contiguous memory

none of the above

locations The size of the array can be mentioned anywhere in the program In an array'arr' the expression arr[i] refers to the i + 1th element in the array. 41 The output of the following program will be ::- main() { int a, *ptr,b,c; a=25; ptr = 25, 25, 25 &a; b= a+30; c= *ptr; printf(" %d, %d, %d ", a, b, c); } 42 Stack is constantly changing element 43 Consider the program segment given below. (The numbers represent program line numbers) : 1. #include 2. int y; 3. void main() 4.{ 5. int x,*px,**px; 6. x = 10; 7. y = 1000; 8. px = &x; 10 9. ppx = &px; 10. f3(ppx); 11. printf("%d",*px); 12.} 13.void f3(int **pp) 14.{ 15. *pp = &y; 16. printf("%d",**pp); 17.} The printf() at line 11 prints the value : 44 A linked list can have member node, which has 45 Consider the program segment given below. (The numbers represent program line numbers) : 1.#include 2. int y; 3. void main() 4. { 5. int x,*px,**ppx; 6. x = 10; 7. y = 1000;

25, 55, 25

25, 55, 55

none of these

object

memory location set of integers

100

1000

20

An elementary A next pointer data item

A list

All of the above

10

1000

20

None of the above 3

8. px = &x; 9. ppx = &px; 10. f1(px); 11. printf("%d",*px); 12. } 13. void f1(int *p) 14. { 15. *p = 20; 16. printf("%d",*p); 17. } The printf() at line 11 prints the value: 46 If there are no element in stack empty(s) returns as the TRUE value 47 Interpret the following statement : void(*b)(int *); 48 Consider the following statements. i. stack is a LIFO ii. stack is a FIFO iii. queue is a LIFO iv. queue is a FIFO 49 If stack contain no item then it is called as ___ 50 In doubly link list each node contain ______ 1 FALSE 0 1

b is a pointer to a function which takes a invalid pointer to an statement int and returns a void

b is a pointer to a b is a pointer of void which can be type int which is a 1 typecast as a pointer to a void pointer to int

only i and iii are true

only ii and iii are true

only i and iv are true

only ii and iv are true

Null stack two information node

Empty stack two pointer

Waste stack two nodes

Stack of no use double header

2 2

51 is globally accessible by all functions

An external variable

has a declaration "extern" will be initialized associated with to 0 if not All of the above. it when declared initialized. with in a function 4 5 Garbage

52 static int x=3 , y,z; void main() { int a; a= x++ * ++y 3 + ++z; printf("%d", a); } 53 void main() { int k=4; switch(k) { default : printf("A"); case 1: printf("B"); case 4: printf("C"); case 2+3 -1 :

Compilation Err

None

printf("D"); }} 54 The expression ((fpt = fopen(" sample","w" ))= = NULL) would be true if ::The file "sample" doesn't exist while fopen is being executed The file "sample" could ftp is not declared the file "sample" is 4 not be created as a FILE pointer read only. for writing

55 A function called total(), totals the sum of an integer array passed to it (as the first parameter) and returns the int total( int int total( int total of all the elements as an numbers[], int numbers[], int integer. Let the second elements ) { elements ) { parameter to the function be an integer which contains the number of elements of the array. The correct code is 56 What does the term call-byvalue refer to? 57 void main() { int k=3; while(k) { int k=1; printf("%d", k); k--; } } Passing a Passing a copy pointer to a of a variable variable into a into a function function 1 Infinite loop

int total( int numbers[], int elements ) {

None of the above 4

Choosing a A function that random value for does not return any 1 a variable values 21 Declarations syntax err 2

58 Consider the function int my(int n) { if(n!=1) return (n* my(n-1)); 20 } Call it with my(4). What is the return value of this function? 59 Suppose a, b and c are integer variables that have been assigned the values 45 a=8, b=3 and c =-5. Determine the value of 2 * b +3*(a-c) 60 What is output void main() { int n=3,a=2; a*= n+1; 7 printf("%d", a); } 61

24

16

56

54

65

None You can define your own data types and It is easier to conceptualize an object oriented program

An object Which of the following are You can define oriented good reasons to use an object your own data program can be oriented language. types taught to correct its own errors

It is easier to conceptualize an object oriented program

62 Object-oriented technology`s ______ feature means that a small change in user Abstraction requirements should not require large changes to be made to the system. 63 64 What is inheritance? 65 An object has _____. State

Modularity

Encapsulation

Modelling

Behaviour

Identity. Generalization and specialization.

All of these options. All of these options.

4 3

It is same as Aggregation of encapsulation. information.

In interface methods do Which of the following is not not have any false? implementatio n.

Any class that implements an interface must Both are true. provide the implementation. Assosiation Composition

Both are false.

66 Complex object composing Aggregation of other object is called_____ 67 A relationship that can be identified between two object entities (classes or function individuals) is called a ___________. 68 Which of the following programming technique focuses on the algorithm. 69 Shallow copy is defined as 70 The use of constructor is ______. Procedural language Memberwise copying of objects

None of these options

association

link

activity

Object oriented Object based language language

Structural language 1

There is nothing Is same like Deep None of these like shallow copy options copy To initialize the objects of it`s class as well as to None of these allocate memory options. for the objects of it`s class derelict : fool martyr : man

to allocate to initialize the memory for the objects of it`s objects of it`s class. class only fame : heroism death : victory

71 IGNOMINY : DISLOYALTY ::

72 It may be useful to think of character in fiction as a function of two ________ analogous hu disparate aggra divergent typify impulses: the impulse to manize ndize individualize and the impulse to __________. 73 GAZELLE : SWIFT :: 74 TRAP : GAME :: horse : slow swan : graceful lion : roar leash : dog novel : author net : fish

comparable deline 3 ate

lamb : bleat wall : house

3 2

75 76

Bland : Piquant ::

inane : relevant

charlatan : genuine eraser : correction fastidious : grime violent separation negligence 5

slavish : servile solvent : paint humorous : laughter complete negligence timidity 6

terse : serious

LUBRICANT : FRICTION :: balm : pain

reagent : chemical 1 servile : rebellion humane descent care 8 1 1 1 3 2

77 GRACEFUL : MOVEMENT articulate : :: speech 78 DISINTERESTED : 79 ACCOLADE : 80 TEMERITY : 81 Each of the following could be the number of white puppies in the shelter EXCEPT biased rejection foolhardiness 4

82 During 1985, advertising expensing expenditure on canned food products increased by 20 percent, Advertising while canned food effectiveness consumption rose by 25 increased percent. Each of the following, if true, could help explain the increase in food consumption except 83 Typically the entrepreneur is seen as an individual who owns and operates a small business. But, simply to won and operate a small business or even a big business does not make someone an entrepreneur. If this person is a true entrepreneur, then new products are being created, new ways of providing services are being implemented. Which of the following conclusion can be best drawn from the above passage. 84 A politician wrote the following: "I realize there are shortcomings to the questionaire method. However, since I send a copy of the quetionnaire to every home in the district, I believe the results are quite

Canned food price decreased relative to substitutes

Canned food products were avaible in more stores

Canned opener 4 production doubled

Someone who An owner of a develops an large business enterprise may may be an be considered entrepreneur. an entrepreneur.

Entrepreneurs do Entrepreneurs are not own and the main actors in operate small economic growth. businesses.

Most people who received the questionnaire have replied

Most people in the district live in homes.

the questionnaire method of data collection is unscientific

A large, absolute number of replies is synonymous with accuracy

representative.... I think the numbers received are so large that it is quite accurate even though the survey is not done scientifically" 85 Farmers in the North have observed that heavy frost is usually preceded by a full moon. They are convinced that the full moon somehow generates the frost. Which of the following, if true, would weaken the farmers convection? 86 The movement of ownership by unions is the latest step in the progression from management ownership to employee ownership. Employee ownership can save depressed and losing companies. All the following statements, if true, provide support for the claim above except: 87 The temperature must fall below 10 degrees Celsius (50 degrees Fahrenheit) for frost to occur.

Absence of a cloud cover Farmers are cools the ground superstitious. which causes frost.

No one has proven that the moon 2 causes frost.

Employeeowned companies generally have higher productivity.

Employee participation in management raises morale.

Employee union ownership drives up salaries and wages.

Employee union ownership enables 3 workers to share in the profits.

A person hearing this advertisement countered,

being overweight is always caused by unhappiness and unattractivenes s

being overweight is the only cause of unhappiness and unattractiveness

unhappiness and unattractiveness can cause someone to be overweight

unhappiness necessarily leads to 2 being overweight

88 Looking at a potrait, A said "her mother`s only son is my cousin`s father". My cousin is the daughter of my maternal A`s Uncle uncle who has an only sister. whose potrait was "A" looking at? 89 Which of the following pair of activies could be done on Monday and Tuesday? L and O

A`s sister

A`s grandmohter A`s mother

M and P

L and M

N and O

90 In a game, exactly six inverted cups stand side by Green, yellow, Magenta, green, Magenta, red, side in a straight line, and magenta, red, purple, red, purple, yellow, each has exactly one ball purple, orange orange, yellow green, orange hidden under it. The cups are

Orange, yellow, red, magenta, green, purple

numbered consecutively 1 through 6. Each of the balls is painted a single solid color. The colors of the balls are green, magenta, orange, purple, red, and yellow. The balls have been hidden under the cups in a manner that conforms to the following conditions: The purple ball must be hidden under a lowernumbered cup than the orange ball. The red ball must be hidden under a cup immediately adjacent to the cup under which the magenta ball is hidden. The green ball must be hidden under cup 5. Which of the following could be the colors of the balls under the cups, in order from 1 through 6? 91 If the angles of a triangle ABC are in the ratio of 3 : 5 : acute 7, then the triangle is 92 0.000006 * 0.0000007 = ? 0.0000000042 right isosceles obtuse 1

0.00000000004 0.0000000000042 0.00000000000042 3 2

93 Rahul buys 16 cookies, Amit buys 12 cookies and Nayan buys x cookies. The average number of cookies the three 35 bought is between 19 and 23, inclusive. What is the smallest number of cookies Nayan could have bought? 94 A cylindrical vessel of radius 4 cm contains water. A solid sphere of radius 3 cm is lowered into the water until it 9 / 2 cm is completely immersed. The water level in the vessel will rise by 95 If a certain sum of money becomes double at simple interest in 12 years, what 8 (1/3)

31

30

29

9 / 4 cm

4 / 9 cm

2 / 9 cm

10

12

14

would be the rate of interest per annum? 96 Rakesh credits 15% of his salary in fixed deposit account and spends 30% of the remainder amount on Rs. 3500 groceries. If the cash in hand is Rs. 2380, what is his salary? 97 If the price of steak is currently Rs.1.00 a pound and the price triples every 6 months, how long will it be until the price of steak is Rs.81.00 of a pound?

Rs. 4500

Rs. 5000

Rs. 4000

1 year

2 years

2 1/2 years

13 years

98 A,B and C play cricket.Ratio of A`s runs to C`s runs and C`s runs to B`s runs are same 162,108,72 as 3:2. They score altogether 342 runs. The runs A,B,C respectively scored were. 99 If the operation * is defined by *a = a2 - 2, then *(*5) is 23

108,72,162

72,108,162

162,72,108

527

529

623

100 An old picture has dimensions 33 inches by 24 inches. What one length must 2 inches be cut from each dimension so that the ratio of the shorter side to the longer side is 2:3?

6 inches

9 inches

10 1/2 inches

Tuesday, June 22, 2010


Sample Qestion Paper 05

Sr. No. 01

Question

Option1

Option2

Option3

Option4

An

_______ computers perform the complex processing by Analog directly measuring the discrete physical quantities. _______ is a non-volatile memory chip in which data ROM once stored cannot be altered by programmer Modern magnetic tapes use 8 bit ________code format EBCDIC for data recording The tape of magnetic tape storage is divided into Vertical columns called_________ and horizontal rows is called________ Which of these is an electronic card.

Digital

Hybrid

Personal

02

PROM

EPROM

ROM and PROM All of these options

03

BCD

ASCII

04

Channels and Frames and Frames Channels

Tracks and Frames

Channels and Tracks

05 06

Magnetic Strip Card

Smart Card

ATM Card

Punch Card

________ is a set of control statements and extends Application processing capability of software Computer system Different types of user interfaces include FAT stands for System calls File Allocation Table 5 JPEG

System software Command language File Administration Table 6 MPEG FOR VIDEO

Operating system Utilites Job control language File Available Table 7 MPEG FOR AUDIO All of these options File Allotment Transfer 8 All of these options

07 08

4 1 7 4

09 10 11

The OSI model has ________ layers Standard multimedia compression technique is

The mechanism of counting the 1 bits of the character bit set and adding a check bit to Parity make the total number of 1 bits even while transferring the data, is referred to as

Even Parity

Odd Parity

Error Checking 2

Very complex The shortcoming of Mark 1 It is very slow indesign and huge Unreliable computer is ___________ in size 12 13 14 Which of the following are not Hard disk Zip disk Disk packs Baud Floppy disk Bandwidth

It is very slow and also very complex indesign and huge in size

Winchester Disk 3 None of these options 2

The unit of measurement of Maud data transfer rate is ______ ______is collection of the facts or informational raw material and become information after processing.

Data

Database

Computer

Main Memory

15

Algorithms can be represented in various ways PROGRAMS FLOWCHARTS EXCEPT _____ contains the addresses of all the records according to the contents of Index the field designed as the record key. Advantages of using flow charts is The logic used to perform instructions one after another is_______ Computer languages are classified as all of the following EXCEPT: Limitation of Machine language are, EXCEPT: Effective Analysis Selection logic Machine Language

DECISION CHARTS

SPREADSHEE 4 T

16

Subscript

Array

File

17

Efficient Coding

Effective Time consuming Analysis and 4 Efficient Coding End case Assembly language Error prone None of these options High level Language Machine dependent 2

18

Sequence logic

19

Code language

2 1

20 21

Executed fast Difficult to by Computer program

These program It is easier to The program error typically detect Syntax cannot be compiled involve incorrect ________ is true for Syntax All of these error and executed until Punctuation, error. options compared to all syntax errors undefined terms, logical error are corrected no parenthesis etc. Program errors are known as Virus ________ Commonly used file organization are: _________language that Sequential Query Bugs Direct and Random Manipulation Errors Indexed Sequential DDL All of these options All of these options DML

23 24 25

2 4 1

enables users to define there requirements for extracting required information. 26 27 3.2 % 3 1 0 Hello 0.2 HiHello Err None of these 4 2 What is o/p If c=10, d=20 ( c> d ? printf(" Hi") : printf(" Hi Hello")); Which of the following are keywords of the C language? i)if ii)else iii)then iv)elseif which of the following is NOT a character constant void main() { int arr[10]; printf("%d", sizeof(arr)); getch(); }

28

All are keywords

only i,ii and iii are only i,ii and iv are only i and ii are 2 keywords keywords keywords

29 30

`Thank You` 20

`enter values of p n `23.56e-03` r` 10 Error

all of the above 4 None 1

31

Uppercase case letters are Following are the rules for not equivalent naming an identifier except: to lowercase letters What is output void main() { int n=3,a=2; a*= n+1; 7 printf("%d", a); } The keyword _______ breaks the control from while loop. break The compiler will search only the standard libraries for the file myfile.h

Should not start with a digit but can Any letter with have digits in + = sign between the name 8 6

Letter starting with

32

None

33

exit The compiler will search first the user`s default/ working directory and then the standard libraries for the file myfile.h Hello

both a and b

None

34 Consider the declaration #include Here the angled brackets indicate

The compiler will search only the None of the user`s above. default/working directory Hello Hi Infinite no of times Hello Hi still stack overflow

35

main() { printf(" \n Hello"); disp(); } disp() { printf(" \n Hi Hi"); main(); } C() { printf("C"); } B() { C(); printf("B"); } A() { CAMB printf(" A"); B(); } main() { printf("M"); A(); }

36

MABC

MCAB

MACB

37

which of the following (), **, * or /, + (), **, *, /, +, shows the correct hierarchy or ?

(), **, /, *, +, -

(), / or *, - or +

of arithmetic operations in C 38 C to it that C main() { printf(" C to it that servies C servies"); main(); } infinitely Compilation Error Linker Error C to it that C servies still stack overflow 4

39

array of an integer function The statement int (* arr [5]) array of 5 pointer pointer to five taking 5 arrays and None of above (int *, char *) means to integers functions returning an char What error would the following function give on compilation ? f(int a, int b) { int a; a=20; return a; } Missing parentheses in return statement The function should be defined as int f ( int a , int b) Redeclaration of a None of the above

40

41

If the binary equivalent of 5.375 in normalised form is 0100 0000 1010 1100 0000 0000 0000, 0000 what is the output of the following'C' program ? main() { float a = 40 AC 00 00 5.375; char *p; int i; p=(char*) &a; for(i=0;i<=3;i++) printf("%02x",(unsigned char)p[i] ) ; } Interpret the following statement : void(*b)(int *);

00 CA 00 40

00 00 AC 40

00 00 CA 04

42

b is a pointer to a function which takes a invalid statement pointer to an int and returns a void Largest Smallest

b is a pointer to a void which can be typecast as a pointer to int

b is a pointer of type int which is 1 a pointer to a void

43

From an ascending priority queue only the_________item can be removed

Rear

Top

44

Consider the program segment given below. (The numbers represent program line numbers) : 1. #include 2. int y; 3. void main() 4.{ 10 5. int x,*px,**px; 6. x = 10; 7. y = 1000; 8. px = &x; 9. ppx = &px; 10. f3(ppx); 11. printf("%d",*px);

100

1000

20

12.} 13.void f3(int **pp) 14.{ 15. *pp = &y; 16. printf("%d",**pp); 17.} The printf() at line 11 prints the value : 45 46 A stack in c is declared as a array ____ containing two objects The remove operation can only be performed, if the queue is In a doubly linked list if a node is to be deleted between two nodes, how many links of the existing list have to be modified? What is the output of the following code? void main() { int i = 100, j = 200; const int *p=&i; p = &j; printf("%d",*p); } empty structure non empty object group overloaded collection of element underflow 2 2 3

47 48

Stack is constantly changing element

memory location set of integers

49

100

200

300

None of the above

50

The value of automatic variable that is declared but 0 not initialized will be In a'C' program constant is defined before main

-1 after main

Garbage anywhere

None none of the above

3 3

51 52

Passing a Passing a pointer Choosing a A function that What does the term 'call-by- copy of a to a variable into a random value for does not return reference' refer to? variable into a function. a variable. any values. function. Consider the following declaration ::- enum color {black=-1, blue, green }; This represents The macro FILE is defined in which of the following files; A function called total(), totals the sum of an integer black= 1,blue=2, green=3 stdlib.h black= -1 ,blue = - black= -1 ,blue = an illegal 2, green= -3 0, green= 1 declaration

53

54

stdio.h

io.h int total( int numbers[], int

stdio.c None of the above

2 4

55

int total( int int total( int numbers[], int numbers[], int

array passed to it (as the first elements ) { parameter) and returns the total of all the elements as an integer. Let the second parameter to the function be an integer which contains the number of elements of the array. The correct code is 56

elements ) {

elements ) {

Passing a Passing a pointer Choosing a A function that What does the term call-by- copy of a to a variable into a random value for does not return value refer to? variable into a function a variable any values function Associativity of unary minus is void main() { int I=0; for(;I= =2;) { printf("%d", I); I++; } } right to left 0 left to right 012 from center 01 None No output

57 58

1 4

59

If ( ps->top=-1) return (true); else return (false); return (1 (psreturn (ps->top==For this group of statements >top=+1) else return(top+1); 1); suggested shorter and more return 0; efficient method The fwrite() and fread() functions handle data in When the language has the capability to produce new data type,it is called____. text form Extensible binary form Encapsulation

it can not be made shorter

60 61

hexadecimal form octal form Overloading Constructor and Attribute Use-a relationship. Constructor & destructor. Abstract Class. Composition Overriding None of these options All of these options. Both Data members and Member function. Interface and Abstract Class None of these options

2 1

62

______ is the good example of a method that is shared by Constructor all instance of a class. Which of the following are class relationships? Derived class inherits from base class. is-a relationship. Data members. Class

Attribute Part-of relationship. Member function.

1 4

63 64

65 66

A contract is implemented through.

Interface. Assosiation

4 1

Complex object composing of other object is Aggregation called_____ A relationship that can be identified between two object entities (classes or individuals) is called a function

67

association

link

activity

___________. 68 Which are the main three features of OOP language? 69 Cardinality can be represented as: 1?.n, where n Only with a line represents an between base class unlimited & derived classes value. Function redundant : wordy Requital :reverberate bird : eaglet fruit : berry pious : indignant Attribute saturn : venus Data Encapsulation, Inheritance, Inheritance & Polymorphism & Exception Exception handling handling Data Encapsulation, Inheritance & Polymorphism A line with an arrow-head pointing in direction of parent or superclass. Behavior heavenly : starry Overloading, Inheritance & Polymorphism

Cannot be represented in UML. None of these options wolf : sly

70 71 72 73 74 75 76 77 78 79 80 81

Method is another name of____ SATURINE : MERCURIAL :: KIND : BENEVOLENT :: Horse : colt :: CONE : PINE :: MANDATORY : OPTIONAL :: BLUEPRINT : CONSTRUCTION :: CELEBRATE : MARRIAGE ::

1 3

Reverentral:imprud Circumspect:shor Muddy:unclear 4 ent t-sighted child : adult bulb : flower competent : inept seed : fruit acorn : oak opaque : ornate sheep : lamb needle : fir 4 3

chaste : celibate 2

itinerary : trip signal : light window : bedroom lament : bereavement deleterious : embark intensify elastic

tenant : premises volume : library 1 pot : pan required : decide convert active face : penalty compulsory : comply solidify uninteresting 2 4 2 3

PROHIBITED : REFRAIN innocuous : :: forbid ASSUAGE : DORMANT : Studies over the last 20 years have shown that virtually all babies born to drug - addicted mothers are themselves adicted to drugs. No such correlation, however, has been shown between drug-addicted fathers and thier newborn children. It would appear, then, that drug addiction is a genetically inherited trait that is gender-linked and passed through the mother. All the following, if true, humiliate authoritative

There have been instances in which drugaddicted babies have been born to addicted fathers and non-addicted mothers.

Although some biological conditions have been shown to be genetically based, drug addiction is not among them

Prior to the recent Drug addiction is development of an acquired DNA testing, condition which which maternity 1 cannot be passed was on from a mother unquestionable, to her children paternity could not be positively determined

would weaken the argument above EXCEPT 82 During 1985, advertising expensing expenditure on canned food products increased by 20 percent, Advertising while canned food effectiveness consumption rose by 25 increased percent. Each of the following, if true, could help explain the increase in food consumption except The gateway of india is in mumbai mumbai is in maharashtra therefore the gateway of india is in maharashtra Ravi is the younger than sachin sachin is younger than tarun therefore ravi is the youngest among them

Canned food Canned food price products were decreased relative avaible in more to substitutes stores

Canned opener production doubled

83

false

cannot say

true

probably false

84

true

false

cannot say

probably true

85

During 1985, advertising expenditures on canned food products increased by 20%, while canned food Advertising consumption rose by effectiveness 25%.Each of the following, increased. if true, could help explain the increase in food consumption except: The movement of ownership by unions is the latest step in the progression from management ownership to employee ownership. Employee ownership can save depressed and losing companies. All the following statements, if true, provide support for the claim above except: One major obligation of the social psychologist is to provide his own discipline, the other social sciences and conceptual tools that will increase the range and the

Canned food Canned food prices Can opener products are decreased relative production available in more to substitutes. doubled. stores.

86

Employeeowned companies generally have higher productivity.

Employee participation in management raises morale.

Employee union Employee union ownership ownership drives enables workers 3 up salaries and to share in the wages. profits.

87

Social psychologist must have a strong background in other sciences

A study of social psychology should be part of the curriculim of government officials.

The social scientist has an obligation to provide the means by which social phenomena

Social phenomena are little understood 3 by those outside the field of social

reliablilty of their as will as their understanding of social own phenomena. Beyond that, responsible government officials are today turning more frequently to the social sientists for insight into the nature and solution of the problems with which they are confronted. The above argument assumes that: 88 starting from a point x jayant walked 15metres towards the west he turned to his left and walked 20 metres he then turned to his 32 metres left and walked 15 metres he south then further turned to his right and walked 12 metres how far is jayant from the point x and in which direction? If P and N are done on Thursday and Friday, then which of the following is true? L is done on Tuesday

may be understood by others

psychology.

47 metres east

42 metres north

27 metres south 1

89

L is done on Wednesday

M is done on Monday

O is done on Tuesday

90

A farmer plants only five different kinds of vegetables -- beans, corn, kale, peas, and squash. Every year the farmer plants exactly three kinds of vegetables according to the following restrictions: If the farmer plants corn, the farmer also plants beans that year. Beans, corn, If the farmer plants kale one kale, corn, year, the farmer does not peas, squash plant it the next year. In any year, the farmer plants no more than one of the vegetables the farmer planted in the previous year. Which of the following is a possible sequence of combinations for the farmer to plant in two successive years?

Beans, peas, Beans, corn, peas, squash, beans, beans, corn, squash corn, kale

Corn, peas, squash, beans, kale, peas

91 92 93

If x + 49 =8.2, then the value of x is equal to

1.20

1.40 216 221

1.44 125 400

1.89 64 200

3 2 1

If a = -1 and b = -2, what is 343 the value of (2 - ab2)3? If z = 1, y = 2.......a = 26. Find the value of z + y + x + 351 .......+a. A clock that gains two minutes each hour is synchronized at midnight with a clock that loses one minute an hour. What will 36 be the difference, in minutes, between the times shown on the two clocks when a third clock correctly shows noon? 50 copies of a book can be purchased for a sum payable 3 months hence while 51 copies can be had for same 6 % sum for cash payment. What is the rate of interest per year? The Compound interest on a sum of money in 3 years at the rate of 5% per annum is Rs.1261. What is the simple 960 interest of the same sum of money in the same number of years but at 4% per annum of simple interest. If the radius of a cylinder is tripled while its height is halved halved, its volume will be In a group of people solicited by a charity, 30% contributed Rs.40each, 45% contributed Rs.20 each, and the rest contributed Rs.12 30% each. What percentage of the total contributed came from people who gave Rs.40? A is 8 miles east of B. C is 10 miles north of B. D is 13 5 miles miles east of C and E is 2

94

24

14

12

95

8%

10 %

12 %

96

900

840

800

97

unchanged

doubled

increased by 350%

98

40%

45%

50%

99

6 miles

13 miles

18 miles

miles north of D. Find shortest distance between A and E. 100 A dishonest milk seller professes to sell milk at cost price but gains 12 1/2%. The 8 : 1 proportion of water he adds to milk is None of the above.

6:2

5:1

Tuesday, June 22, 2010


Sample Qestion Paper 06

Sr. No.

Question

Option1 11

Option2 10

Option3 12

Option4 2 1 2

Answe

01 The decimal equivalent of 1011 21 is 02 The _______ is useful device to Graph obtain the computer output in plotters the form of graphs or drawings. 03 ______ holds data as the CPU works with it. Processor

Graphic pens Memory

OCR Processor and Memory circles, sectors

Punch Cards None of these options ovals, circles

04 In a floppy, the circular plate coated with magnetic oxide, is sectors, divided into ______ and these tracks are further divided into _____. 05 Which of these is not a output device. 06 Source code analysis tools functions as ______________ 07 Monitor Design screens ,menus ,reports etc.

tracks, sectors

Plotter Testing and debugging of programs

Keyboard

COM

Optimising programs by Generate source Pointing out code from design unreachable lines given of code To cause an interrupt Algorithm Byte Main frame Computers AND Cache Memory CD-ROM and WORM None of these options

The principle task of a command language is:

To initiate To access the execution of system programs functions Procedure Frame Process Header Micro computers OR ROM WORM

08 _______is a program execution. 09 ______ is the smallest unit of data

All of these options 2 Bit 4

10 In the third generation of computers which of the Mini following type of machines was computers introduced? 11 ______Gate is the Universal gate A small high speed memory which is used to increase the speed of processing is_____ 12 Which of the following are of type Optical Disk: 13 The transistor technology was NAND RAM CD-ROM First

Super computer

NOR None of these options Zip disk Fourth generation

2 3 3 3

Third generation Second

introduced in ___________ generation

generation Low Level scheduling algorithm ASCII

generation Medium Level scheduling graphics ALGOL None of these options procedure None of these options

14 ________ is concerned with the High level decision to temporarily remove scheduling a process from the system. 15 Pictorial representation of an Algorithm is _________ 16 The programming language that was designed for specifying algorithm 17 A table used to define clearly the word statement of a problem in a tabular form is_______ 18 The flow lines are represented by the symbol of 19 Language Primarily used for internet-based applications flowchart Address

3 1 3

Design table Decoder

Decision Table

Debugging

Arrows ADA

Oval C++

Circle JAVA

Rectangle FORTRAN

1 3

20 Machine language has two part DATA format the first part OPCODE,OP OPERAND,OP OPERAND,CODE CODE,OPERAN 1 is__________ and the second ERAND CODE OP D part is __________ 21 The process of incorporating changes in an existing system to enhance, update its features is_________. System System Maintenance Valuation System evaluation Syntax error and Logical error DDL None of these options None of these options DML 1

23 The errors that occur in Syntax error Logical error computer program is________ 24 _________language that enables users to define there requirements for extracting required information. Query Manipulation

25 The file organization method that can be used with magnetic Direct tape storage is: 26 Which of the following are keywords of the "C" language? i.if All are ii.else keywords iii.then iv.elseif 27 The largest permissible magnitude of an integer constant is: 28 The expression, a = 7/22 *

Sequential

Indexed Sequential

None of these options

only i,ii and iii are keywords

only i,ii and iv are only i and ii are keywords keywords

same as the same as the octal integer short integer number number 8.28 6.28

same as integer 3.14

None of these options 0

4 4

(3.14 + 2) * 3/5; evaluates to 29 The Output of the following code is: #include void main( ) { float a = 1, b; int m = 3, n = 5; b = (a ? m : n)/2.0; printf ("%3.1f ", b); }

5.0

3.0

1.5

1.0

30 Which statement sets the 3rd lowermost bit of an unsigned ^3; integer x to 0, leaving other bits unchanged? 31 What is the output of the following code? #include void main() { int a = 32, b = 66; if (a, b) printf("\n%d",a); else printf("\n%d",b); } 32 What is the output of the following code? #include void main() { int a = 20; printf("%d",a + `F`); } 33 The statement that compares the value of an integer called sum against the value 65, and if it is less, prints the text string "Sorry, try again", is 34 What is the output of the following code? #include void main() { int s=3,score=200; switch(s) { case 1: printf("\n %d ",score + 1); case 2:

x|(~3);

x&(~3);

x&3;

32

66

Error

None of these options

Error

20

90

garbage value

if( sum < if( sum <= 65 ) "65" ) printf("Sorry, printf("Sorry, try again" ); try again" );

if( 65 == sum ) if( sum < 65 ) printf("Sorry, try printf("Sorry, try again" ); again" );

203

203 207 212

203 204 205

None of these options

printf("\n %d\t",score + 2); case 3: printf("\n %d\t",score + 3); case 4: printf("\n %d\t",score + 4); case 5: printf("\n %d\t",score + 5); } } 35 What is the output of the following code? #include aaa() { printf("hi"); } bbb() { printf("hello"); } ccc() { printf("bye"); } main() { int (*ptr[3]) (); ptr[0]=aaa; ptr[1]=bbb; ptr[2]=ccc; ptr[3]=(); }

hi

hello

bye

error

36 When a function is called in C and parameters are passed into reference the routine, the variables passed by 37 Sending a copy of data to a program module is called _____. Recursion

value

address

None of these options

Passing a reference

Passing a value

None

38 What will happen if you assign The element a value to an element of an Nothing, its Other data may will be set to array whose subscript exceeds done all the time be overwritten 0 the size of the array? 39 The statement int n[4] = { 11, -13, 17, 105} assigns the value 17 to n[3] Nothing is wrong; it gives an error message

Error message from the compiler

assigns the value assigns the value 3 17 to n[2] 13 to n[2]

40 What will happen if you try to put so many values into an

Possible system Error message Other data may be 3 malfunction from the compiler overwritten

array when you initialize it that the size of the array is exceeded? 41 Which of the following is the correct way of declaring a float float ptr; pointer: 42 Which of these are reasons for using pointers? 1.To manipulate parts of an array 2.To refer to keywords such as 1&3 for and if 3.To return more than one value from a function 4.To refer to particular programs more conveniently 43 float *ptr; *float ptr; None of the above 2

Only 1

Only 3

All of the above

The purpose of declaring float (*x) (int(*a)[]); is to indicate :

x is a pointer to a function that accepts an argument which is an array of amibiguous pointers to declaration integer quantities and returns a pointer to a floating point quantity.

x is a pointer to a function that accepts an argument which None of these is a pointer to an options integer array and returns a floating point quantity.

44 void main() { int I,fun1(),fun2(),fun3(); int (*f[3])(); f[0]=fun1; f[1]=fun2; f[2]=fun3; what for(I=0;I<3;I++) happened (*f[I])(); Tulika } fun1(){ printf("what");fun2();} fun2(){printf("happened");} fun3{printf("Tulika");} What is the output of this program? 45 What is the output of the following code? #include void main() 30 20

what happened

Error:Invalid what happened pointer happened Tulika assighnment

30 10

20 30

30 30

{ int arr[] = {10,20,30,40,50}; int *ptr = arr; printf("\n %d\t %d\t",*++ptr, *ptr++); } 46 typedef struct The correct way for a structure { char *item; in C to contain a pointer to NODEPTR itself is next; } *NODEPTR; 47 Individual structure member can be initialized in the structure itself 48 Given the statements, struct someone { int age; char *name; } *person; the C statement that will print out the name of the person is : 49 The operation for adding an entry to a stack is traditionally called: 50 Transform this expression to infix form? AB+C*DE--FG+$ struct node { char *item; struct node *next; }; typedef struct node *NODEPTR; False

Both are correct.

None of above.

True

Compiler dependent

None of these options

printf("%s", printf("%s", printf("%c", person.name) someone.person- None of the above 4 person->name); ; >name);

Add $+*ABC-FGDE$

Append $+GF-ED*C+BA Queue

Insert ((A+B)*C- (DE))$(F+G) Tree

Push

None of the above 3

51 Which data structure is needed to convert infix notation to Linear list postfix notation 52 In the arrary representation of circular queue when can we say Front=rear that the queue is full? 53 For queue which of following are true It is an ordered list

Stack

(rear+1)%max= (rear=front 1)%max==front All the insertions are made at rear Tree All the deletion are made from front Stack

rear=front-1

All of the above

54 A linear list, in which elements can be added or removed at Queue either end but not in the middle, is known as 55 What is the output of the following code? #include void main() 0

Deque

Compile Time error

Runtime Error

{ int a = 0; printf("\n %d\t", (a = 10/a)); } 56 Text file end with? `\n` Null value `\r` EOF the character constant `\0` character literal 4 1 2 57 If you don`t initialize a static array, what will be the elements 0 set to? 58 12.34f is a ________ constant. string literal 59 What is the output of the following code if user enters "This is a test"? #include #include void main() { char str[8]; scanf("%s",&str); printf("\n%s",str); } 60 What is the output of the following code? #include void main() { /* this is /* an example */ of nested comment */ printf("\n123"); } 61 Encapsulation is 62 Encapsulation prevents the program from becoming _______

an undetermined a floating point value number float literal double literal

This is a test This is a

This

Error

123

Compile time error

Run time Error

None of these options

Information hiding Lengthy

Data Binding

Information hiding and Data Binding Independent

None of these options Interdependent None of these options.

Complicated

63 ______ is the property of an object that distinguishes it from Identity all other object. 64 What is the term used to describe the situation when a derived class provides a Inheritance function already provided in the base class? 65 Abstract class cannot have ________-. Zero instance.

State

Behaviour.

Polymorphism. Overloading

Both Inheritance & 2 Overloading

Multiple instance.

Both Zero None of these instance & options. Multiple instance.

66 An object containing other object is called_____. 67 What name is given to a collection of components or routines? 68 Which are the main three features of OOP language? 69 Peer-to-peer relationship is a type of _________. 70 The use of constructor is ______.

Containing Bank Data Encapsulatio n, Inheritance & Exception handling Association

Composition Namespace Inheritance, Polymorphism & Exception handling Aggregation

Containing and Composition Library Data Encapsulation, Inheritance & Polymorphism Link

None of these options Schema

2 3

Overloading, Inheritance & Polymorphism None of these options

to allocate to initialize memory for the the objects of objects of it`s it`s class. class only

To initialize the objects of it`s class as well as to None of these allocate memory options. for the objects of it`s class

71 There are any number of theories to explain these events and, since even the experts paradoxical arrogant of ... disagree, it is ______ the rest of for ... abstain compensate us in our role as responsible from with scholars to _________ dogmatic statements. 72 ODE : POEM :: character : novel horse : slow fruit : berry balm : pain brick: building

incumbent on ... refrain from

opportune for ... quarrel over

ballad : song

street : intersection 3 lamb : bleat needle : fir 3 3

73 GAZELLE : SWIFT :: 74 CONE : PINE :: 75 76 LUBRICANT : FRICTION :: HAM : PORK ::

swan : graceful lion : roar bulb : flower eraser : correction acorn : oak solvent : paint Wine:grapes complete humorous : laughter active worrisome Employee union owner drives up salaries and wages

reagent : chemical 1 Chocolate:coffee humane servile : rebellion uninteresting awesome Employee union ownership enable worker to share in the profits. 3 1 1 3 1

Pickle:sardin Jelly:jam e biased articulate : speech violent fastidious : grime

77 DISINTERESTED : 78 GRACEFUL : MOVEMENT ::

79 DORMANT : 80 SALIENT : 81 The movement to ownership by unions is the latest step in the progression from management ownership. Employee ownership to employee ownership can save depressed and losing companies. All the

authoritative elastic insignificant climactic Employeeowned companies generally have higher productive Employee participation in mangaement raises morale

following statements, if true provide support for the claim above EXCEPT 82 In 1950, transylyvania earned $ 1 million in tourist revenue.By 1970, tourist revenue doubled and in 1980, it reached the sum of $4 million Each of the following, if true may explain the trend in tourist revenue except: The number of tourists has increased from 1950 to 1980

average Average stay per the number of total expenditure per tourist has hotel rooms has 4 tourist has increased increased. increased

83 Ravi is the younger than sachin sachin is younger than tarun true therefore ravi is the youngest among them 84 Monopoly is characterized by an absence of or decline in competition. The ABC company realizes that its operations are in competitive industries. Which of the following conclusions may be inferred from the above? 85 The Pistons have more points than the Nuggets. The Bullets have less points than the Lakers. The Nuggets and the Suns have the same number of points. The Suns have more points than the Bullets. If the above is true, which of the following must also be true?

false

cannot say

probably true

Monopoly is ABC`s defined as one market is not seller in a monopolistic. market.

The ABC company has no domestic competitors

The ABC company 1 is publicly owned

The Nuggets have fewer points than the Bullets.

The Pistons have more points than the Bullets.

The Nuggets have The Lakers have fewer points than more points than the Lakers. the Pistons.

86 During 1985, advertising expenditures on canned food products increased by 20%, Advertising while canned food consumption effectiveness rose by 25%.Each of the increased. following, if true, could help explain the increase in food consumption except: 87 being overweight is always caused by unhappiness and unattractiven ess

Canned food prices decreased relative to substitutes.

Canned food Can opener products are production available in more doubled. stores.

A person hearing this advertisement countered,

being overweight is the only cause of unhappiness and unattractiveness

unhappiness and unattractiveness can cause someone to be overweight

unhappiness necessarily leads to 2 being overweight

88 Looking at a potrait, A said "her mother`s only son is my cousin`s father". My cousin is the daughter of my maternal A`s Uncle uncle who has an only sister. whose potrait was "A" looking at? 89 If F sits directly opposite L,H sits at the head of the table, and G sits immediately on H`s left, One what is the total number of possible seating arrangements of the guest ? 90 If F sits directly opposite L and between K and M, which guest G must sit directly opposite M? 91 0.000006 * 0.0000007 = ?

A`s sister

A`s grandmohter A`s mother

Two

Three

Four

0.000000004 0.00000000004 0.0000000000042 0.00000000000042 3 2 2

92 The sum of digits of a two-digit number is 8 and the product of the digits is 15. What is the 4 difference between the digits of that number? 93 The price of 4 rolls, 6 muffins, and 3 loaves of bread at a certain bakery is $9.10. The price of 2 rolls, 3 muffins, and $1.10 a loaf of bread at the same bakery is $3.90. What is the price of a loaf of bread at this bakery? 94 Robert is 15 years older than his brother Peter. However, y years ago Robert was twice as old as Peter. If Peter is now b years old and b > y, find the value of b - y.

none of the above

$1.20

$1.25

$1.30

13

14

15

16

95 If paper costs 1 paisa per sheet, and a buyer gets a 2% discount on all the paper he buys after Rs 49.30 the first 1000 sheets, how much will it costs to buy 5000 sheets of paper? 96 The inside circumference of a circular running track is 88 metres long and the track is everywhere 7 metres wide. Rs. 140

Rs 50.00

Rs 39.20

Rs 49.20

Rs. 138.60

Rs. 143.70

none of the above

Find the cost of leveling the track at the rate of 18 P per square metre. 97 How many metres of silk at Rs. 4.50 a metre must a draper give 21 in exchange for 50kg of sugar at Rs. 2.70 a kg? 98 The price of jute has been reduced by 20%. If the reduced 960 price is Rs. 800 per quintal, the original price per quintal was 99 A grain merchant bought 50kg of wheat at the rate of Rs. 7 per kg. And 20 kg of wheat at the rate of Rs. 8 per kg. After 190 mixing the two, he sold at the rate of Rs.10 per kg. What was his total profit in this transaction? 100 If m = 121 - 5 k is divisible by 3, which of the following may be true? 1 only 1. m is odd 2. m is even 3. k is divisible by 3 27 30 None of the above 3

1000

980

640

510

290

none of the above

2 only

2 and 3 only

1 and 2 only

Vous aimerez peut-être aussi