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
Option1
Option2
Option3
Option4
Answer
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
12
13 14 15 16 17
ALU Touch screen Direct access Zip disk Numeric Keypad Software
Control Unit
RAM
Main Memory
2
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
Oval
Parallelogram Rectangle
Document Annotaion
Connector
2
Interpreter
None of these options
4
ADA
C++
JAVA
FORTRAN
3
Logical error
24 Program errors are known as ________
Virus
Bugs
25
The component of data base management system is ________
Data Data definition manipulation Language Language
26
The file organization method which stores records in no specific order is called:
Direct
Which of the following is not a valid identifier? void main()
Arrow
Translation Software
Syntax error
28
3
Compiler
The errors that occur in computer program 23 is________
27 C can be used on
Diamond
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
3 2
3
Sequential
Batch
1
Only MSonly unix DOS operating operating system system
only windows operating system
All of these options
4
name_23 __tail__
2ndday
None of these options
3
10
01
11
3
{ 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
00
C=3; if((B==0)&&(A==B)&&(A!=1)) D=1; } What are the final values of C and D? #include void main() { 30 int x=10;
1000
100
None of these options
1
3
2
0
3
Run time Compile time error error
100
Garbage value
3
0
Compile Time error
Runtime Error
4
Error
(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 void main() { 32 extern int out; printf("%d",out); } int out=100; What is the output of the following code? #include 34
void main() { int a = 0;
1
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
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(
1
Compile Goes into an time error infinite loop
Garbage values
None of these options
3
String constant
Error
None of these options
1
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 char *someFun() { char *temp = "String constant"; 37
return temp; } main() { puts (someFun());
Null value
} What is the output of the following code? #include int Check(int); void main() { printf("\n%d\t",Check(100)); } int Check(int a) 38
None of these options
3
f() + g() * Any of these None of these f() + (g() * h()) h() options options
4
1
0
Error
{ 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?
41 Elements in an array are identified by a unique symbol
an undetermined value order
a floating point number subscript
the character constant `\0`
1
data type
3
_______. What is the output of the following code? #include void main() 42
{
16
7
11
Error
1
6
3
Compile Time error
Runtime Error
2
variable, position
constant, variable
None
3
25
Garbage value
Address of I
2
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 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
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
kk printf("%c%c",*(thought[0]+9),*(*(thought+0 )+5));
Don`t walk in I may not front of me follow
k
4
none of these options
2
} 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?
((*a+i)+j) *(*(a+i)+j)
**a+i+j
structure bolts is nested within structure engine
structure structure maruti is engine is nested nested within within structure maruti structure engine
structure maruti is nested within 2 structure bolts
88
89
8 , unpredictable 2
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);
98
} What is the output of this program? What is the output of the following program? void main() { struct player { 50 char name[30];
size = 32
size= 35
size= 36
Stack
Queue
Linked list
52 Stack can be represented using
Arrays
Arrays or linked list
53 Stack is not used in
Recursion Quick Sort
size= 33
3
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.
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);
None of the above Only linked None of the list above Postfix Simulation Notation
1 2 4
enque(Q,X) push(Q,X)
4
O(1)
O(n log2n)
3
Two data and two address fields
Two data and one address fields
1
file inclusion
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);
3
", &a); /*consider that file zzz.h starts here*/ printf("Hello"); /*and ends here*/ void main() 59 {
World
Hello
Compilaion Error
3
int menu( char string[] None of the ){ above printf("%s", string); }
4
HelloWorld
#include "zzz.h" printf("World"); } What is the output of the above program
60
61
62 63 64
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
65 An object has _____.
66 A derived class
67 Reusability can be achieved through. 68
An object containing other object is called_____.
#define #define SQR(X) SQR (X* X 4 (X) * (X) * X)
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
1 3 3 4
1
4 2
69 UML stands for
Unique Unified modeling modeling language. language
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
packaging.
Composition Unified Unified master modern laqnguage language encapsulatio grouping n.
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
2
3
4
1
4 3 1 1 1 4 1 4 2 1
4
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
2
9
10
1
45
25
2
19
20
3
Both are equally good
None of the above.
1
5.5
6.6
3
33 1/3%
80%
1
0.15% (34)1/2
0.015% 7
3 3
17
17.9
3
Monday, June 21, 2010 Sample Question Paper 02 Sr. Question
Option1
Option2
Option3
Option4
Answer
No. 01 02 03 04
05
06 07
08
09 10 11
________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
The fifth generation computers worked on the 12 principle of_________
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
1
Abstraction
1
All of these options
4
FCFS
2
Bridge
4
Personal
2
Light
4
None of these options is 3 correct None of these 1 options
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 13
_____ 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
20
21
22 23 24 25 26 27
28
Effective Efficient Analysis Coding
Array
File
1
ALGOL
None of these 3 options
Flow Lines Input Output
3
Effective Time Analysis and consuming Efficient Coding
4
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
4
2
4 3 4 1 3 2
3
#include 29
main() {
Compile 10 10 time error
Runtime error
None of the above
2
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?
3
2
1
0
3
112
98
89
None of these 1 options
45654
45545
a = 1;
a = 1;
#include 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 main() 32 {
55665 56655
4
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
a = 1; while(a <= 5){
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
a);b = b + a);b = b + 1;} 1;}
55555 ;a = a + 1;}
+ 1;}
a=a+ printf(" ");a 1;printf(" = a + 1;} ");}
a);b = b + 1;} a = a + 1;}
#include void main() { while (1) { if (printf("%d",printf("%d"))) 34 break;
Compile Goes into an Garbage time error infinite loop values
None of these 3 options
else continue; } } The output is
35 What does the term `call-by-value` refer to?
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
Hello World
Garbage value
What is the output of the following code? #include main() { 36
char string[] = "Hello World"; display(string); } void display(char *string)
Compile time error
None of the above
3
{ printf("%s", string); } What is the output of the following code? #include func(a,b) int a,b; { return (a= (a==b)); } main() 37
{
Error
Garbage value
The value of Null Value process is 0
3
16
7
11
1
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 void main() 38 { int arr[2][3][2]={{{2,4},{7,8},{3,4},}, {{2,2},{2,3},{3,4}, }};
Error
printf("\n%d",**(*arr+1)+2+7); } The statement 39 int n[4] = { 11, -13, 17, 105}
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
What is the output of the following code? #include void main() { 40 int i;
123 No output garbage garbage
12300
There is a run 3 time error
30 20
30 10
20 30
30 30
2
100
200
300
None of the above
2
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 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;
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)));
1.1
2.3
2.1
2.2
3
what what happened happened Tulka
what happened happened Tulika
Error:Invalid pointer assignment
3
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
} What does the printf statement is the above code print #include 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 *);
which takes a pointer to an int and returns a void
can be void typecast as a pointer to int
struct { int acct_no; float balance; } customer, *pc = & customer; 46
a and b
a and c
b and d
a and d
4
90 A
garbage A
Error
garbage garbage
2
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 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);
}
48 The memory allocated to the union is equal to
Memory Memory needed needed for for storing the storing smallest the largest variable variable
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?
3 1
1 2 3
2
1
#include void main() { int i=5,j=0; 56 while ( 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,
{ printf ("\n%d\t%d\n",i,j); } }
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.
4
memory. struct num { int no; char name[25]; }; void main() 58
88
89
98
8, unpredictable
2
65432
0 garbage garbage garbage garbage
43210
4
tt->seconds
4
{ 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 void main() { 59 int arr[]={0,1,2,3,4,5,6}; int i,*ptr;
Error
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
int second; } t; struct time *tt; tt = &t; Looking at the above declarations, which of the following refers to seconds correctly: 61 Default constructor:
62 Constructors___________
63 An object has _____.
64 A derived class
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.
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
1
2
4
1
3 1
1
1
3
hiding.
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
1 3 1 3 4 1 2 4 4 3 1
3
3
4
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
2
1
4
3
4
1
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
H
J
K
3
x2- 21 = 4x x2 = 21-4x
x + 4x2=21
2
110
45
75
2
$1.20
$1.25
$1.30
4
183
36
72
4
Rs.94
Rs.96
Rs.102
2
24
325
375
4
9.8
10.8
10.5
3
Rs.95.50
Rs.90.00
Rs.94.50
3
10
10.5
11
3
1
2
5/2
3
Monday, June 21, 2010 Sample Qestion Paper 03
Sr . Question
Option1
Option2
Option3
Option4
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.
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.
08
09
10
11
Answ er
binary
octal
decimal
2
Digital
Hybrid
Logical
4
Processor
Memory
Processor and Memory
BUS
Cache Memory
None of these options None of Control Unit these options
2
1
Magnetic Strip Smart Card ATM Card Punch Card 2 Card computer engineering
MS-DOS
________ 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
None of software IT these engineering engineering options
2
3
Unix
Linux
None of these options
Diary
Paging
File
1
Header
Byte
Bit
4
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.
13 SCSI Interface helps in
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:
Keypad
ic Keys
options Main Memory
Data
Database
Computer
Extends the computer`s Bus outside the computer
Analog to Digital and Digital to Analog Conversions
Projects It is an information Interface from a unit 1 computer on between I/O a large device and screen Ports
Monitor
Plotter
Keyboard
COM
3
DAN
WAN
LAN
MAN
1
Index
Subscript
Array
File
1
ALGOL
Algorithm
Procedure
None of these options
2
Annotation
Offline Storage
Merge
Communica 4 tion Link
Protocol
None of PROLOG these options
Pseudocode 4
Machine language
Assembly Language
Programmin 2 g language
Assembly Language
Object oriented Pascal programmin language g Language
Time analysis
Ease of All of these Failure rate 4 maintenance options
Syntax error File-oriented approach
Scientific Language
Cobol
Syntax error None of Logical error and Logical these error options DatabaseFileObject oriented oriented Oriented
1
2
3 3
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
approach and Databaseoriented approach
approach
Storage file Master file Backup file 2
All are keywords
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
4
10
00
01
11
3
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;
} 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?
x|(~3);
x&(~3);
x&3;
4
0, 0, 0, 1,
0, 0, 1, 1,
0, 0, 1, 0,
4
Both the Both the string Compile Runtime string are not are same Time error Error same
2
void main() { int a=0, b=2, x=4, y=0; 31
printf("\n%d\t,",(a==b));
0, 0, 0, 0,
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 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"); }
What is the output of the following code? #include void main() 33 {
0
1
Compile Runtime Time error Error
4
int a = 0; printf("\n %d\t", (a = 10/a)); } What is the output of the following code? #include void main() { int s=0; 34
while(s++<10)
12345678 1 2 3 10 9
456789 456789 3 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
a program
the main() function
2
int five = 5; int five = 5; f(5); f(&five); f(five);
1
x=10 y=8
1
Null value
Error
following code? #include 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; }
38 Recursive Functions
Are Are necessary Take less executable to solve a main storage faster than None certain class of space iterative problems ones
1
16
7
1
first is
first is array first is
What is the output of the following code? #include void main() { 39
int arr[2][3][2]={{{2,4},{7,8}, {3,4},}, {{2,2},{2,3},{3,4}, }};
11
Error
printf("\n%d",**(*arr+1)+2 +7); } 40 What is the difference
both specify 2
between the 5`s in these two expressions? int num[5];
particular size, second particular element, is particular element, second is type element second is array size
array size
num[5]; 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));
int *array3 = (int *)malloc(nr Any of the 1 ows * above. ncolumns * sizeof(int));
array2[i] = array2[0] + i * ncolumns; #include void main() { int I=10,*p=&I,**q=&p; 42 printf("%u",***(&(*(&Q))) );
value of p is printed
address of p value of I is address of I 3 is printed printed is printed
} What is the output of this program? What is the output of the following code? #include 43
Error void main() {
65432
0 garbage garbage garbage garbage
43210
4
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
int *this;
X *thid;
const X *this;
X *const this;
4
10
20
50
None of these
3
1000
20
None of these options
3
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) :
1. #include 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
The correct way for a 48 structure in C to contain a pointer to itself is
49
The main purpose of declaring a union.
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.
The operation for adding an 50 entry to a stack is Add traditionally called:
Append
Insert
Push
4
51 Pushdown list means:
Stack
Queue
Linked list
All of the above
1
52 Stack is not used in
Recursion
When is linear queue said to be empty ? 55 Queue has ------indices 53
56 In case of a linked list
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
How can I print a `%` character in a printf format 57 Try \% string? I tried \%, but it didn`t work. #include
Quick Sort
Try %%
Simulation 4 Front=rear+ 1 1 none 2 All of the above
1
Try
%$None of these options
2
50
None of these options
3
void prg(int); main() 58
{ int a=10,j=3,i=2; prg(a);
10
20
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?
Error Possible message system from the malfunction compiler
Other data may be 3 overwritten
#include void main() { int x=25, y=50, z=75, *ptr; 60
Error
50 150 600
50 150 300 50 75 100
Run time error
Compile time error
100
3
ptr = &x; *ptr *=2; ptr = &y; *ptr *=3; ptr = &z; *ptr *=4; printf("\n %d\t %d\t %d\t", x, y ,z);
61
} What is the output of the following code : #include
Garbage value
3
void main() { extern int out; printf("%d",out); } int out=100; What is the output of the following code? #include void main() { int a = 20,b=100;
62
21, 21
20, 21
21, 22
Error
4
None of these options
3
int &n = a; n=a++; n = &b; printf("\n%d, %d",a, n); } 63 Encapsulation is
64
If constructor is not provided then
65
The use of constructor 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
Default constructor 4 will be provided
None of these options.
1
only
__________ 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
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
Inheritance, Polymorphis m& Exception handling
Which of the following 71 programming technique focuses on the algorithm.
Object oriented language
72 A derived class
73
IGNOMINY : DISLOYALTY ::
74 RAIN : DELUGE :: 75 CONE : PINE :: 76 Horse : colt :: 77 Bland : Piquant ::
allocate memory for the objects of it`s class
Procedural language
Compositio n Whether the methods & attributes are overloaded or overridden. Data Encapsulati on, Inheritance & Polymorphi sm Object based language
Both Polymorphi 2 sm and Inheritance Interface inheritance 2 model. None of these 1 options Used only with attributes not with methods..
1
Overloading , Inheritance & 3 Polymorphi sm Structural language
1
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
forthright : snide recognizabl conclusive workable e argumentative imaginative indifferent Wasteful Flippant Sloppy danger safety perjury
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
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
5
6
8
2
cannot say
true
probably false
3
probably true cannot say
probably false
2
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?
89
A person hearing this advertisement countered,
being being overweight is overweight always caused is the only by cause of unhappiness unhappiness and and unattractivenes unattractiven s ess
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.
1 only
unhappiness and unhappiness unattractive necessarily ness can leads to 2 cause being someone to overweight be overweight
25
23
22
4
H
J
L
3
2 only
1 and 2 only 2 and 3 only 3
527
529
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
623
2
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
G
F
3
35 6/11 mts. 57 6/11 past 2 past 10 10
2.5t + 12.5 (t + 5)2
1
Rs.240
Rs.250
4
4
3
1
15
None of the 2 above.
stays the same
increases by 2 10%
33.34
37.5
3
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
3
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
PROM
EPROM
ROM and PROM
1
02 The Calculations & decision Control Unit making is done in
ALU
RAM
Control Unit and ALU
2
03 Modern magnetic tapes use 8 bit ________code format for EBCDIC data recording
BCD
ASCII
All of these options 1
04 Magnetic disk is a ________ Direct access storage device
Indirect access
Random access
None of these options
1
05 Which of the following are of CD-ROM type Optical Disk:
WORM
CD-ROM and WORM
Zip disk
3
06 Collection of Programs is
Software
Instructions
Hardware
Procedure
1
07
File File Allocation Administration Table Table
File Available Table
File Allotment Transfer
1
1
FAT stands for
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
Diary
Paging
File
09 The OSI model has ________ 5 layers
6
7
8
10 __________ terminal is a graphics terminal that has a rich set of terminals
Intelligent terminal
X terminal
Dumb terminal
Smart terminal
2
11 The fastest computers of today`s era is________
microcomputer super computer Pentium 3 s
mini computer
2
Which of these keys belong to QWERTY keyboard
Numeric Keypad
All of these options 4
Which of the following is true in regard to Work station.
It is a powerful desktop It is not used for computer computer aided designed to design meet greater
12
null
Alphanumeric Keys
3
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__________
Router
Topology
Prototype
Protocol
4
14 The periodic refreshing of ____________ RAM is required
STATIC
DRAM
STATIC and DRAM
None of these options
2
15 A value written into a program instruction that does Identifiers not change during the execution of program.
Constants
Objects
Operators
2
16 _____ contains the addresses of all the records according to Index the contents of the field designed as the record key.
Subscript
Array
File
1
17 The flowcharts used to describe the sequence of operations for a particular problem is called
System flowcharts
Program flowcharts
Activity flowcharts
None of these options
2
18 The method of carrying out the instructions given in the flowchart with some sample data is known as
Tracking
Tracing
Executing
Tracking and Tracing
2
19 Language wherein Encapsulation and Assembly Abstraction of data is done is Language called as:
Object oriented programming Pascal language Language
Cobol
2
20 Language Primarily used for ADA internet-based applications
C++
JAVA
FORTRAN
3
It is complete when all desired verification s against specifications are done
It is process of validating the correctness of program.
All of these options 4
Bugs
Errors
All of these options 2
Databaseoriented approach
File-oriented approach and Object Oriented Database-oriented approach approach
3
Data definition Language and
3
21
Process which should be _________is not true related planned and to Debugging. scheduled properly
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
Data definition Data Language manipulation
None of these options
________
26 which of the following is NOT a character constant
Language
Data manipulation Language
`Thank You`
`enter values of `23.56e-03` p n r`
char
statement
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))); }
all of the above
4
arithmetic operator
main () function
4
2.3
2.1
2.2
3
29 the process of compiling and Source running a C program program includes:
object code
executable object all of the above code
4
30 A continue usually associated goto with __________.
Else
If
None
4
5
1
0
None
32 C language came into existence in the year
1971
1958
1972
1983
3
33 A max width of c variable name can be
6 Char
8 Char
31 char
32 char
3
27
31
Every C program requires :
(int) 21.3/ (int) 4.5
1
The condition Sunc will be in while loop printed once. is illegal
The while loop is A linker error is an infinite loop. generated.
35 main() { printf(" \n Hello"); disp(); } disp() { printf(" \n Hi"); main(); }
Hi
Hello
Hello Hi Infinite no of times
Hello Hi still stack 4 overflow
36 main() { char ch= 'A'; printf("%d%d", sizeof(ch) ,sizeof('A')); }
11
12
22
Error
2
37 which of the following statement is wrong
mes = 123.56; con = `T` * `A` this = `T` * 20;
3 + a = b;
4
38 void main() { float a=0.7; if(a< 0.7) printf("c"); else printf("c++"); }
c
None
1
All of above
2
none of the above
3
34
39
void main() { while(1) printf(" sunc"); }
Unions are different than structures in that
c++
c c++
union contents union members union members are not use the same are anonymous members space
40 Which of the following statement is correct regarding i, ii and iii arrays ? Array elements are stored in contiguous memory
i only
i and iii
3
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 :
25, 55, 25
25, 55, 55
none of these
2
object
memory location set of integers
3
100
1000
20
3
4
44 A linked list can have member node, which has
An elementary A next pointer data item
A list
All of the above
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;
10
20
None of the above 3
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: 46 If there are no element in stack empty(s) returns as the TRUE value
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
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
only i and iii are true
only ii and iii are true
only i and iv are true
only ii and iv are true
3
49 If stack contain no item then it is called as ___
Null stack
Empty stack
Waste stack
Stack of no use
2
two information node
two pointer
two nodes
double header
2
is globally accessible by all functions
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
52 static int x=3 , y,z; void main() { int a; a= x++ * ++y 3 + ++z; printf("%d", a); }
4
5
Garbage
2
53 void main() { int k=4; switch(k) { default : printf("A"); case 1: printf("B"); case 4: printf("C"); case 2+3 -1 :
D
Compilation Err
None
3
47 Interpret the following statement : void(*b)(int *);
50
In doubly link list each node contain ______
51
An external variable
C
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
int total( int numbers[], int elements ) {
None of the above 4
Passing a Passing a copy pointer to a of a variable variable into a into a function function
Choosing a A function that random value for does not return any 1 a variable values
1
Infinite loop
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?
24
16
2
2
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)
56
54
65
1
60 What is output void main() { int n=3,a=2; a*= n+1; 7 printf("%d", a); }
8
6
None
2
It is easier to conceptualize an object oriented program
You can define your own data types and It is easier to conceptualize an object oriented program
4
56 What does the term call-byvalue refer to? 57 void main() { int k=3; while(k) { int k=1; printf("%d", k); k--; } }
61 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
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.
Modularity
Encapsulation
Modelling
3
Behaviour
Identity.
All of these options.
4
Generalization and specialization.
All of these options.
3
Any class that implements an interface must Both are true. provide the implementation.
Both are false.
1
66 Complex object composing Aggregation of other object is called_____
Assosiation
Composition
None of these options
1
67 A relationship that can be identified between two object entities (classes or function individuals) is called a ___________.
association
link
activity
2
68 Which of the following programming technique focuses on the algorithm.
Procedural language
Object oriented Object based language language
Shallow copy is defined as
Memberwise copying of objects
There is nothing Is same like Deep None of these like shallow copy options copy
1
The use of constructor is ______.
to allocate to initialize the memory for the objects of it`s objects of 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
1
fame : heroism death : victory
derelict : fool
1
63
An object has _____.
State
What is inheritance?
It is same as Aggregation of encapsulation. information.
64
65
In interface methods do Which of the following is not not have any false? implementatio n.
69
70
71 IGNOMINY : DISLOYALTY ::
Structural language 1
martyr : man
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 __________.
comparable deline 3 ate
73 GAZELLE : SWIFT ::
horse : slow
lamb : bleat
3
74 TRAP : GAME ::
novel : author net : fish
wall : house
2
swan : graceful lion : roar leash : dog
charlatan : genuine
slavish : servile
terse : serious
eraser : correction
solvent : paint
reagent : chemical 1
77 GRACEFUL : MOVEMENT articulate : :: speech
fastidious : grime
humorous : laughter
servile : rebellion
1
78 DISINTERESTED :
biased
violent
complete
humane
1
79 ACCOLADE : 80 TEMERITY :
rejection
separation
negligence
descent
1
foolhardiness
negligence
timidity
care
3
4
5
6
8
2
Canned food price decreased relative to substitutes
Canned food products were avaible in more stores
Canned opener 4 production doubled
75 76
Bland : Piquant ::
inane : relevant
LUBRICANT : FRICTION :: balm : pain
81 Each of the following could be the number of white puppies in the shelter 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
2
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.
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.
2
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
Most people who received the questionnaire have replied
the questionnaire method of data collection is unscientific
4
Most people in the district live in homes.
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?
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.
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:
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.
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?
A`s sister
A`s grandmohter A`s mother
4
89 Which of the following pair of activies could be done on Monday and Tuesday?
M and P
L and M
N and O
3
Orange, yellow, red, magenta, green, purple
3
87
A person hearing this advertisement countered,
L 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
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?
31
30
29
4
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
9 / 4 cm
4 / 9 cm
2 / 9 cm
2
95 If a certain sum of money becomes double at simple interest in 12 years, what
10
12
14
1
8 (1/3)
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?
Rs. 4500
Rs. 5000
Rs. 4000
4
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?
2 years
2 1/2 years
13 years
2
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.
108,72,162
72,108,162
162,72,108
4
99 If the operation * is defined by *a = a2 - 2, then *(*5) is
527
529
623
2
6 inches
9 inches
10 1/2 inches
2
1 year
23
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?
Tuesday, June 22, 2010 Sample Qestion Paper 05
Sr. No. 01
02
03
Question
Option1
Option2
Option3
Option4
An
_______ computers perform the complex processing by Analog directly measuring the discrete physical quantities.
Digital
Hybrid
Personal
2
_______ is a non-volatile memory chip in which data ROM once stored cannot be altered by programmer
PROM
EPROM
ROM and PROM
1
Modern magnetic tapes use 8 bit ________code format EBCDIC for data recording
BCD
ASCII
All of these options
1
The tape of magnetic tape storage is divided into Vertical columns called_________ and horizontal rows is called________
Channels and Frames and Frames Channels
Tracks and Frames
Channels and Tracks
2
05
Which of these is an electronic card.
Magnetic Strip Card
Smart Card
ATM Card
Punch Card
2
06
________ is a set of control statements and extends Application processing capability of software Computer system
System software
Operating system Utilites
2
Different types of user interfaces include
System calls
Command language
Job control language
All of these options
4
FAT stands for
File Allocation Table
File Administration Table
File Available Table
File Allotment Transfer
1
09
The OSI model has ________ layers
5
6
7
8
10
Standard multimedia compression technique is
JPEG
MPEG FOR VIDEO
MPEG FOR AUDIO
All of these options
11
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
04
07 08
7 4
Very complex The shortcoming of Mark 1 It is very slow indesign and huge Unreliable computer is ___________ in size
It is very slow and also very complex indesign and huge in size
12
Which of the following are not Hard disk
13 14
Zip disk
4
Disk packs
Floppy disk
Winchester Disk 3
The unit of measurement of Maud data transfer rate is ______
Baud
Bandwidth
None of these options
2
______is collection of the facts or informational raw material and become information after processing.
Database
Computer
Main Memory
1
Data
15
Algorithms can be represented in various ways PROGRAMS FLOWCHARTS EXCEPT
DECISION CHARTS
SPREADSHEE 4 T
16
_____ contains the addresses of all the records according to the contents of Index the field designed as the record key.
Subscript
Array
File
Advantages of using flow charts is
Effective Analysis
Efficient Coding
Effective Time consuming Analysis and 4 Efficient Coding
The logic used to perform instructions one after another is_______
Selection logic
Sequence logic
End case
None of these options
2
Computer languages are classified as all of the following EXCEPT:
Machine Language
Code language
Assembly language
High level Language
2
20
Limitation of Machine language are, EXCEPT:
Executed fast Difficult to by Computer program
Error prone
Machine dependent
1
21
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.
4
23
Program errors are known as Virus ________
Bugs
Errors
All of these options
2
24
Commonly used file organization are:
Sequential
Direct and Random
Indexed Sequential
All of these options
4
25
_________language that
Query
Manipulation
DDL
DML
1
17
18
19
1
enables users to define there requirements for extracting required information. 26
3.2 % 3
27
0
0.2
Err
4
What is o/p If c=10, d=20 ( c> d ? printf(" Hi") : printf(" Hi Hello"));
Hello
HiHello
None of these
2
Which of the following are keywords of the C language? i)if ii)else iii)then iv)elseif
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
which of the following is NOT a character constant
`Thank You`
`enter values of p n `23.56e-03` r`
all of the above 4
30
void main() { int arr[10]; printf("%d", sizeof(arr)); getch(); }
20
10
None
1
28
31
32
33
36
37
Error
Uppercase case letters are Following are the rules for not equivalent naming an identifier except: to lowercase letters
Should not start with a digit but can Any letter with have digits in + = sign between the name
Letter starting with
3
What is output void main() { int n=3,a=2; a*= n+1; 7 printf("%d", a); }
8
6
None
2
The keyword _______ breaks the control from while loop.
break
exit
both a and b
None
1
Consider the declaration #include Here the angled brackets indicate
The compiler will search only the standard libraries for the file myfile.h
The compiler will search first the user`s default/ working directory and then the standard libraries for the file myfile.h
The compiler will search only the None of the user`s above. default/working directory
1
main() { printf(" \n Hello"); disp(); } disp() { printf(" \n Hi Hi"); main(); }
Hello
Hello Hi Infinite no of times
Hello Hi still stack overflow
4
C() { printf("C"); } B() { C(); printf("B"); } A() { CAMB printf(" A"); B(); } main() { printf("M"); A(); }
MABC
MCAB
MACB
4
(), **, /, *, +, -
(), / or *, - or +
4
34
35
1
which of the following (), **, * or /, + (), **, *, /, +, shows the correct hierarchy or ?
of arithmetic operations in C 38
39
40
41
C to it that C main() { printf(" C to it that servies C servies"); main(); } infinitely
C to it that C servies still stack overflow
4
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
1
What error would the following function give on compilation ? f(int a, int b) { int a; a=20; return a; }
The function should be defined as int f ( int a , int b)
Redeclaration of a
None of the above
3
00 CA 00 40
00 00 AC 40
00 00 CA 04
3
Interpret the following statement : void(*b)(int *);
b is a pointer to a function which takes a invalid statement pointer to an int and returns a void
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
From an ascending priority queue only the_________item can be removed
Largest
Smallest
Rear
Top
2
100
1000
20
3
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] ) ; }
42
43
44
Missing parentheses in return statement
Compilation Error Linker Error
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);
12.} 13.void f3(int **pp) 14.{ 15. *pp = &y; 16. printf("%d",**pp); 17.} The printf() at line 11 prints the value : 45
A stack in c is declared as a array ____ containing two objects
structure
group
collection of element
2
46
The remove operation can only be performed, if the queue is
non empty
overloaded
underflow
2
empty
47
Stack is constantly changing element
object
memory location set of integers
3
48
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?
2
4
3
1
3
What is the output of the following code? void main() { int i = 100, j = 200; const int *p=&i; p = &j; printf("%d",*p); }
100
200
300
None of the above
2
The value of automatic variable that is declared but 0 not initialized will be
-1
Garbage
None
3
51
In a'C' program constant is defined
after main
anywhere
none of the above
3
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.
2
Consider the following declaration ::- enum color {black=-1, blue, green }; This represents
black= 1,blue=2, green=3
black= -1 ,blue = - black= -1 ,blue = an illegal 2, green= -3 0, green= 1 declaration
3
The macro FILE is defined in which of the following files;
stdlib.h
stdio.h
A function called total(), totals the sum of an integer
int total( int int total( int numbers[], int numbers[], int
49
50
53
54
55
before main
io.h
stdio.c
2
int total( int numbers[], int
None of the above
4
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
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
1
57
Associativity of unary minus is
right to left
left to right
from center
None
1
58
void main() { int I=0; for(;I= =2;) { printf("%d", I); I++; } }
0
012
01
No output
4
it can not be made shorter
3
56
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
60
The fwrite() and fread() functions handle data in
text form
binary form
hexadecimal form octal form
2
61
When the language has the capability to produce new data type,it is called____.
Extensible
Encapsulation
Overloading
Overriding
1
______ is the good example of a method that is shared by Constructor all instance of a class.
Attribute
Constructor and Attribute
None of these options
1
Which of the following are class relationships?
is-a relationship.
Part-of relationship.
Use-a relationship.
All of these options.
4
Derived class inherits from base class.
Data members.
Member function.
Constructor & destructor.
Both Data members and Member function.
4
65
A contract is implemented through.
Class
Interface.
Abstract Class.
Interface and Abstract Class
4
66
Complex object composing of other object is Aggregation called_____
Assosiation
Composition
None of these options
1
A relationship that can be identified between two object entities (classes or individuals) is called a
association
link
activity
2
62
63 64
67
function
___________. Which are the main three features of OOP language?
Data Encapsulation, Inheritance, Inheritance & Polymorphism & Exception Exception handling handling
Data Encapsulation, Inheritance & Polymorphism
Overloading, Inheritance & Polymorphism
3
Cardinality can be represented as:
1?.n, where n Only with a line represents an between base class unlimited & derived classes value.
A line with an arrow-head pointing in direction of parent or superclass.
Cannot be represented in UML.
1
70
Method is another name of____
Function
Attribute
Behavior
None of these options
1
71
SATURINE : MERCURIAL ::
redundant : wordy
saturn : venus
heavenly : starry
wolf : sly
3
KIND : BENEVOLENT ::
Requital :reverberate
Reverentral:imprud Circumspect:shor Muddy:unclear 4 ent t-sighted
73
Horse : colt ::
bird : eaglet
child : adult
seed : fruit
sheep : lamb
4
74
CONE : PINE ::
fruit : berry
bulb : flower
acorn : oak
needle : fir
3
75
MANDATORY : OPTIONAL ::
pious : indignant
competent : inept
opaque : ornate
chaste : celibate 2
76
BLUEPRINT : CONSTRUCTION ::
itinerary : trip signal : light
tenant : premises volume : library 1
77
CELEBRATE : MARRIAGE ::
window : bedroom
lament : bereavement
pot : pan
face : penalty
2
78
PROHIBITED : REFRAIN innocuous : :: forbid
deleterious : embark
required : decide
compulsory : comply
4
79
ASSUAGE :
humiliate
intensify
convert
solidify
2
80
DORMANT :
authoritative
elastic
active
uninteresting
3
81
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,
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
68
69
72
would weaken the argument above EXCEPT 82
83
84
85
86
87
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
Canned food Canned food price products were decreased relative avaible in more to substitutes stores
Canned opener production doubled
4
The gateway of india is in mumbai mumbai is in maharashtra therefore the gateway of india is in maharashtra
false
cannot say
true
probably false
3
Ravi is the younger than sachin sachin is younger than tarun therefore ravi is the youngest among them
true
false
cannot say
probably true
1
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:
Canned food Canned food prices Can opener products are decreased relative production available in more to substitutes. doubled. stores.
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:
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.
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
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
1
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
89
90
may be understood by others
psychology.
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?
47 metres east
42 metres north
27 metres south 1
If P and N are done on Thursday and Friday, then which of the following is true?
L is done on Wednesday
M is done on Monday
O is done on Tuesday
2
Corn, peas, squash, beans, kale, peas
3
L is done on Tuesday
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
91
If x + 49 =8.2, then the value of x is equal to
1.20
1.40
1.44
1.89
3
92
If a = -1 and b = -2, what is 343 the value of (2 - ab2)3?
216
125
64
2
93
If z = 1, y = 2.......a = 26. Find the value of z + y + x + 351 .......+a.
221
400
200
1
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?
24
14
12
1
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?
8%
10 %
12 %
2
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.
900
840
800
1
If the radius of a cylinder is tripled while its height is halved halved, its volume will be
unchanged
doubled
increased by 350%
4
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?
40%
45%
50%
4
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
6 miles
13 miles
18 miles
3
94
95
96
97
98
99
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
6:2
5:1
None of the above.
1
Tuesday, June 22, 2010 Sample Qestion Paper 06
Sr. No.
Question
Option1
Option2
Option3
Option4
Answe
01 The decimal equivalent of 1011 21 is
11
10
12
2
02 The _______ is useful device to Graph obtain the computer output in plotters the form of graphs or drawings.
Graphic pens
OCR
Punch Cards
1
03 ______ holds data as the CPU works with it.
Memory
Processor and Memory
None of these options
2
04 In a floppy, the circular plate coated with magnetic oxide, is sectors, divided into ______ and these tracks are further divided into _____.
tracks, sectors
circles, sectors
ovals, circles
2
05 Which of these is not a output device.
Plotter
Keyboard
COM
3
Testing and debugging of programs
Optimising programs by Generate source Pointing out code from design unreachable lines given of code
3
1
06
Processor
Monitor
Source code analysis tools functions as ______________
Design screens ,menus ,reports etc.
The principle task of a command language is:
To initiate To access the execution of system programs functions
To cause an interrupt
None of these options
08 _______is a program execution.
Procedure
Process
Algorithm
All of these options 2
09 ______ is the smallest unit of data
Frame
Header
Byte
Bit
4
10 In the third generation of computers which of the Mini following type of machines was computers introduced?
Micro computers
Main frame Computers
Super computer
1
11 ______Gate is the Universal gate
NAND
OR
AND
NOR
2
RAM
ROM
Cache Memory
None of these options
3
12 Which of the following are of type Optical Disk:
CD-ROM
WORM
CD-ROM and WORM
Zip disk
3
13 The transistor technology was
First
Third generation Second
Fourth generation
3
07
A small high speed memory which is used to increase the speed of processing is_____
introduced in ___________ generation
generation
generation
14 ________ is concerned with the High level decision to temporarily remove scheduling a process from the system.
Low Level scheduling
Medium Level scheduling
None of these options
3
15 Pictorial representation of an Algorithm is _________
flowchart
algorithm
graphics
procedure
1
16 The programming language that was designed for specifying algorithm
Address
ASCII
ALGOL
None of these options
3
17 A table used to define clearly the word statement of a problem in a tabular form is_______
Design table Decoder
Decision Table
Debugging
3
18 The flow lines are represented by the symbol of
Arrows
Oval
Circle
Rectangle
1
19 Language Primarily used for internet-based applications
ADA
C++
JAVA
FORTRAN
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
None of these options
1
23 The errors that occur in Syntax error Logical error computer program is________
Syntax error and Logical error
None of these options
3
24 _________language that enables users to define there requirements for extracting required information.
Manipulation
DDL
DML
1
25 The file organization method that can be used with magnetic Direct tape storage is:
Sequential
Indexed Sequential
None of these options
2
26 Which of the following are keywords of the "C" language? i.if All are ii.else keywords iii.then iv.elseif
only i,ii and iii are keywords
only i,ii and iv are only i and ii are keywords keywords
Query
2
27 The largest permissible magnitude of an integer constant is:
same as the same as the octal integer short integer number number
same as integer
None of these options
4
28 The expression, a = 7/22 *
8.28
3.14
0
4
6.28
(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
3
30 Which statement sets the 3rd lowermost bit of an unsigned ^3; integer x to 0, leaving other bits unchanged?
x|(~3);
x&(~3);
x&3;
4
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
66
Error
None of these options
1
32 What is the output of the following code? #include void main() { int a = 20; printf("%d",a + `F`); }
Error
20
90
garbage value
3
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
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" );
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:
203
203 204 205
203 207 212
None of these options
4
3
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
4
36 When a function is called in C and parameters are passed into reference the routine, the variables passed by
value
address
None of these options
2
37 Sending a copy of data to a program module is called _____.
Passing a reference
Passing a value
None
3
Error message from the compiler
4
Recursion
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}
40 What will happen if you try to put so many values into an
assigns the value 17 to n[3]
is wrong; it gives an error message
Nothing
Possible system Error message Other data may be 3 malfunction from the compiler overwritten
assigns the value assigns the value 3 17 to n[2] 13 to n[2]
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:
float *ptr;
*float ptr;
None of the above 2
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
Only 1
Only 3
All of the above
43
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.
3
3
2
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?
what happened
Error:Invalid what happened pointer happened Tulika assighnment
45 What is the output of the following code? #include void main()
30 10
20 30
30 20
1
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;
struct node { char *item; struct node *next; }; typedef struct node *NODEPTR;
Both are correct.
None of above.
2
False
Compiler dependent
None of these options
2
47 Individual structure member can be initialized in the structure itself
True
48 Given the statements, struct someone { int age; char *name; } *person; the C statement that will print out the name of the person is :
printf("%s", printf("%s", printf("%c", person.name) someone.person- None of the above 4 person->name); ; >name);
49 The operation for adding an entry to a stack is traditionally called:
Add
Append
Insert
Push
50 Transform this expression to infix form? AB+C*DE--FG+$
$+*ABC-FGDE$
$+GF-ED*C+BA
((A+B)*C- (DE))$(F+G)
None of the above 3
51 Which data structure is needed to convert infix notation to Linear list postfix notation
Queue
Tree
Stack
4
52 In the arrary representation of circular queue when can we say Front=rear that the queue is full?
(rear+1)%max= (rear=front 1)%max==front
rear=front-1
2
All the insertions are made at rear
All the deletion are made from front
All of the above
4
54 A linear list, in which elements can be added or removed at Queue either end but not in the middle, is known as
Tree
Stack
Deque
4
55 What is the output of the following code? #include void main()
1
Compile Time error
Runtime Error
4
53
For queue which of following are true
It is an ordered list
0
4
{ int a = 0; printf("\n %d\t", (a = 10/a)); } 56 Text file end with?
`\n`
Null value
`\r`
EOF
4
57 If you don`t initialize a static array, what will be the elements 0 set to?
an undetermined a floating point value number
the character constant `\0`
1
58 12.34f is a ________ constant. string literal
float literal
double literal
character literal
2
This
Error
3
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); }
This is a test This is a
60 What is the output of the following code? #include void main() { /* this is /* an example */ of nested comment */ printf("\n123"); }
123
Compile time error
Run time Error
None of these options
2
Information hiding
Data Binding
Information hiding and Data Binding
None of these options
3
Lengthy
Complicated
Independent
Interdependent
3
63 ______ is the property of an object that distinguishes it from Identity all other object.
State
Behaviour.
None of these options.
1
64 What is the term used to describe the situation when a derived class provides a Inheritance function already provided in the base class?
Polymorphism. Overloading
61 Encapsulation is 62 Encapsulation prevents the program from becoming _______
65
Abstract class cannot have ________-.
Zero instance.
Multiple instance.
Both Inheritance & 2 Overloading
Both Zero None of these instance & options. Multiple instance.
2
66 An object containing other object is called_____.
Containing
Composition
Containing and Composition
None of these options
2
67 What name is given to a collection of components or routines?
Bank
Namespace
Library
Schema
3
Data Encapsulatio n, Inheritance & Exception handling
Inheritance, Polymorphism & Exception handling
Data Encapsulation, Inheritance & Polymorphism
Overloading, Inheritance & Polymorphism
3
Association
Aggregation
Link
None of these options
3
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
1
incumbent on ... refrain from
opportune for ... quarrel over
3
ballad : song
street : intersection 3
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 ______.
to allocate to initialize memory for the the objects of objects of it`s it`s class. class only
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. character : novel
brick: building
73 GAZELLE : SWIFT ::
horse : slow
swan : graceful lion : roar
lamb : bleat
3
74 CONE : PINE ::
fruit : berry
bulb : flower
acorn : oak
needle : fir
3
LUBRICANT : FRICTION ::
balm : pain
eraser : correction
solvent : paint
reagent : chemical 1
HAM : PORK ::
Pickle:sardin Jelly:jam e
Wine:grapes
Chocolate:coffee
3
77 DISINTERESTED :
biased
violent
complete
humane
1
78
articulate : speech
fastidious : grime
humorous : laughter
servile : rebellion
1
72
75 76
ODE : POEM ::
GRACEFUL : MOVEMENT ::
79 DORMANT :
authoritative elastic
active
uninteresting
3
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
insignificant climactic
worrisome
awesome
1
Employeeowned companies generally have higher productive
Employee union owner drives up salaries and wages
Employee union ownership enable worker to share in the profits.
3
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
83 Ravi is the younger than sachin sachin is younger than tarun true therefore ravi is the youngest among them
average Average stay per the number of total expenditure per tourist has hotel rooms has 4 tourist has increased increased. increased
false
cannot say
probably true
1
The ABC company 1 is publicly owned
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?
Monopoly is ABC`s defined as one market is not seller in a monopolistic. market.
The ABC company has no domestic competitors
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?
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.
1
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:
Canned food prices decreased relative to substitutes.
Canned food Can opener products are production available in more doubled. stores.
1
being overweight is always caused by unhappiness and unattractiven ess
being overweight is the only cause of unhappiness and unattractiveness
unhappiness and unattractiveness can cause someone to be overweight
87
A person hearing this advertisement countered,
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?
A`s sister
A`s grandmohter A`s mother
4
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 ?
Two
Three
Four
1
90 If F sits directly opposite L and between K and M, which guest G must sit directly opposite M?
H
J
K
3
91
0.000006 * 0.0000007 = ?
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?
2
6
none of the above
2
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?
$1.20
$1.25
$1.30
4
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.
14
15
16
3
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?
Rs 50.00
Rs 39.20
Rs 49.20
1
96 The inside circumference of a circular running track is 88 metres long and the track is everywhere 7 metres wide.
Rs. 138.60
Rs. 143.70
none of the above
2
13
Rs. 140
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?
27
30
None of the above 3
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
1000
980
640
2
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?
510
290
none of the above
1
2 only
2 and 3 only
1 and 2 only
4
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