Computing Fundamentals
Evolution of Computers Computer Generations Computer Organisation Primary and Secondary Storage Input and Output Devices Operating System File Organisation Data Communications and Computer Networking Fundamentals of Programming Numerical Systems Binary Arithmetic Boolean Algebra abd Logic Circuits Algorithms Flowcharts Arrays - single and multidimensional multidimensional File Orgranisations C Programming
Introductory Concepts C Fundamentals Operator and Expressions Data Input and Output Operator and Expressions Statements (control, conditional, looping) Functions Arrays Pointers Structures and Unions Trees Stack Queues Linked Lists Object Oriented Programming
Classes Objects Inheritance Polymorphism Abstract Classes Reusability
Syllabus for Common Entrance Test (CET)
Section I :Computing Fundamentals (25 marks) Evolutions of computers, Computer generations, Computer organization, Primary and Secondary storage, Input-output devices, Computer software, Operating systems, Data communications and c omputer networking, Multimedia, Classification of computers, etc. Section II : Fundamentals of Programming (10 marks) Algorithms, Flowcharts, Computer languages, System implementation and operation, File organizations organizations and Data processing, etc. Section III :Programming in C (50 marks) Introductory concepts, C Fundamentals, Operators and Expressions, Data Input and Output, Control statement, Functions, Arrays, Pointers, Structures and Unions, Arrays, Stacks, Queues and Linked Lists (Single, double, Circular), etc. Section IV :Object Oriented Programming Concepts (15 marks) Understanding of the object oriented concepts, such a s Classes and Objects, Generalizations, Polymorphism, Abstract Classes and Re-usability, etc. Section V :General Apptitude (50 marks) Questions shall be modeled on GMAT pattern The Question paper Sample is given on the link which i am specifying. http://daccet.blogspot.in/2010/06/sa...per-01_21.html GOOD LUCK. Read: Syllabus of C-DAC entrance exam,2012 for CSE branch? What is the selection procedure through C-DAC Entrance exam? 2012 http://educationcareer.in/syllabus-c-dac-entrance-exam-2012-cse-branchwhat-selection-procedure-through-c-dac-entrance-exam-105599.html#ixzz1wsudr3Ds
Pre-DAC Syllabus Pre-DAC Modules Computing Fundamentals Evolution of Computers Computer Generations Computer Organisation Primary and Secondary Storage Input and Output Devices Operating System File Organisation Data Communications and Computer Networking Fundamentals Of Programming Numerica Systems Binary Arithmetic Boolean Algebra abd Logic Circuits Algorithms Flowcharts Arrays - single and multidim ensional File Orgranisations C Programming Introductory Concepts C Fundamentals Operator and Expressions Data Input and Output Operator and Expressions Statements (control, conditional, looping) Functions Arrays Pointers Structures and Unions Trees Stack Queues Linked Lists Object Oriented Programming Classes Objects Inheritance Polymorphism Abstract Classes Reusability Syllabus for Common Entrance Test (CET) Section I :Computing Fundamentals (25 marks) Evolutions of computers, Computer generations, Computer organization, Primary and Secondary storage, Inputoutput devices, Computer software, Operating systems, Data communications and computer networking, Multimedia, Classification of computers, etc. Section II : Fundamentals of Programming (10 marks) Algorithms, Flowcharts, Computer languages, System implementation implementation and operation, File organizations and Data
processing, etc. Section III :Programming in C (50 marks) Introductory concepts, C Fundamentals, Operators and Expressions, Data Input and Output, Control statement, Functions, Arrays, Pointers, Structures and Unions, Arrays, Stacks, Queues and Linked Lists (Single, double, Circular), etc. Section IV :Object Oriented Programming Concepts (15 marks) Understanding of the object oriented concepts, such as Classes and Objects, Generalizations, Polymorphism, Abstract Classes and Re-usability, etc. Section V :General Apptitude (50 marks) Questions shall be modeled on GMAT pattern
Sr. Question No.
01
________performs and supervises the execution of instructions and directs other devices of computer to act as per their designated functions.
02
All of the following are input devices EXCEPT
03 04 05 06 07
08 09 10
Option 1
ALU
Option2
Option3 Option4
Control Unit RAM
Main Memory
Ans wer
2
None of Punch Cards Mouse these 4 options None of Magnetic disk is a ________ storage Direct Indirect Random these 1 device access access access options Which of the following are not Hard Floppy Wincheste Zip disk Disk packs 3 disk disk r Disk Numeri Alphanu All of Which of these keys belong to c null meric these 4 QWERTY keyboard Keypad Keys options Softwar Hardwar Collection of Programs is Instructions Procedure 1 e e All of Procedu Algorith _______is a program execution. Process these 2 re m options All of MS_______ is an operating system WINDOWS LINUX these 4 DOS options The conversion of digital data to analog Modulat Demodulation Sampling Modem 1 form is _______ ion The first generation machines used Vaccum Transistors IC`s None of 1 Touch screen
_________ 11
12
13 14 15 16
17
18
19
20 21
23
24 25
Tube
The input interfaces transforms the data hexa into _________code
these options binary
octal
decimal
2
FUZZY MULTIPROC PARELL LOGIC ESSING EL Super computers use __________ and RISC AND AND PROCES __________ technologies to solve AND NEUTRA 2 PARELLEL SING complex problems faster CISC L PROCESSIN AND TECHNI G RISC QUE Job All of System Command Different types of user interfaces include control these 4 calls language language options _______ is a device capable of changing Trasisto Transducer Sampler Scanner 2 signals from one form to another. r The interface that enables similar Bus Cable Router Bridge 4 networks to communicate is called network modem A value written into a program Identifie instruction that does not change during Constants Objects Operators 2 rs the execution of program. DECISI Algorithms can be represented in various PROGR FLOWCHAR ON SPREAD 4 ways EXCEPT AMS TS CHART SHEET S _________ symbol is used for Rectangl Oval Parallelogram Diamond 3 Processing of data. e The ______ symbol is used to indicate the comments/remarks on the contents of Docume Annotaion Arrow Connector 2 a procedure in order to clarify some nt point of the flowchart. None of All of the following are computer Compile Translation Interpret these 4 Language Processors EXCEPT: r Software er options Language Primarily used for internetFORTRA ADA C++ JAVA 3 based applications N Syntax None of The errors that occur in computer Syntax error and Logical error these 3 program is________ error Logical options error All of Program errors are known as ________ Virus Bugs Errors these 2 options The component of data base Data Data Data None of 3 management system is ________ definitio manipulation definitio these
n Language Langua ge
The file organization method which stores records in no specific order is called:
Direct
27
C can be used on
Only MSonly unix DOS operating operatin system g system
28
Which of the following is not a valid identifier?
name_2 __tail__ 3
10
26
Indexed Sequential
n options Languag e and Data manipula tion Languag e Sequenti Batch al
1
only All of windows these operating options system
4
2ndday
None of these options
3
01
11
3
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;
00
} What are the final values of C and D? #include void main() { 30
int x=10;
Error
1000
100
None of these options
3
2
0
3
Garbage value
3
Compile Runtime Time Error error
4
1
(x<0)?(int a =100):(int a =1000); printf(" %d",a);
31
} If `a` is an integer variable, a = 5/2; will 2.5 return a value: What is the output of the following code : #include void main()
32
{ extern int out;
Run time error
Compile time 100 error
printf("%d",out); } int out=100; What is the output of the following code? #include 34
void main() { int a = 0; printf("\n %d\t", (a = 10/a));
0
1
}
35
for( Write a for loop which will read five loop = characters (use scanf) and deposit them 0; loop into the character based array words, < 5; beginning at element 0. loop++ )scanf( #include
for( loop for( loop = 0; = 0; loop None of loop <= 5; < 4; these loop++ loop++ options )scanf( )scanf(
1
Compile None of Goes into an Garbage time these infinite loop values error options
3
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() 37
String Null value constant
{ char *temp = "String constant"; return temp; }
Error
main() { puts (someFun()); } What is the output of the following code?
38
#include int Check(int); void main() { printf("\n%d\t",Check(100)); } int Check(int a) { if(a%2==0) { return 1; break; } return 0; } The expression
1
0
None of these options
3
Any of None of these these options options
4
Error
temp1 = f(); temp2 = g(); 39
temp3 = h();
f() + g() f() + (g() * * h() h())
temp4 = temp2 * temp3; temp5 = temp1 * temp4; is equivalent to 40
41 42
If you don`t initialize a static array, what 0 will be the elements set to?
the an a floating character undetermined point 1 constant value number `\0`
Elements in an array are identified by a symbol order unique _______. What is the output of the following 16 7 code?
subscript data type 3 11
Error
1
#include void main() { 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};
Compile Runtime Time Error error
2
variable variable, , position location
constant, None variable
3
Program will not 25 compile
Garbage Address of 2 value I
6
3
int x,*ptr1 = arr, *ptr2=&arr[3]; x = ptr2 - ptr1; printf("\n%d\t",x); } 44
An address is a ________, while a pointer is a _________. #include"stdio.h" main() { int *p1,i=25;
45
void *p2; p1=&i; p2=&i; p1=p2; p2=p1;
printf("%d",i); } The output of the above code is : main() { char thought[2][30]={"Don`t walk in front of me..","I am not follow"}; 46
printf("%c%c",*(thought[0]+9),*(*(thou k k ght+0)+5));
Don`t walk in I may not k front of me follow
4
} What is the output of this program? 47
ptr equivalent of a[i][j] is
((*a+i)+ *(*(a+i)+j) j)
none of **a+i+j these options
2
structur e bolts structure is engine is nested nested within within structure structur maruti e engine
structure maruti is nested within structure engine
structure maruti is nested within structure bolts
2
98
8, unpredicta 2 ble
Given the statement, 48
maruti.engine.bolts = 25; which of the following is true? struct num { int no; char name[25]; };
49
88 void main() { struct num n1[]={{25,"rose"},{20,"gulmohar"},{8," geranium"},{11,"dahalia"}}; printf("%d%d"n1[2].no,(*&n1+2)-
89
>no+1); } What is the output of this program? What is the output of the following program?
50
51
void main() { struct player { size = char name[30]; 32 unsigned char player_number; float batting_average }; printf("size = %d", sizeof (struct player)); } A _______ is a linear list in which additions and deletions take place at the Stack same end.
size= 35
size= 36 size= 33
Queue
Linked list
3
None of 1 the above
52
Stack can be represented using
Arrays or Arrays linked list
53
Stack is not used in
Recursi Quick Sort on
Only linked list Postfix Notation
empty( deque(Q,X) Q)
enque(Q, push(Q,X) 4 X)
O(log2n O(n) )
O(1)
54
55
Which of the following is not an operation of queue, assuming that queue has items `Q` and `X`? Consider a linked list of n elements. What is the time taken to insert an element after an element pointed by some pointer?
56
The node of the circular doubly linked list must have:
57
The function of the C Preprocessor is:
58
The statement that prints out the character set from A-Z, is
None of 2 the above Simulatio 4 n
O(n log2n)
3
One Two data Two data data and One data and and two and one two one address 1 address address address fields fields fields fields macro conditional file All of the replace 4 inclusion inclusion above. ment for( a = for( a = `a`; a for( a = for( a = `z`; a < <= `z`; a = a + `A`; a <= `Z`; a <= 3 `a`; a = 1) `Z`; a = a `A`; a = a
a - 1)
+ 1)
+ 1)
printf("%c", printf(" &a); %c", &a);
printf("% printf("%c c", a); ", a);
World
HelloWo Compilaio 3 rld n Error
/*consider that file zzz.h starts here*/ printf("Hello"); /*and ends here*/ void main() 59
{
Hello
#include "zzz.h" printf("World"); } What is the output of the above program
60
61
62
void menu( The function called menu which prints int menu( void ) { the text string "Menu choices", and does void ) { printf(" not pass any data back, and does not printf("Menu Menu accept any data as parameters, looks like choices"); } choices" ); } #define INCH Which of the following are correctly #define SQR PER formed #define statements (X * X) (X) FEET 12 Front== When is linear queue said to be empty? Front=rear-1 rear
63
The data type created by the data abstraction process is called
64
Peer-to-peer relationship is a type of _________.
65
An object has _____.
int menu( char string[] ) None of 4 { the above printf("% s", string); } #define #define SQR (X* SQR(X) 4 X * X) (X) * (X) Front=re ar+1 Abstract Data type
Front=rear 1 +1 User Class Structure Define 3 Data type None of Associat Aggregation Link these 3 ion options All of State Behaviour Identity. these 4 options.
Inherits data Inherits members Object data and can member member Inherits access s and functions constructors protected member from base 1 and members function class as destructor. with the s from well as dot base Inherits operator. class. constructo rs and destructor. All of Inherita Associati Composition. these 4 nce. on. options Containi None of Containi ng and Composition these 2 ng Composi options tion Unique modelin Unified Unified Unified g modeling modern master 2 languag language language laqnguage e.
66
A derived class
67
Reusability can be achieved through.
68
An object containing other object is called_____.
69
UML stands for
70
The term given to the process of hiding all the details of an object that do not datapackaging. contribute to its essential characteristics hiding. is called _____________.
71
If constructor is not provided then
72
Method overloading is _________
encapsul grouping 3 ation.
All Objects data will Compile be stored Default r will Object in same constructo not creation is not memory 4 r will be compile possible area so provided the class overwriti ng of data will happen Overloa A feature in Overload ding which ing None of different member without these 1 member function with argument options function same name pasing. of a and different
73
WATERFALL : CASCADE ::
74
SATURINE : MERCURIAL ::
75
EXPLOSION : DEBRIS ::
76
DOCUMENTS : ARCHIVE ::
78
TENACITY : WEAK ::
79
BANDAGE : WOUND ::
80
RESOLVED : DOUBT ::
81
PROHIBITED : REFRAIN ::
82
ASSUAGE :
83
COURT :
84
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:
85
86
87
class signature. snow : missile : freeze launch redunda nt : saturn : venus wordy flood : famine : food water artifacts : actors : stage museum apathy : pity : strong caring
tree : wave : exfoliate undulate
4
heavenly wolf : sly 3 : starry fire : ashes tools : worker
disease : 1 germ instrument s: 1 musicians
immorali frequency ty : 1 : known wrong
stamp : diaper : cast : envelop gloves : hands 4 baby fracture e confirm ed : announced : included suggested 1 suspicio candidacy : guest : idea n innocuo deleterious : required compulsor us : 4 embark : decide y : comply forbid humiliat intensify convert solidify 2 e reject uncover infect subject 1 The number of Average the average tourists stay per number of expenditure has tourist total hotel 4 per tourist has increase has rooms has increased d from increased increased. 1950 to 1980
Each of the following could be the number of white puppies in the shelter 4 5 6 EXCEPT sushil is the son of the teacher. mohan is the teacher and he has a son and definitel cannot probably true daughter therefore mohan is the father of y true say sushil Typically the entrepreneur is seen as an An Someone who Entrepre individual who owns and operates a owner develops an neurs do
8
2
probably 2 false Entrepren 2 eurs are
89
90
91
92
93
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.
of a enterprise large may be business considered an may be entrepreneur. an entrepre neur.
During 1985, advertising expenditures on canned food products increased by 20%, while canned food consumption rose by 25%.Each of the following, if true, could help explain the increase in food consumption except:
Advertis Canned food ing prices effectiv decreased eness relative to increase substitutes. d.
not own the main and actors in operate economic small growth. businesse s.
Canned food products are available in more stores.
Can opener 1 production doubled.
Once a company has established an Sales extensive sales network in a foreign network larger some market and therefore has achieved can be Extensive markets countries substantial sales, it seems that the sales abroad are develop thesemarket should be treated in a very same in networks are more economi similar fashion to those in one`s own both preferable to adaptable 4 cally courtry. It is therefore those countries foreign less to faster where only initial sale and representation and developed domestic than have been developed where marketing domesti ones. marketing others methods will have to differ from c methods 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 32 42 27 metres turned to his left and walked 15 metres metres 47 metres east metres 1 south he then further turned to his right and south north walked 12 metres how far is jayant from the point x and in which direction? Every town with a pool hall has its share All All Every of unsavory characters. This is because gamblers gambler All pool halls town has the pool hall attracts gamblers and all are s are attract unsavory 3 gamblers are unsavory. Which of the attracted unsavor gamblers. character following, if true cannot be inferred by pool y. s. from the above? halls. In winning its bitter,protracted battle to Blue More Belle Blue acquire Blue industries, Inc., Bell Industri divestmen Industries is Industrie industries has fulfilled its goal to lessen es is in t takes in the s is in the 3 its reliance on tobacco holdings, while the place in insurance insurance the $5.2 billion deal may spur more tobacco the business business. takeover activity in the insurance, industry tobacco
94
95
96
97
98
99
100
101 102 103 104
analysts said. Every town with a pool hall has its share of unsavory characters. This is because the pool hall attracts gamblers and all gamblers are unsavory. which of the following, if true cannot be inferred from the above? Which of the following equations can be used to find a number x, if the difference between 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 ,.........must be taken such that the sum may be 66? If the measures of the three angles of a triangle are (3x + 15), (5x - 15), and (2x + 30), what is 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 subtracting 1 point for each wrong answer. He obtains a score of 70, how many questions did he answer correctly?
. All gamblers are 3 attracted by pool halls
All gambler All pool halls s are attracts unsavor gamblers y
Every town has unsavory character s
x - 21 = 2 x - 21 = 4x 4x
x2 = 21- x + 4x 4x2=21
2
11
13
9
10
1
75
60
45
25
2
17
18
19
20
3
First Which is a better investment? 14% stock investm at Rs.120 or 10% stock at Rs.90 ? ent is better I sell 20 boxes for Rs. 132 gaining thereby the cost price of 4 boxes. What 5.0 is the cost price of each? If the ratio of women to men in a meeting is 4 to 1, what percent of the 20% persons in the meeting are men? .03 times .05 is 15% What is the length of side BC ? 3 If the lengths of the two sides of right triangle adjacent to the right angle are 8 15.8 and 15 respectively, then the length of the side opposite the right angle is
Second Both are None of investment is equally 1 the above. better good 4.8
5.5
6.6
3
25%
33 1/3% 80%
1
1.5% 5
0.15% (34)1
0.015% 7
3 3
16
17
17.9
3
Sample Question Paper 02 Sr. Question
Option1 Option2 Option3 Option4
No.
________performs and supervises the execution of instructions and directs other 01 devices of computer to act as per their designated functions. 02 ______Gate is the Universal gate
ALU
Control RAM Unit
Main 2 Memory
NAND
OR
Indirect Random access access
NOR 2 None of these 1 options All of these 1 options
03
Magnetic disk is a ________ storage device
Direct access
04
Modern magnetic tapes use 8 bit ________code format for data recording
EBCDIC BCD
05
06 07
08
09 10 11
12
Ans wer
AND
ASCII
Analog to Projects It is an Digital informatio Interface and n from a unit SCSI Interface helps in Digital 1 computer between to on a large I/O device Analog screen and Ports Conversi ons ___________ is the Software made available Firmwar Abstractio Fireware Casetool 1 on Hardware stored in ROM. e n Comman Job All of System Different types of user interfaces include d control these 4 calls language language options A process is selected for running from the READY queue in FIFO sequence. If the Round Relocatio process runs beyond a certain fixed length of SJF FCFS 2 Robin n time, it is interrupted and returned to the end of the READY queue. This is known as The interface that enables similar networks to Bus Cable Router Bridge 4 communicate is called network modem _______ computers perform the complex processing by directly measuring the discrete Analog Digital Hybrid Personal 2 physical quantities. Amplitu _______is not a Modulation Technique Phase Frequency Light 4 de None of RISC CISC The fifth generation computers worked on Parellel these processo processo 3 the principle of_________ processor options is r r correct Extends the compute r`s Bus outside the compute r
None of Hardwar User Software these e software options Main In the third generation of computers which of Mini Micro frame Super the following type of machines was compute compute Computer computer introduced? rs rs s Scanning Samplin Selection None of Digitization is composed of __________ and and g and and these __________. Encodin Quantisa Sorting options g tion _____ contains the addresses of all the Subscrip records according to the contents of the field Index Array File t designed as the record key. None of The programming language that was Address ASCII ALGOL these designed for specifying algorithm options Processi Flow Input Connector is used as a substitute for Decision ng Lines Output Effective Time Analysis Effective Efficient Advantages of using flow charts is consumin and Analysis Coding g Efficient Coding It is a program written Also May be so that it Known Intrinsic All of The following statement is valid in context can be as or these with sub-programming: used Function Programm options without s er Written rewriting . Object Assembl oriented Language wherein Encapsulation and y program Pascal Cobol Abstraction of data is done is called as: Languag ming language e Languag e Ease of All of During system evolution __________ is to be Time Failure maintena these considered analysis rate nce options _________ is a point at which the debugger None of Memory Watch Break stops during program execution and awaits a these Dump point point further command. options
Physical devices of a computer is 13 a____________
1
14
1
15
16
17 18
19
20
21
22
23
2
1
3 3
4
4
2
4
3
24
Commonly used file organization are:
25
The file organization method which stores records in no specific order is called:
26
C language came into existence in the year
27
The correct statement to read a double is
Which is the correct statement to check 28 whether a number is in the range of 100 to 1000
Direct Sequenti and al Random Indexed Direct Sequenti al 1971 1958 double double d; d;
All of Indexed these Sequential options
4
Sequential Batch
1
1972
3
Any of these scanf(" options scanf("% %lf", f", &d); &d); value != value <= value >= 99 && 100 || 100 && value value value !=1000 <=1000 <=1000
1983
None of these 2 options value >= 100 || 3 value <=1000
What is the output of the following code #include main() { 29 int x=10, j=20;
Compile time 10 10 error
Runtime None of 2 error the above
3
1
0
89
None of these 1 options
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?
2
3
#include void main() 31
{ int a=14; a += 7;
112
98
a -= 5; a *= 7; printf("\n%d",a); } What is the output of the following code #include main() 32
{
55 665 5 6655 45 654 455 45 4 int a = 5;
printf("%d %d %d %d %d",a++, a--,++a,-a,a); } a = 1; a = 1; The statement which reproduces the following output, is 1 33
22 333 4444 55555
a = 1;
while(a <= 5){b while(a while(a = 1; <= 5){ <= 5){ while(b while(b <= a){ <= a){printf printf(" ("%d ", %d", a);b = b a);b = b + 1;} + 1;}
a = 1; while(a <= 5){printf( " ");b = 1;
while(b <= while(a 2 5){printf( <= "%d", a);b b){printf( = b + 1;} "%d", a);b = b + 1;} a=a+ ;a = a + 1;printf(" a=a+ printf(" 1;} ");} 1;} ");a = a + 1;}
#include void main() 34
{ while (1)
Goes Compile into an Garbage time infinite values error loop
None of these 3 options
{ if (printf("%d",printf("%d"))) break; else continue; } } The output is Passing Passing a a pointer Choosing copy of a to a a random 35 What does the term `call-by-value` refer to? variable variable value for into a into a a variable function function What is the output of the following code?
A function that does 1 not return any values
#include main() { char string[] = "Hello World"; 36 display(string);
Hello World
Garbage Compile None of 3 value time error the above
Error
The value Garbage Null of process value Value is 0
} void display(char *string) { printf("%s", string); } What is the output of the following code? 37
#include
3
func(a,b) int a,b; { return (a= (a==b)); } main() { 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
{
16
7
11
Error
1
int arr[2][3][2]={{{2,4},{7,8},{3,4},}, {{2,2},{2,3},{3,4}, }}; printf("\n%d",**(*arr+1)+2+7); } The statement 39 int n[4] = { 11, -13, 17, 105}
assigns is assigns assigns the value wrong; it the value the value - 3 17 to gives an 17 to n[2] 13 to n[2] n[3] error
message What is the output of the following code? #include void main() { 40 int i;
No output
123 There is a garbage 1 2 3 0 0 run time 3 garbage error
30 20
30 10
20 30
30 30
100
200
300
None of 2 the above
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
2
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 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++)
what Error:Inva what what happened lid pointer happene happene 3 happened assignmen d Tulka d Tulika t
(*f[I])(); } fun1(){ printf("what");fun2();} fun2(){printf("happened");} fun3(){printf("Tulika");}
45
What is the output of this program? Interpret the following statement :
b is a pointer
invalid b is a b is a 1 statemen pointer to pointer of
void(*b)(int *);
to a t function which takes a pointer to an int and returns a void
a void type int which can which is a be pointer to typecast a void as a pointer to int
a and b
a and c
b and d
90 A
garbage Error A
struct { int acct_no; float balance; } customer, *pc = & customer; 46
a and d
4
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() { 47
union result { int marks; char grade; } res;
res.marks = 90; res.grade = `A`; printf("\n%d\t%c",res.marks,res.grade); }
48
49
50
51 52 53
54
55
Memory needed for storing the largest variable
Memory needed for None of The memory allocated to the union is equal Compiler storing these 1 to dependent the options smallest variable ((A+B)*C Transform this expression to infix form? $+*ABC $+GF-- (DNone of -ED*C+ 3 E))$(F+G the above AB+C*DE--FG+$ FGDE$ BA ) A _______ is a linear list in which additions Linked None of Stack Queue 1 and deletions take place at the same end. list the above A list of data items usually words or bytes with the accessing restriction that elements Linked Stack Memory Heap 1 can be added or removed at one end of the list list, is known as Queue has ------indices 0ne two three none 2 it is not Before deleting an element from list we make it is an it is not an it must be a invalid 3 sure that list empty list full. list Which of the following is a tabular listing of Byte contents of certain registers and memory Loop Program Subroutin sorting 2 location at different times during the program trace e program program execution of a program? What is time required to insert an element in O(n O(1) O(log2n) O(n) 1 a stack with linked implementation? log2n) What is the output of the following code? #include
56
void main() { int i=5,j=0;
5 1, 4 2, 4 0, 3 0, 4 1, 3 2, 2 None of 3 3, 2 3, 2 0, 1 0, 3, 1 4, 0 these 3 1 4, 0 0, 5, options
while ( i-- && ++j) { printf ("\n%d\t%d\n",i,j); } }
57
Why doesn`t strcat(string, `!`); work?
Perhaps "!" is not string "!" instead allowed doesn`t of "!" None of as a 4 have should be the above. character enough used. . memory.
struct num { int no; char name[25]; }; void main() 58
88
89
Error
0 garbage garbage 65432 43210 4 garbage garbage
{
98
8, unpredicta 2 ble
struct num n1[]={{25,"rose"},{20,"gulmohar"},{8,"gera nium"},{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 59
void main() {
int arr[]={0,1,2,3,4,5,6}; int i,*ptr; for(ptr=arr+4,i =0; i<=4; i++) printf("\n%d",ptr[-i]); } struct time { int hours; int minutes; 60
int second;
tt.second (*tt).sec time.t s onds
tt4 >seconds
} t; struct time *tt; tt = &t; Looking at the above declarations, which of the following refers to seconds correctly:
61
62
Default constructor:
Constructors___________
63
An object has _____.
64
A derived class
Requires Requires at least Can be no one overridde paramete paramete n r r always doesn`t have return have return object of return value the owner value class
None of these 1 options depends on 2 requireme nt
All of State these 4 options. Inherits Object Inherits Inherits data can access data construct members protected members ors and 1 and members and destructo member with the member r. functions dot functions Behavio Identity. ur
from base class.
65
Which is a logical abstract base class for a class called "CricketPlayer"?
Bank.
operator. from base class as well as Inherits constructo rs and destructor . Athlete. Sport.
Team.
3
None of Complex object composing of other object is Aggregat Assosiati Compositi 66 these 1 called_____? ion. on. on. options A line with an Only arrowwith a head line Diamond Cannot be pointing between shape represente 67 Inheritance in UML can be represented by: in 1 base between d in direction class & classes. UML. of parent derived or classes. superclas s. Which of the following do you think is used Comma Semi68 to seperate the base classes in a base class Colon (:) Tilde (~) 1 (,) colon (;) list? Pass Make argumen general ts and Pass classes Improve add argumen into more data features ts and specific hiding 69 Inheritance is a way to to 3 improve classes and existing data and add encapsulat classes hiding. features to ion without existing rewriting classes. them. According to OOP, What is the kind of Aggregat Composi Inheritanc 70 relationship we should not have for two Friend. 1 ion. tion. e. classes. rancid : myopic : euphoniou decrepit : 71 Odoriferous : Smell :: 3 taste vision s : sound age pond : desert : street : 72 RAIN : DELUGE :: ore : iron 1 ocean camel road
73
CONE : PINE ::
74
Horse : colt ::
75
BLUEPRINT : CONSTRUCTION ::
76
MANDATORY : OPTIONAL ::
77
Imitation : Individuality ::
78
INTRANSIGENT :
79
TEMERITY :
80
SALIENT :
The movement to ownership by unions is the latest step in the progression from management ownership. Employee 81 ownership to employee ownership can save depressed and losing companies. All the following statements, if true provide support for the claim above EXCEPT
Rock and roll music started in the 1950s as a young mans medium and rock is still best performed by men in their twenties and thirties. As rock performers grow into their 82 forties and even fifties, they are simply less physically capable of producing the kind of exciting music they did when they were younger. All of the following assumptions underline the argument above EXCEPT: A politician wrote the following: "I realize there are shortcomings to the questionaire method. However, since I send a copy of the 83 quetionnaire to every home in the district, I believe the results are quite representative.... I think the numbers received are so large that it is quite accurate even though the survey is
fruit : bulb : acorn : needle : 3 berry flower oak fir bird : child : seed : sheep : 4 eaglet adult fruit lamb itinerary signal : tenant : volume : 1 : trip light premises library pious : compete opaque : chaste : indignan 2 nt : inept ornate celibate t determin reckless vanity : debaucher ation : ness : conformit y : 4 success courage y morality conclusi workabl recogniza amenable 4 ve e ble foolhardi negligen timidity care 3 ness ce insignifi worrisom climactic awesome 1 cant e Employe Employe Employee e-owned e Employee union compani participa union ownership es tion in owner enable generally 3 mangae drives up worker to have ment salaries share in higher raises and wages the producti morale profits. ve As rock performe Women The rs Rock performer physical mature, music is s have demands their dominat always of performa ed by played a performin 3 nces tend male significant g rock are to performe role in better met become rs rock by the less music young exciting Most the A large, Most people questionn absolute people who aire number of in the received method of replies is 4 district the data synonymo live in question collection us with homes. naire is accuracy
not done scientifically" 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 84 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.
have replied
unscientifi c
Someon An e who Entrepren owner of develops eurs do Entrepren a large an not own eurs are business enterpris and the main 2 may be e may be operate actors in an consider small economic entrepre ed an businesses growth. neur. entrepre . neur. Canned food Canned During 1985, advertising expenditures on Advertisi prices food canned food products increased by 20%, ng Can decrease products while canned food consumption rose by effective opener 85 d are 1 25%.Each of the following, if true, could ness productio relative available help explain the increase in food increase n doubled. to in more consumption except: d. substitut stores. es. It is In impossib modern le to Even if societies The measure people , coolants A worldwide ban on the production of with should refrigera in certain ozone-destroying chemicals would accuracy give up tion of refrigerato provide only an illusion of protection. the the use of food is rs can be Quantities of such chemicals, already quantity refrigerato necessar fully produced, exist as coolants in millions of of rs, the y to recovered 86 refrigerators. When they reach the ozone ozonecoolants 4 prevent at the end layer in the atmosphere, their action cannot destroyin already in unhealth of the be halted. So there is no way to prevent these g existing y and useful life chemicals from damaging the ozone layer chemical refrigerato potential of the further. Which of the following, if true, most s that rs are a ly liferefrigerato seriously weakens the argument above? exist as threat to threateni rs and coolants atmospher ng reused. in ic ozone. conditio refrigerat ns. ors. All Every town with a pool hall has its share of All All pool Every gamblers unsavory characters. This is because the pool gamblers halls town has are 87 hall attracts gamblers and all gamblers are are attract unsavory 3 attracted unsavory. Which of the following, if true unsavory gamblers characters by pool cannot be inferred from the above? . . . halls.
88
89 90
91
92
93
94
95
96
97
98
99
Looking at a potrait, A said "her mother`s only son is my cousin`s father". My cousin is A`s the daughter of my maternal uncle who has Uncle an only sister. whose potrait was "A" looking at? Which of the following is an acceptable L, M, N, schedule starting from Monday to Friday? O, P If F sits directly opposite L and between K and M, which guest must sit directly opposite G M? Which of the following equations can be used to find a number x, if the difference x - 21 = between the square of this number and 21 is 4x the same as the product of 4 times the number? If x + 1/x = 5, then value of x + 1/x 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 rolls, 3 muffins, and a loaf of bread $1.10 at the same 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 sum of its edges. What is its total area in 66 square 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 machines and each machine Rs.84 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, then how many gallons of the 12.5 chemical can be purchased for Rs.625? The population of a town increases 4% annually but is decreased by emigration 10 annually to the 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 ratio 14:15. The difference in Rs.92.00 the amount of the bill, if the earlier bill was Rs.1890, is The towns of Andover and Diggstown are 91/2 840 miles apart. On a certain map, this
A`s sister
A`s A`s grandmoh mother ter
4
M, N, O, O, N, L, N, M P, M
P, O, L, M, L
1
H
K
3
J
x2- 21 = 2 x+ x = 21-4x 2 4x 4x =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
distance is represented by 14 inches. The towns of Lincoln 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
1
2
5/2
3
Sample Qestion Paper 03 Sr. Question
Option1
Option2
Option3
Option4
No.
01 02 03 04 05
06
07
08
09
10
11 12
The input interfaces transforms the data into hexa _________code The following is not a Analog type of computers ______ holds data as the Processor CPU works with it. The connectivity channel between CPU and BUS Memory is________ Which of these is an Magnetic Strip electronic card. Card The branch that deals with systematic application of computer the principles of computer engineering science is________ ___________ is a multi MS-DOS tasking system. ________ is used by operating system to map file names to their corresponding file Directories attributes 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 Data-Link hide all the details of the communication subnet from the session layer. Which of these keys Numeric belong to QWERTY Keypad keyboard ______is collection of the Data facts or informational raw
Answ er
binary
octal
decimal
2
Digital
Hybrid
Logical
4
Memory
Processor None of 2 and Memory these options
Cache Memory
Control Unit
None of 1 these options
Smart Card
ATM Card
Punch Card 2
software engineering
IT None of 2 engineering these options
Unix
Linux
None of 3 these options
Diary
Paging
File
1
Header
Byte
Bit
4
Physical
Transport
Presentation 3
null
Alphanumeri All of these 4 c Keys options
Database
Computer
Main Memory
1
material and become information after processing.
13
14 15
16
17
18
19
20
21
23
24
SCSI Interface helps in
Projects information from a computer on a large screen
It is an Interface unit between 1 I/O device and Ports
Plotter
Keyboard
COM
3
WAN
LAN
MAN
1
Subscript
Array
File
1
Algorithm
Procedure
None of 2 these options
Offline Storage
Merge
Communicat 4 ion Link
Analog to Extends the Digital and computer`s Bus Digital to outside the Analog computer Conversions
Which of these is not a Monitor output device. _______ is not a network DAN type _____ contains the addresses of all the records according to the Index contents of the field designed as the record key. A sequence of precise and un ambiguous instructions for solving a problem in a ALGOL finite number of operation is___________ ___________ symbol is used to show data Annotation transmission from one location to other. __________ is the analysis tool used for Protocol planning program logic A language which allows instructions to be Machine represented by letters (i.e language abbrevation) is_______ Language wherein Encapsulation and Assembly Abstraction of data is done Language is called as: During system evolution __________ is to be Time analysis considered The errors that occur in computer program Syntax error is________
None of these PROLOG options
Pseudocode 4
Assembly Language
Programmin 2 g language
Scientific Language
Object oriented Pascal programming language Language
Cobol
2
Ease of All of these Failure rate 4 maintenance options Syntax error None of Logical error and Logical 3 these options error
25
26
Standard methods of organizing data are:
File-oriented approach
Databaseoriented approach
A file management system typically supports the Transaction file Storage file following types of files, EXCEPT: Which of the following are keywords of the "C" language? i.if
27 ii.else
All are keywords
File-oriented approach Object and Oriented Databaseapproach oriented approach Master file
3
Backup file 2
only i,ii and only i,ii and only i and ii iii are iv are are 2 keywords keywords keywords
iii.then
28
iv.elseif All of the following are C int basic data types except: void main()
float
char
Union
4
00
01
11
3
{ int A=0, B=0, C=0, D=0; if((A==B)&&(A*B<=B) ) { 29
10 if(D==1) C=1; else if(A==1) C=2; } else C=3;
if((B==0)&&(A==B)& &(A!=1)) D=1; }
30
What are the final values of C and D? Which statement sets the 3rd lowermost bit of an 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
Runtime Error
2
void main() { int a=0, b=2, x=4, y=0; printf("\n%d\t,",(a==b)); 31
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 32
void main() { char str1[]="India",
Both the Both the string Compile string are not are same Time error same
str2[]="India"; 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 Time error
Runtime Error
4
456789 10
456789
3
int a = 0; printf("\n %d\t", (a = 10/a)); } What is the output of the following code? #include void main() { 34
int s=0; while(s++<10) { if(s<4 && s<9) continue;
12345678 1 2 3 10 9
printf("\n%d\t",s); }
35
} The break statement is used to exit from: I have a function
an if statement a for loop
extern int f(int *); 36
a program
the main() function
2
f(&5);
int five = 5; f(&five);
int five = 5; f(5); f(five);
1
x=8 y=10
x=10 y=8
Null value
Error
1
Are necessary Take less Are to solve a main storage executable certain class of space faster than
None
1
which accepts a pointer to an int. How can I pass a constant by reference? What is the output of the following code? #include main() { void swap(); int x=10, y=8; swap(&x, &y);
37
printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; } 38
Recursive Functions
problems
iterative ones
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}, }};
16
7
11
first is particular element, second is type
first is first is array particular size, second element, is particular second is element array size
Error
1
printf("\n%d",**(*arr+1)+ 2+7); } What is the difference between the 5`s in these two expressions? 40 int num[5];
both specify 2 array size
num[5];
41
int **array2 = (int **)malloc(nr int **array1 = ows * (int sizeof(int **)malloc(nro *)); ws * sizeof(int *)); array2[0] = How can I dynamically (int allocate a two-dimensional for(i = 0; i < *)malloc(nro array? nrows; i++) ws * ncolumns * array1[i] = (int sizeof(int)); *)malloc(ncolu mns * for(i = 1; i < sizeof(int)); nrows; i++) array2[i] = array2[0] + i
int *array3 = (int *)malloc(nro Any of the ws * above. ncolumns * sizeof(int));
1
* 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 void main() { 43
int arr[]={0,1,2,3,4,5,6};
Error
65432
0 garbage garbage garbage garbage
43210
4
X *thid;
const X *this;
X *const this;
4
20
50
None of these
3
int i,*ptr; for(ptr=arr+4,i =0; i<=4; i++) printf("\n%d",ptr[-i]);
44
} This pointer for any class int *this; internally declared as #include void prg(int);
45
main() { int a=10,j=3,i=2;
10
prg(a); a*=( i + j ); printf("%d",a); } 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 italicized numbers represent program line numbers) : 1. #include 2. int y; 46
3. void main() 4. { 5. int x,*px,**ppx;void f1(int *); 6. x = 10; 7. y = 1000;
10
1000
20
None of 3 these options
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 { unsigned int a; 47
1 bit unsigned int b;
6 bits
5 bits
None of the 4 above
}; struct sample v; The size of v.b is
48
49
struct node { typedef struct { char *item; The correct way for a char *item; struct node Both are None of structure in C to contain a NODEPTR *next; }; 2 correct. above. pointer to itself is next; } typedef struct *NODEPTR; node *NODEPTR; The main purpose of To allow the To use it To allow the None of the 1 declaring a union. same storage instead of same storage above
location to structure store data of different data types at different times.
location to store data of different data types at the same time.
50
The operation for adding an entry to a stack is Add traditionally called:
Append
Insert
Push
4
51
Pushdown list means:
Queue
Linked list
All of the above
1
Simulation
4
52 53 55 56
57
Stack
Postfix Notation When is linear queue said Front=rear+ Front==rear Front=rear-1 to be empty ? 1 Queue has ------indices 0ne two three Every link Links have Arrays are node has a arrays of In case of a linked list 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 Try \% Try %% Try $% string? I tried \%, but it didn`t work. #include Stack is not used in
Recursion
Quick Sort
Front=rear+ 1 1 none 2 All of the above
1
None of 2 these options
void prg(int); main() { int a=10,j=3,i=2; 58
prg(a); a*=( i + j ); printf("%d",a); } void prg(int x) {
10
20
50
None of 3 these options
int k=2; x*=k; return (x); }
59
What is the output of this program? What will happen if you try to put so many values into an array when you Nothing initialize 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
Error
50 150 600
50 75 100
3
Run time error
Compile time 100 error
Garbage value
3
#include void main() {
60
int x=25, y=50, z=75, *ptr;
50 150 300
ptr = &x; *ptr *=2; ptr = &y; *ptr *=3; ptr = &z; *ptr *=4; printf("\n %d\t %d\t %d\t", x, y ,z); } What is the output of the following code : 61
#include 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
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 Information hiding and None of Data Binding 3 hiding Data these options Binding All Objects data will be stored in Default Compiler will Object same constructor not compile the creation is memory area 4 will be class not possible so provided overwriting of data will happen To initialize to allocate to initialize the the objects None of memory for objects of it`s of it`s class these 1 the objects of class. as well as to options. it`s class only allocate
memory for the objects of it`s class 66
67
68
__________ is the capability to share and extent the functionality of an existing class. Inheritance through interface is called ________. Complex object composing of other object is called_____
Polymorphism. Inheritance.
Implementation Definition inheritance. inheritance. Aggregation
69
Whether the The (+) sign and (-) sign methods & to the left of the attributes attributes are & methods signify: public or private.
70
Data Which are the main three Encapsulation, features of OOP Inheritance & language? Exception handling
71
Which of the following Procedural programming technique language focuses on the algorithm.
72
73 74 75 76 77
A derived class
IGNOMINY : DISLOYALTY :: RAIN : DELUGE :: CONE : PINE :: Horse : colt :: Bland : Piquant ::
Inherits data members and member functions from base class.
fame : heroism pond : ocean fruit : berry bird : eaglet inane : relevant
Assosiation
Both Polymorphis Abstraction. 2 m and Inheritance Interface Delegation inheritance 2 inheritance. model. Composition
None of 1 these options
Whether the Used only methods & with attributes are attributes not 1 overloaded with or methods.. overridden. Data Inheritance, Encapsulatio Overloading, Polymorphis n, Inheritance m& Inheritance & 3 Exception & Polymorphis handling Polymorphis m m Object Object based Structural oriented 1 language language language Inherits data members Object can and member Inherits access functions constructors protected from base 1 and members class as well destructor. with the dot as Inherits operator. constructors and destructor. death : derelict : martyr : man 1 victory fool desert : camel ore : iron street : road 1 bulb : flower acorn : oak needle : fir 3 child : adult seed : fruit sheep : lamb 4 charlatan : slavish : terse : 2 Whether the methods & attributes are global or local.
genuine
servile serious mystery : forthright : tunnel : toil better : best detective snide conclusive workable recognizable amenable argumentative imaginative indifferent irreligious Wasteful Flippant Sloppy Shady danger safety perjury conundrum
78
OPEN : SECRETIVE ::
79 80 81 82
INTRANSIGENT : INCREDULOUS : SCRUPULOUS : JEOPARDY : During 1985, advertising expensing expenditure on canned food products increased by 20 percent, while canned food Advertising consumption rose by 25 effectiveness percent. Each of the increased following, if true, could help explain the increase in food consumption except Each of the following could be the number of 4 white puppies in the shelter EXCEPT The gateway of india is in mumbai mumbai is in 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 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 Prof. Tembel should fill out received low questionnaires at the end rating from his of the semester when students. courses have been completed. Which of the following, if true, provides support for Prof. Tembel`s
83
84
85
86
87
3 4 4 3 2
Canned food price decreased relative to substitutes
Canned food Canned products opener were avaible production in more doubled stores
4
5
6
8
2
cannot say
true
probably false
3
probably false
2
probably true cannot say
Students filled up the questionnaire after the midterm exam.
Teachers are Students are not obligated interested in to use the 2 teachers survey evaluation. results.
88
89
90
91
92
proposal ? 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.
being overweight is always caused A person hearing this by unhappiness advertisement countered, and unattractivenes s If the 2nd and 4th saturdays and all sundays are declared holidays ,what would be the 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 and immediately on G 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 1 only employee may not wish to indicate "yes" or "no" because 1. a simple "yes" or "no"
The Pistons have more points than the Bullets.
The Nuggets The Lakers have fewer have more 1 points than points than the Lakers. the Pistons.
being overweight is the only cause of unhappiness and unattractiven ess
unhappiness and unhappiness unattractiven necessarily ess 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
answer could indict the applicant. 2. The question contains an implication to which the applicant may not wish to lend credence.
93
94
95
96
97
98
3. The question presents a moral judgment. If the operation * is defined by *a = a2 - 2, 23 then *(*5) is On the number line shown, which point I corresponds to the number 2.27? It is between 10 and 11 that the hour and minute hands of a watch are 56 mts. past 10 exactly 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 2t + 6 and 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 jars of jam and Rs.175 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 8 loses 20%. In order to gain 20% in the transaction he
527
529
623
2
H
G
F
3
54 6/11 mts. 35 6/11 mts. 57 6/11 past 2 past 10 past 10 10
5t + 25
2.5t + 12.5
(t + 5)2
1
Rs.225
Rs.240
Rs.250
4
6
4
3
1
should 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 99 33 added. The percentage of sugar in the new solution is If the length of a rectangle is increased by 20% and decreases by 100 the width is decreased by 20% 20%, then the area A car traveled 75% of the way from town A to town B at an average speed of 50 kmph. The car travels at an average speed of S 101 10 kmph for the remaining part of 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 102 him back two metres. If he 500 needs to cross a 200-metre plot, how many metres will he actually walk?
30
15
None of the 2 above.
decreased by stays the 4% same
increases by 2 10%
20
33.34
37.5
3
480
300
240
3
Sample Qestion Paper 04 Sr. No. 01
02
03
04
05
06
Question
Option1
Option2
Option3
Option4
Answer
_______ is a nonvolatile memory chip in which data once ROM stored cannot be altered by programmer
PROM
EPROM
ROM and PROM
1
The Calculations & decision making is done in
ALU
RAM
Control Unit and ALU
2
Modern magnetic tapes use 8 bit EBCDIC ________code format for data recording
BCD
ASCII
All of these options
1
Magnetic disk is a ________ storage device
Indirect access
Random access
None of these options 1
WORM
CD-ROM and Zip disk WORM
3
Instructions
Hardware Procedure
1
Which of the following are of type Optical Disk:
Control Unit
Direct access
CD-ROM
Collection of Programs Software is
File File Administratio Available n Table Table
File Allotment Transfer
1
________ is used by operating system to map file names to their corresponding file Directories attributes and file data, and also to provide greater flexibility to users in file naming
Diary
Paging
File
1
09
The OSI model has ________ layers
5
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
The fastest computers
microcompute super
Pentium 3 mini computer
2
07
FAT stands for 08
11
File Allocation Table
3
of today`s era is________ Which of these keys belong to QWERTY keyboard 12
13
14
15
16
17
18
rs
computer
Numeric Keypad
null
Alphanum All of these options eric Keys
4
It is a powerful desktop Which of the computer following is true in designed to regard to Work station. meet greater processing power, large storage etc.
They can It is not used be used by for computer several All of these options aided design personnel at a time
1
Rules that govern transmission of data Router over communication network is__________
Topology
Prototype
Protocol
4
DRAM
STATIC and DRAM
None of these options 2
A value written into a program instruction that does not change Identifiers during the execution of program.
Constants
Objects
Operators
2
_____ contains the addresses of all the records according to the contents of the field designed as the record key.
Subscript
Array
File
1
The flowcharts used to describe the sequence System of operations for a flowcharts particular problem is called
Program flowcharts
Activity None of these options 2 flowcharts
The method of carrying out the instructions given in the flowchart with some sample data is
Tracing
Executing Tracking and Tracing 2
The periodic refreshing of ____________ RAM is required
STATIC
Index
Tracking
known as 19
20
Language wherein Encapsulation and Abstraction of data is done is called as:
Language Primarily used for internet-based ADA applications
Cobol
2
C++
FORTRAN
3
JAVA
_________is not true related to Debugging.
It is complete Process which when all should be desired planned and verification s scheduled against properly specifications are done
It is process of validating the All of these options correctness of program.
4
Program errors are known as ________
Virus
Bugs
Errors
2
Databaseoriented approach
Fileoriented approach Object Oriented and approach Databaseoriented approach
21
23
Assembly Language
Object oriented Pascal programming language Language
24
Standard methods of organizing data are:
File-oriented approach
All of these options
3
The component of data Data base management definition system is ________ Language
Data definition Data Language manipulation and Data None of these options 3 Language manipulati on Language
which of the following is NOT a character `Thank You` constant
`enter values `23.56eof p n r` 03`
27
Every C program requires :
statement
arithmetic main () function operator
4
28
void main() { 2.3
2.1
3
25
26
char
float 1.1 x[2][3]={{1.1,1.2,1.3}, {2.1,2.2,2.3}}; printf("%1.1f",
all of the above
2.2
4
*(*(x+1))); }
object code
executable object all of the above code
4
goto
Else
If
None
4
(int) 21.3/ (int) 4.5
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
34
The while The condition void main() { while(1) Sunc will be loop is an A linker error is in while loop printf(" sunc"); } printed once. infinite generated. is illegal loop.
3
main() { printf(" \n Hello"); disp(); } disp() { printf(" \n Hi"); main(); }
Hello
Hello Hi Hello Hi still stack Infinite no overflow of times
4
12
22
Error
2
29
30
31
35
36
the process of Source compiling and running program a C program includes: A continue usually associated with __________.
Hi
main() { char ch= 'A'; printf("%d%d", 11 sizeof(ch) ,sizeof('A')); }
1
37
which of the following con = `T` * mes = 123.56; statement is wrong `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
c c++
None
1
Unions are different than structures in that
union union union contents members members use are not are All of above the same members anonymou space s
39
40
Which of the following statement is i, ii and iii correct regarding arrays ? Array
c++
i only
i and iii
none of the above
2
3
elements are stored in contiguous memory 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. 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); }
25, 55, 25
25, 55, 55 none of these
2
42
Stack is constantly changing
element
object
memory location
set of integers
3
43
Consider the program segment given below. (The numbers represent program line numbers) : 1. #include
10
100
1000
20
3
41
2. int y; 3. void main() 4.{ 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 : 44
45
A linked list can have member node, which has
An elementary data item
A next pointer
A list
All of the above
4
10
1000
20
None of the above
3
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; 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) TRUE returns as the value
1
47
b is a pointer Interpret the following to a function which takes a invalid statement : pointer to an statement void(*b)(int *); int and returns a void 48
FALSE
0
1
b is a pointer to a void b is a pointer of type which can int which is a pointer 1 be typecast to a void as a pointer to int
Consider the following statements. i. stack is a LIFO ii. stack is a FIFO
only i and iii are true
only ii and iii only i and only ii and iv are true 3 are true iv are true
iii. queue is a LIFO iv. queue is a FIFO 49
50
If stack contain no item then it is called as Null stack ___
Empty stack
Waste stack
two In doubly link list each information node contain ______ node
two pointer
two nodes double header
2
will be initialized All of the above. to 0 if not initialized.
4
5
2
51
An external variable
52
has a declaration is globally "extern" accessible by associated all functions with it when declared with in a function
static int x=3 , y,z; void main() { int a; a= 3 x++ * ++y + ++z; printf("%d", a); }
4
Stack of no use
Garbage
2
void main() { int k=4; switch(k) { default : printf("A"); case 1: C printf("B"); case 4: printf("C"); case 2+3 1 : printf("D"); }}
D
Compilatio None n Err
3
The file The expression ((fpt = "sample" fopen(" sample","w" doesn't exist ))= = NULL) would be while fopen is true if ::being executed
The file "sample" could not be created for writing
ftp is not declared as the file "sample" is a FILE read only. pointer
4
A function called total(), totals the sum of an integer array passed to it (as the first parameter) and returns the total of all the int total( int elements as an integer. numbers[], int Let the second elements ) { parameter to the function be an integer which contains the number of elements of the array. The correct code is
int total( int total( int int numbers[], numbers[], None of the above int elements ) int { elements ) {
4
56
Passing a What does the term copy of a call-by-value refer to? variable into a function
Passing a pointer to a variable into a function
Choosing a random A function that does 1 value for a not return any values variable
57
void main() { int k=3; while(k) { int k=1; 1 printf("%d", k); k--; } }
Infinite loop
21
Declarations syntax err
2
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
Suppose a, b and c are 45
56
54
65
1
53
54
55
58
59
integer variables that have been assigned the values a=8, b=3 and c =-5. Determine the value of 2*b+3*(a-c) 60
What is output void main() { int n=3,a=2; 7 a*= n+1; printf("%d", a); }
8
6
None
Which of the following are good reasons to use an object oriented language.
An object oriented program can be taught to correct its own errors
It is easier to conceptual ize an object oriented program
You can define your own data types and It is easier to 4 conceptualize an object oriented program
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
Encapsulat Modelling ion
3
An object has _____.
State
Behaviour
Identity.
All of these options.
4
What is inheritance?
Aggregation It is same as of encapsulation. information.
Generaliza tion and All of these options. specializati on.
3
61
62
63 64
65
66
67
You can define your own data types
Any class that In interface implements methods do Which of the an interface Both are not have any following is not false? must provide true. implementatio the n. implementati on. Complex object composing of other object is called_____
Aggregation
A relationship that can function be identified between
Both are false.
2
1
Assosiation
Compositi None of these options 1 on
association
link
activity
2
two object entities (classes or individuals) is called a ___________. 68
69
Which of the following programming technique focuses on the algorithm.
Procedural language
Object oriented language
Shallow copy is defined as
Memberwise copying of objects
There is Is same nothing like like Deep shallow copy copy
Object based language
Structural language
1
None of these options 1
To initialize the objects of it`s to allocate to initialize class as The use of constructor memory for None of these the objects of well as to is ______. the objects of options. it`s class. allocate it`s class only memory for the objects of it`s class
1
71
IGNOMINY : DISLOYALTY ::
1
72
It may be useful to think of character in fiction as a function of two ________ analogous hu disparate agg divergent impulses: the impulse manize randize typify to individualize and the impulse to __________.
70
fame : heroism
death : victory
derelict : fool
martyr : man
comparable delineate 3
swan : graceful
lion : roar lamb : bleat
3
TRAP : GAME ::
novel : author net : fish
leash : dog wall : house
2
Bland : Piquant ::
inane : relevant
charlatan : genuine
slavish : servile
terse : serious
2
76
LUBRICANT : FRICTION ::
balm : pain
eraser : correction
solvent : paint
reagent : chemical
1
77
GRACEFUL : MOVEMENT ::
articulate : speech
fastidious : grime
humorous servile : rebellion : laughter
73 74 75
GAZELLE : SWIFT :: horse : slow
1
78
DISINTERESTED :
biased
violent
complete
humane
1
79
ACCOLADE :
rejection
separation
negligence descent
1
80
TEMERITY :
foolhardiness negligence
timidity
care
3
81
Each of the following could be the number of 4 white puppies in the shelter EXCEPT
5
6
8
2
During 1985, advertising expensing expenditure on canned food products increased by 20 Advertising percent, while canned effectiveness food consumption rose increased by 25 percent. Each of the following, if true, could help explain the increase in food consumption except
Canned Canned food food price products decreased were relative to avaible in substitutes more stores
Canned opener production doubled
4
82
83
84
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 An owner of a who develops large business an enterprise may be an may be entrepreneur. considered an entrepreneur.
Entreprene urs do not Entrepreneurs are the own and main actors in 2 operate economic growth. small businesses.
A politician wrote the Most people Most people the A large, absolute following: "I realize who received in the district questionna number of replies is there are shortcomings the live in ire method synonymous with
4
to the questionaire questionnaire homes. method. However, have replied since I send a copy of the quetionnaire to every home in the district, I believe the results are quite representative.... I think the numbers received are so large that it is quite accurate even though the survey is not done scientifically" 85
86
87
of data accuracy collection is unscientifi c
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 cools the ground which causes frost.
Farmers No one has proven are that the moon causes 2 superstitio frost. us.
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 workers to share in the profits.
3
A person hearing this advertisement countered,
being overweight is always caused by
being overweight is the only cause of
unhappine unhappiness ss and necessarily leads to unattractiv being overweight eness can
2
unhappiness and unattractivene ss 88
89
90
unhappiness and unattractiven ess
cause someone to be overweight
Looking at a potrait, A said "her mother`s only son is my cousin`s father". My cousin is the daughter A`s Uncle of my maternal uncle who has an only sister. whose potrait was "A" looking at?
A`s sister
A`s grandmoht A`s mother er
4
Which of the following pair of activies could be done L and O on Monday and Tuesday?
M and P
L and M
N and O
3
Orange, yellow, red, magenta, green, purple
3
In a game, exactly six inverted cups stand side by side in a straight line, and each has exactly one ball 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 lower-numbered cup than the orange ball. The red ball must be hidden under a cup immediately adjacent
Magenta, Green, Magenta, red, yellow, green, purple, purple, magenta, red, red, orange, yellow, purple, orange yellow green, orange
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 acute ratio of 3 : 5 : 7, then the triangle is
right
isosceles
obtuse
1
92
0.000006 * 0.0000007 0.000000000 0.0000000 0.0000000042 0.00000000000042 =? 042 000042
3
93
Rahul buys 16 cookies, Amit buys 12 cookies and Nayan buys x cookies. The average number of cookies the three bought is 35 between 19 and 23, inclusive. What is the smallest number of cookies Nayan could have bought?
31
30
29
4
A cylindrical vessel of radius 4 cm contains water. A solid sphere of radius 3 cm is lowered into the water 9 / 2 cm until it is completely immersed. The water level in the vessel will rise by
9 / 4 cm
4 / 9 cm
2 / 9 cm
2
If a certain sum of money becomes double at simple 8 (1/3) interest in 12 years, what would be the rate
10
12
14
1
94
95
of interest per annum? 96
97
98
99
Rakesh credits 15% of his salary in fixed deposit account and spends 30% of the Rs. 3500 remainder amount on groceries. If the cash in hand is Rs. 2380, what is his salary?
Rs. 4500
Rs. 5000
Rs. 4000
4
If the price of steak is currently Rs.1.00 a pound and the price triples every 6 months, 1 year 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
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 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
527
529
623
2
6 inches
9 inches
10 1/2 inches
2
162,108,72
If the operation * is defined by *a = a2 - 2, 23 then *(*5) is
100 An old picture has
dimensions 33 inches by 24 inches. What one length must be cut 2 inches from each dimension so that the ratio of the shorter side to the longer side is 2:3?
Sample Qestion Paper 05 Sr. No. 01
02
03
04
Question
Option1
Option2
Option3
Option4
Answe r
_______ computers perform the complex processing by Analog directly measuring the discrete physical quantities.
Digital
Hybrid
Personal
2
_______ is a nonvolatile 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 for data recording
EBCDIC
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 Frames and and Frames Channels
Tracks and Frames
Channels and Tracks
2
ATM Card
Punch Card
2
05
Which of these is Magnetic an electronic card. Strip Card
06
________ is a set of control statements and Application System software extends processing software capability of Computer system
Operating system
Utilites
2
Different types of Command user interfaces System calls language include
Job control language
All of these options
4
07
Smart Card
FAT stands for
File Allocation Table
File Administration Table
File Available Table
File Allotment 1 Transfer
The OSI model has ________ layers
5
6
7
8
Standard multimedia compression technique is
JPEG
MPEG FOR VIDEO
MPEG FOR AUDIO
All of these options
4
The mechanism of counting the 1 bits of the character bit set and adding a check bit to make Parity the total number of 1 bits even while transferring the data, is referred to as
Even Parity
Odd Parity
Error Checking
2
08
09
10
11
12
13
14
15
7
The shortcoming of Mark 1 computer is ___________
It is very slow
Very complex indesign and huge Unreliable in size
It is very slow and also very complex 4 indesign and huge in size
Which of the following are not Hard disk
Zip disk
Disk packs
Floppy disk
Winchester Disk
The unit of measurement of Maud data transfer rate is ______
Baud
Bandwidth
None of these 2 options
______is collection of the facts or informational raw Data material and become information after processing.
Database
Computer
Main Memory 1
DECISION CHARTS
SPREADSHE 4 ET
Algorithms can be PROGRAM represented in FLOWCHARTS S various ways
3
EXCEPT 16
17
18
19
20
_____ contains the addresses of all the records according Index to the contents of the field designed as the record key.
25
File
1
4
Effective Analysis
Efficient Coding
Time consuming
Effective Analysis and Efficient Coding
The logic used to perform instructions one after another is_______
Selection logic
Sequence logic
End case
None of these 2 options
Computer languages are Machine classified as all of Language the following EXCEPT:
Code language
Assembly language
High level Language
2
Limitation of Executed Machine language fast by are, EXCEPT: Computer
Difficult to program
Error prone
Machine dependent
1
________ is true for Syntax error.
24
Array
Advantages of using flow charts is
21
23
Subscript
These program error typically It is easier The program involve to detect cannot be compiled incorrect All of these Syntax error and executed until Punctuation, options compared to all syntax errors undefined logical error are corrected terms, no parenthesis etc.
4
Program errors are known as Virus ________
Bugs
Errors
All of these options
2
Commonly used file organization are:
Direct and Random
Indexed Sequential
All of these options
4
Manipulation
DDL
DML
1
Sequential
_________languag e that enables users to define Query there requirements for extracting
required information. 26
3.2 % 3
27
What is o/p If c=10, d=20 ( c> d Hi ? printf(" Hi") : printf(" Hello"));
28
1
Which of the following are keywords of the C language? i)if All are keywords ii)else
0
0.2
Err
4
Hello
HiHello
None of these 2
only i,ii and iii are only i,ii and iv keywords are keywords
only i and ii are keywords
2
iii)then iv)elseif 29
30
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
void main() { int arr[10]; printf("%d", sizeof(arr)); getch(); }
20
10
None
1
Following are the rules for naming an identifier except:
Uppercase case letters are not equivalent to lowercase letters
Should not start with a digit but can Any letter with - Letter starting 3 have digits in + = sign with between the name
31
32
33
34
Error
What is output void main() { int 7 n=3,a=2; a*= n+1; 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
The compiler
The compiler will search first the
The compiler None of the will search only above.
1
#include Here the will search angled brackets only the indicate standard libraries for the file myfile.h 35
36
37
38
39
40
41
main() { printf(" \n Hello"); disp(); } Hi disp() { printf(" \n Hi"); main(); } C() { printf("C"); } B() { C(); printf("B"); } A() CAMB { printf(" A"); B(); } main() { printf("M"); A(); } which of the following shows the correct hierarchy of arithmetic operations in C
user`s default/ the user`s working directory default/working and then the directory standard libraries for the file myfile.h
Hello
Hello Hi Infinite no of times
Hello Hi still 4 stack overflow
MABC
MCAB
MACB
(), **, /, *, +, -
(), / or *, - or + 4
(), **, * or /, (), **, *, /, +, + or ?
main() { printf(" C C to it that to it that C C servies servies"); main(); infinitely }
4
Compilation Error Linker Error
C to it that C servies still 4 stack overflow
None of above 1
The statement int (* arr [5]) (int *, char *) means
array of pointer to five functions
an integer function array of 5 taking 5 arrays and pointer to returning an char integers
What error would the following function give on compilation ? f(int a, int b) { int a; a=20; return a; }
Missing parentheses in return statement
The function should be defined as int f ( int a , int b)
Redeclaration of None of the a above
3
00 CA 00 40
00 00 AC 40
3
If the binary equivalent of 5.375 in normalised form is 40 AC 00 0100 0000 1010 00 1100 0000 0000 0000, 0000 what is the output of the
00 00 CA 04
following'C' program ? main() { float a = 5.375; char *p; int i; p=(char*) &a; for(i=0;i<=3;i++) printf("%02x",(uns igned char)p[i] ) ; } 42
Interpret the following statement : void(*b)(int *);
43
44
b is a pointer to a function which takes invalid statement a pointer to an int and returns a void
From an ascending priority queue only Largest the_________item can be removed
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 a pointer to a void
1
Smallest
Rear
Top
2
100
1000
20
3
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; 9. ppx = &px; 10. f3(ppx); 11.
10
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 : A stack in c is declared as a ____ array containing two objects
structure
group
collection of element
2
The remove operation can only empty be performed, if the queue is
non empty
overloaded
underflow
2
47
Stack is constantly element changing
object
memory location
set of integers 3
48
In a doubly linked list if a node is to be deleted between two nodes, how 2 many links of the existing list have to be modified?
4
3
1
3
200
300
None of the above
2
45
46
49
What is the output of the following code? void main() { int i = 100, j = 200;
100
const int *p=&i; p = &j; printf("%d",*p); } 50
The value of automatic variable that is declared but 0 not initialized will be
-1
Garbage
None
3
anywhere
none of the above
3
51
In a'C' program before main after main constant is defined
52
Passing a What does the Passing a pointer Choosing a copy of a term 'call-byto a variable into a random value variable into reference' refer to? function. for a variable. a function.
A function that does not return any values.
2
Consider the following declaration ::enum color {black=-1, blue, green }; This represents
black= -1 ,blue = - black= -1 ,blue 2, green= -3 = 0, green= 1
an illegal declaration
3
stdio.h
io.h
stdio.c
2
int total( int numbers[], int elements ) {
None of the above
4
53
54
55
black= 1,blue=2, green=3
The macro FILE is defined in which stdlib.h of the following files; A function called total(), totals the sum of an integer array passed to it (as the first 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
int total( int int total( int numbers[], numbers[], int int elements elements ) { ){
array. The correct code is Passing a What does the Passing a pointer Choosing a copy of a term call-by-value to a variable into a random value variable into refer to? function for a variable a function
A function that does not return any values
1
57
Associativity of unary minus is
58
56
59
60
61
62
63
64
65
right to left
left to right
from center
None
1
void main() { int I=0; for(;I= =2;) { 0 printf("%d", I); I++; } }
012
01
No output
4
If ( ps->top=-1) return (true); else return (false); For this group of statements suggested shorter and more efficient method
return (1 (ps>top=+1) else return 0;
return (ps->top==return(top+1); 1);
it can not be made shorter
3
The fwrite() and fread() functions handle data in
text form
binary form
hexadecimal form
octal form
2
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 Constructor Attribute shared by all instance of a class.
Constructor and None of these 1 Attribute options
Which of the is-a Part-of following are class relationship. relationship. relationships?
Use-a relationship.
All of these options.
4
4
Derived class Data inherits from base members. class.
Member function.
Constructor & destructor.
Both Data members and Member function.
A contract is implemented
Interface.
Abstract Class.
Interface and 4 Abstract Class
Class
through. 66
Complex object composing of other object is called_____
Composition
None of these 1 options
link
Activity
Data Encapsulation, Inheritance & Polymorphism
Overloading, Inheritance & 3 Polymorphism
A line with an 1?.n, where arrow-head Only with a line Cardinality can be n represents pointing in between base class represented as: an unlimited direction of & derived classes value. parent or superclass.
Cannot be represented in 1 UML.
70
Method is another Function name of____
Attribute
Behavior
None of these 1 options
71
SATURINE : MERCURIAL ::
saturn : venus
heavenly : starry
wolf : sly
72
KIND : Requital Reverentral:imprud Circumspect:sh Muddy:unclea 4 BENEVOLENT :: :reverberate ent ort-sighted r
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 : CONSTRUCTIO N ::
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 : deleterious : forbid embark
required : decide
compulsory : comply
4
67
68
69
Aggregation Assosiation
A relationship that can be identified between two object entities function (classes or individuals) is called a ___________.
association
Data Encapsulati Which are the Inheritance, on, main three features Polymorphism & Inheritance of OOP language? Exception handling & Exception handling
redundant : wordy
2
3
79
ASSUAGE :
humiliate
80
DORMANT :
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, would weaken the argument above EXCEPT
82
intensify
convert
Solidify
2
authoritative elastic
active
uninteresting
3
There have been instances in which drugaddicted babies have been born to addicted fathers and nonaddicted mothers.
Prior to the recent Drug addiction development is an acquired of DNA condition which testing, which cannot be maternity was 1 passed on from unquestionabl a mother to her e, paternity children could not be positively determined
Although some biological conditions have been shown to be genetically based, drug addiction is not among them
During 1985, advertising expensing expenditure on canned food products increased by 20 percent, Advertising Canned food price while canned food effectivenes decreased relative consumption rose s increased to substitutes by 25 percent. Each of the following, if true, could help explain the increase in food consumption
Canned food products were avaible in more stores
Canned opener production doubled
4
except 83
84
85
86
The gateway of india is in mumbai mumbai is in maharashtra false therefore the gateway of india is in Maharashtra
cannot say
true
probably false 3
Ravi is the younger than sachin sachin is younger than tarun true therefore ravi is the youngest among them
false
cannot say
probably true
1
Canned food products are available in more stores.
Can opener production doubled.
1
Employee Employee union union Employee ownership ownership participation in drives up enables management raises salaries and workers to morale. wages. share in the profits.
3
During 1985, advertising expenditures on canned food products increased by 20%, while canned food Advertising Canned food prices consumption rose effectivenes decreased relative by 25%.Each of s increased. to substitutes. the following, if true, could help explain the increase in food consumption except: The movement of ownership by unions is the latest step in the progression from management ownership to employee ownership. Employee ownership can save depressed and losing companies. All the following statements, if true,
Employeeowned companies generally have higher productivity .
provide support for the claim above except: 87
88
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 reliablilty of their understanding of social 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:
Social psychologist must have a strong background in other sciences as will as their own
starting from a point x jayant walked 15metres towards the west he turned to his left and walked 20 metres he then 32 metres turned to his left south and walked 15 metres he then further turned to his right and walked 12 metres how far is jayant
The social scientist has an A study of social obligation to psychology should provide the be part of the means by which curriculim of social government phenomena may officials. be understood by others
Social phenomena are little understood by 3 those outside the field of social psychology.
47 metres east
27 metres south
42 metres north
1
from the point x and in which direction? 89
90
If P and N are done on Thursday L is done on L is done on and Friday, then Tuesday Wednesday which of the following is true?
M is done on Monday
O is done on Tuesday
2
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, Beans, peas, If the farmer plants kale, corn, Beans, corn, peas, squash, beans, kale one year, the peas, squash beans, corn, squash corn, kale farmer does not plant it the next year. any year, the rmer plants o more than ne of the getables the rmer planted the previous ar. Which of the following is a possible sequence of combinations for the farmer to
Corn, peas, squash, beans, 3 kale, peas
plant in two successive years? 91
92
93
94
95
96
If x + 49 =8.2, then the value of x 1.20 is equal to
1.40
1.44
1.89
3
If a = -1 and b = 2, what is the 343 2 3 value of (2 - ab ) ?
216
125
64
2
If z = 1, y = 2.......a = 26. Find the 351 value of z + y + x + .......+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 be 36 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 6% can be had for same 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 960 years at the rate of 5% per annum is
900
840
800
1
Rs.1261. What is the simple interest of the same sum of money in the same number of years but at 4% per annum of simple interest. 97
98
99
100
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 30% contributed Rs.12 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 miles east of C and 5 miles E is 2 miles north of D. Find shortest distance between A and E.
6 miles
13 miles
18 miles
3
A dishonest milk seller professes to sell milk at cost price but gains 12 8:1 1/2%. The proportion of water he adds to milk is
6:2
5:1
None of the above.
1
Sample Question Paper 06 Sr. No. 01
02
03
04
05
Question
The decimal equivalent of 1011 is
Option1
21
Option2
Option3
Option4
Answ er
11
10
12
2
The _______ is useful device to obtain the computer output Graph plotters in the form of graphs or drawings.
Graphic pens
OCR
Punch Cards
1
______ holds data as the CPU Processor works with it.
Memory
Processor and None of these Memory options
2
In a floppy, the circular plate coated with magnetic oxide, is divided into sectors, tracks ______ and these are further divided into _____.
tracks, sectors
circles, sectors
ovals, circles
2
Which of these is not a output
Plotter
Keyboard
COM
3
Monitor
device. 06
07
08
09
10
11
12
13
14
Source code analysis tools Design screens functions as ,menus ,reports _____________ etc. _
Testing and debugging of programs
The principle task of a command language is:
To initiate execution of programs
To access the To cause an system functions interrupt
None of these options
1
_______is a program execution.
Procedure
Process
Algorithm
All of these options
2
Header
Byte
Bit
4
In the third generation of computers Micro which of the Mini computers computers following type of machines was introduced?
Main frame Computers
Super computer 1
______Gate is the Universal gate
OR
AND
NOR
2
A small high speed memory which is used to increase the RAM speed of processing is_____
ROM
Cache Memory
None of these options
3
Which of the following are of CD-ROM type Optical Disk:
WORM
CD-ROM and Zip disk WORM
______ is the smallest unit of Frame data
NAND
Optimising programs by Pointing out unreachable lines of code
Generate source code from 3 design given
3
The transistor technology was Second introduced in First generation Third generation generation ___________ generation
Fourth generation
3
________ is
None of these
3
High level
Low Level
Medium
concerned with scheduling the decision to temporarily remove a process from the system. 15
16
17
18
19
20
21
scheduling
Level scheduling
options
Pictorial representation flowchart of an Algorithm is _________
algorithm
graphics
procedure
1
The programming language that was designed for specifying algorithm
Address
ASCII
ALGOL
None of these options
3
A table used to define clearly the word statement of a problem in a tabular form is_______
Design table
Decoder
Decision Table
Debugging
3
The flow lines are represented by the symbol of
Arrows
Oval
Circle
Rectangle
1
Language Primarily used for internetbased applications
ADA
C++
JAVA
FORTRAN
3
Machine language has two part format the first part OPCODE,OPE is__________ RAND and the second part is __________
DATA OPERAND,OP OPERAND,CO CODE,OPER 1 CODE DEOP AND
The process of incorporating System changes in an Maintenance existing system
System Valuation
System evaluation
None of these options
1
to enhance, update its features is_________. 23
24
25
26
27
28
29
The errors that occur in computer program is________
Logical error
Syntax error and Logical error
None of these options
3
_________langu age that enables users to define there Query requirements for extracting required information.
Manipulation
DDL
DML
1
The file organization method that can Direct be used with magnetic tape storage is:
Sequential
Indexed Sequential
None of these options
2
Which of the following are keywords of the "C" language? All are i.if keywords ii.else iii.then iv.elseif
only i,ii and iii are keywords
only i,ii and iv are keywords
only i and ii are 2 keywords
The largest permissible same as the magnitude of an octal integer integer constant number is:
same as the short integer number
same as integer
None of these options
4
The expression, a = 7/22 * (3.14 8.28 + 2) * 3/5; evaluates to
6.28
3.14
0
4
The Output of the following code is: #include
3.0
1.5
1.0
3
Syntax error
5.0
void main( ) { float a = 1, b; int m = 3, n = 5; b = (a ? m : n)/2.0; printf ("%3.1f ", b); } 30
31
32
33
Which statement sets the 3rd lowermost bit of ^3; an unsigned integer x to 0, leaving other bits unchanged?
x|(~3);
x&(~3);
x&3;
4
What is the output of the following code? #include void main() { int a = 32, b = 66; 32 if (a, b) printf("\n%d",a) ; else printf("\n%d",b) ; }
66
Error
None of these options
1
What is the output of the following code? #include void main() Error { int a = 20; printf("%d",a + `F`); }
20
90
garbage value
3
if( 65 == sum if( sum < 65 ) ) printf("Sorry, printf("Sorry, try again" );
4
The statement that compares the value of an
if( sum < "65" ) if( sum <= 65 ) printf("Sorry, printf("Sorry, try again" ); try again" );
integer called sum against the value 65, and if it is less, prints the text string "Sorry, try again", is 34
35
try again" );
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: printf("\n %d\t",score + 203 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); } }
203 207 212
203 204 205
None of these options
3
What is the output of the following code? #include hi aaa() { printf("hi");
hello
bye
error
4
} bbb() { printf("hello"); } ccc() { printf("bye"); } main() { int (*ptr[3]) (); ptr[0]=aaa; ptr[1]=bbb; ptr[2]=ccc; ptr[3]=(); } 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
Sending a copy of data to a Recursion program module is called _____.
Passing a reference
Passing a value
None
3
What will happen if you assign a value to Other data an element of an The element will Nothing, its may be array whose be set to 0 done all the time overwritten subscript exceeds the size of the array?
Error message from the compiler
4
39
The statement is wrong; it assigns the value int n[4] = { 11, gives an error 17 to n[3] 13, 17, 105} message
assigns the value 3 -13 to n[2]
40
What will happen if you try to put so many values into an array
36
37
38
Nothing
assigns the value 17 to n[2]
Error message Possible system Other data may from the malfunction be overwritten compiler
3
when you initialize it that the size of the array is exceeded? 41
42
43
44
Which of the following is the correct way of float ptr; declaring a float pointer:
float *ptr;
*float ptr;
None of the above
Which of these are reasons for using pointers? 1.To manipulate parts of an array 2.To refer to keywords such as for and if 1&3 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 1
2
x is a pointer to a function that accepts an The purpose of argument which declaring is an array of amibiguous float (*x) pointers to declaration (int(*a)[]); integer is to indicate : quantities and returns a pointer to a floating point quantity.
x is a pointer to a function that accepts an argument which is a None of these pointer to an options integer array and returns a floating point quantity.
3
void main() { int I,fun1(),fun2(),f what happened un3(); Tulika int (*f[3])(); f[0]=fun1; f[1]=fun2;
what happened happened Tulika
3
what happened
Error:Invalid pointer assighnment
f[2]=fun3; for(I=0;I<3;I++) (*f[I])(); } fun1(){ printf("what");f un2();} fun2(){printf("h appened");} fun3{printf("Tul ika");} What is the output of this program? 45
46
47
48
What is the output of the following code? #include void main() { int arr[] = 30 20 {10,20,30,40,50 }; int *ptr = arr; printf("\n %d\t %d\t",*++ptr, *ptr++); }
30 10
The correct way for a structure in C to contain a pointer to itself is
struct node { char *item; struct node Both are *next; }; typedef correct. struct node *NODEPTR;
typedef struct { char *item; NODEPTR next; } *NODEPTR;
20 30
30 30
2
None of above.
2
None of these options
2
Individual structure member can be True initialized in the structure itself
False
Given the statements, struct someone { int age; char *name;
printf("%s", printf("%c", None of the someone.pers person->name); above on->name);
printf("%s", person.name);
Compiler dependent
4
} *person; the C statement that will print out the name of the person is : 49
50
51
52
53
54
55
The operation for adding an entry to a stack Add is traditionally called:
Append
Insert
Transform this expression to infix form? AB+C*DE-FG+$
$+GF-ED*C+BA
((A+B)*CNone of the (D-E))$(F+G) above
3
Which data structure is needed to Linear list convert infix notation to postfix notation
Queue
Tree
4
In the arrary representation of circular Front=rear queue when can we say that the queue is full?
(rear(rear+1)%max= 1)%max==fro rear=front-1 =front nt
For queue which It is an ordered of following are list true
All the insertions are made at rear
All the deletion are made from front
All of the above 4
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
What is the output of the following code? 0 #include void main()
1
Compile Time Runtime Error error
$+*ABC-FGDE$
Push
Stack
4
2
4
4
{ int a = 0; printf("\n %d\t", (a = 10/a)); } 56
Text file end with?
57
If you don`t initialize a static array, what will 0 be the elements set to?
an undetermined a floating the character value point number constant `\0`
12.34f is a ________ constant.
float literal
double literal character literal 2
What is the output of the following code if user enters "This is a test"? #include #include void main() This is a test { char str[8]; scanf("%s",&s tr); printf("\n%s", str); }
This is a
This
Error
3
What is the output of the following code? #include void main() { 123 /* this is /* an example */ of nested comment */ printf("\n123"); }
Compile time error
Run time Error
None of these options
2
Encapsulation is Information
Data Binding
Information
None of these
3
58
59
60
61
`\n`
string literal
Null value
`\r`
EOF
4
1
hiding 62
63
64
65
66
67
68
69
hiding and options Data Binding
Encapsulation prevents the program from becoming _______
Lengthy
Complicated
Independent
Interdependent
3
______ is the property of an object that distinguishes it from all other object.
Identity
State
Behaviour.
None of these options.
1
Polymorphism.
Overloading
Both Inheritance 2 & Overloading
Multiple instance.
Both Zero instance & Multiple instance.
None of these options.
2
An object containing other Containing object is called_____.
Composition
Containing and Composition
None of these options
2
What name is given to a collection of components or routines?
Namespace
Library
Schema
3
Data Which are the Encapsulation, main three Inheritance & features of OOP Exception language? handling
Inheritance, Polymorphism & Exception handling
Data Encapsulation Overloading, , Inheritance Inheritance & & Polymorphism Polymorphis m
Peer-to-peer relationship is a Association type of
Aggregation
Link
What is the term used to describe the situation when a derived Inheritance class provides a function already provided in the base class? Abstract class cannot have ________-.
Zero instance.
Bank
None of these options
3
3
_________. 70
The use of constructor is ______.
71
to initialize the objects of it`s class.
There are any number of theories to explain these events and, since even the experts disagree, paradoxical for it is ______ the ... abstain from rest of us in our role as responsible scholars to _________ dogmatic statements.
to allocate memory for the objects of it`s class only
To initialize the objects of it`s class as well as to None of these allocate options. memory for the objects of it`s class
1
incumbent on arrogant of ... opportune for ... ... refrain 3 compensate with quarrel over from
ODE : POEM :: character : novel brick: building
ballad : song
street : intersection
3
73
GAZELLE : SWIFT ::
swan : graceful
lion : roar
lamb : bleat
3
74
CONE : PINE :: fruit : berry
bulb : flower
acorn : oak
needle : fir
3
75
LUBRICANT : balm : pain FRICTION ::
eraser : correction
solvent : paint
reagent : chemical
1
HAM : PORK :: Pickle:sardine
Jelly:jam
Wine:grapes
Chocolate:coffe 3 e
77
DISINTEREST biased ED :
violent
complete
humane
1
78
GRACEFUL : articulate : MOVEMENT :: speech
fastidious : grime
humorous : laughter
servile : rebellion
1
79
DORMANT :
authoritative
elastic
active
uninteresting
3
80
SALIENT :
insignificant
climactic
worrisome
awesome
1
81
The movement Employeeto ownership by owned unions is the companies
Employee participation in mangaement
Employee union owner drives up
Employee union ownership 3 enable worker to
72
76
horse : slow
latest step in the generally have progression higher from productive management ownership. Employee ownership to employee ownership can save depressed and losing companies. All the following statements, if true provide support for the claim above EXCEPT 82
83
84
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
Ravi is the younger than sachin sachin is younger than true tarun therefore ravi is the youngest among them
raises morale
salaries and wages
share in the profits.
average Average stay the number of expenditure per per tourist has total hotel rooms 4 tourist has increased has increased. increased
false
Monopoly is ABC`s market is Monopoly is characterized by not defined as one an absence of or monopolistic. seller in a
cannot say
probably true
The ABC The ABC company has company is no domestic publicly owned
1
1
decline in competition. The ABC company realizes that its operations are in competitive industries. Which of the following conclusions may be inferred from the above? 85
86
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.
During 1985, advertising expenditures on canned food products increased by Advertising 20%, while effectiveness canned food increased. consumption rose by 25%.Each of the following, if true, could help explain the
market.
competitors
The Pistons have more points than the Bullets.
The Nuggets have fewer points than the Lakers.
The Lakers have more points than 1 the Pistons.
Canned food prices decreased relative to substitutes.
Canned food products are available in more stores.
Can opener production doubled.
1
increase in food consumption except: being overweight is the only cause of unhappiness and unattractiveness
unhappiness and unattractivene ss can cause someone to be overweight
unhappiness necessarily leads 2 to being overweight
Looking at a potrait, A said "her mother`s only son is my cousin`s father". My cousin is the A`s Uncle daughter of my maternal uncle who has an only sister. whose potrait was "A" looking at?
A`s sister
A`s grandmohter
A`s mother
4
If F sits directly opposite L,H sits at the head of the table, and G sits immediately on One H`s left, what is the total number of possible seating arrangements of the guest ?
Two
Three
Four
1
If F sits directly opposite L and between K and G M, which guest must sit directly opposite M?
H
J
K
3
91
0.000006 * 0.0000007 = ?
0.0000000042
0.000000000042
0.0000000000 0.000000000000 3 042 42
92
The sum of digits of a twodigit number is
4
2
6
87
A person hearing this advertisement countered, 88
89
90
being overweight is always caused by unhappiness and unattractiveness
none of the above
2
8 and the product of the digits is 15. What is the difference between the digits of that number? 93
94
95
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 $1.10 muffins, and 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
Robert is 15 years older than his brother Peter. However, y years ago Robert was 13 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
If paper costs 1 paisa per sheet, and a buyer gets a 2% discount on all the paper he buys after the Rs 49.30 first 1000 sheets, how much will it costs to buy 5000 sheets of
Rs 50.00
Rs 39.20
Rs 49.20
1
paper? 96
97
98
99
The inside circumference of a circular running track is 88 metres long and the track is everywhere 7 Rs. 140 metres wide. Find the cost of leveling the track at the rate of 18 P per square metre.
Rs. 138.60
Rs. 143.70
none of the above
2
How many metres of silk at Rs. 4.50 a metre must a draper 21 give in exchange for 50kg of sugar at Rs. 2.70 a kg?
27
30
None of the above
3
The price of jute has been reduced by 20%. If the reduced price is 960 Rs. 800 per quintal, the original price per quintal was
1000
980
640
2
A grain merchant bought 50kg of wheat at the rate of Rs. 7 per kg. And 20 kg of wheat at the rate 190 of Rs. 8 per kg. After mixing the two, he sold at the rate of Rs.10 per kg. What was his total profit in this
510
290
none of the above
1
transaction? 100
If m = 121 - 5 k is divisible by 3, which of the following may be true? 1. m is odd 1 only
2 only
2 and 3 only
1 and 2 only
4
2. m is even 3. k is divisible by 3
Sample Qestion Paper 07 Sr. No .
Question
Option1
Option2
Option3
Option4
Answe r
01 _______ computers
perform the complex processing by Analog directly measuring the discrete physical quantities.
Digital
Hybrid
Personal
2
PROM
EPROM
ROM and PROM
1
02 _______ is a non-
volatile memory chip in which data once ROM stored cannot be altered by programmer
03 Modern magnetic
tapes use 8 bit ________code format for data recording
EBCDIC
BCD
ASCII
All of these options
1
Tracks and Frames
Channels and Tracks
2
ATM Card
Punch Card
2
Operating system
Utilites
2
4
04 The tape of magnetic
tape storage is divided into Vertical Channels Frames and columns and Frames Channels called_________ and horizontal rows is called________ 05 Which of these is an Magnetic
electronic card.
Strip Card
Smart Card
06 ________ is a set of
control statements Application and extends System software software processing capability of Computer system 07 Different types of
user interfaces include 08
FAT stands for 09 The OSI model has
________ layers
System calls
Command language
Job control language
All of these options
File Allocation Table
File Administration Table
File Available Table
File Allotment 1 Transfer
5
6
7
8
1
JPEG
MPEG FOR VIDEO
MPEG FOR AUDIO
All of these options
4
Even Parity
Odd Parity
Error Checking
2
10 Standard multimedia
compression technique is 11 The mechanism of
counting the 1 bits of the character bit set and adding a check bit to make the total Parity number of 1 bits even while transferring the data, is referred to as The shortcoming of It is very Mark 1 computer is slow ___________
Very complex indesign and huge Unreliable in size
It is very slow and also very 4 complex indesign and
huge in size 12 Which of the
following are not Hard disk
Disk packs
Floppy disk
Winchester Disk
Baud
Bandwidth
None of these 2 options
Database
Computer
Main Memory 1
DECISION CHARTS
SPREADSHE 4 ET
Array
File
1
Efficient Coding
Time consuming
Effective Analysis and Efficient Coding
4
Sequence logic
End case
None of these 2 options
Machine Language
Code language
Assembly language
High level Language
2
Executed fast by Computer
Difficult to program
Error prone
Machine dependent
1
The program cannot be compiled and executed until all syntax errors
These program error typically involve incorrect
All of these options
4
Zip disk
3
13 The unit of
measurement of data Maud transfer rate is ______ 14 ______is collection
of the facts or informational raw Data material and become information after processing. 15 Algorithms can be
represented in various ways EXCEPT
PROGRAM FLOWCHARTS S
16 _____ contains the
addresses of all the records according to Index the contents of the field designed as the record key.
Subscript
17
Advantages of using Effective flow charts is Analysis 18 The logic used to
perform instructions Selection one after another logic is_______ 19 Computer languages
are classified as all of the following EXCEPT: 20 Limitation of
Machine language are, EXCEPT: 21
It is easier ________ is true for to detect Syntax error. Syntax error compared to
23 Program errors are
known as ________ 24 Commonly used file
organization are:
logical error are corrected
Punctuation, undefined terms, no parenthesis etc.
Virus
Bugs
Errors
All of these options
2
Sequential
Direct and Random
Indexed Sequential
All of these options
4
Manipulation
DDL
DML
1
0
0.2
Err
4
Hello
HiHello
None of these 2
25 _________language
that enables users to define there Query requirements for extracting required information. 26 3.2 % 3
1
27 What is o/p If c=10,
d=20 ( c> d ? printf(" Hi Hi") : printf(" Hello")); 28 Which of the
following are keywords of the C language? i)if ii)else
All are keywords
only i,ii and iii are only i,ii and iv keywords are keywords
only i and ii are keywords
2
`Thank You`
`enter values of p n `23.56e-03` r`
all of the above
4
10
None
1
iii)then iv)elseif 29 which of the
following is NOT a character constant 30 void main() { int
arr[10]; printf("%d", 20 sizeof(arr)); getch(); } 31
Following are the rules for naming an identifier except:
Uppercase case letters are not equivalent to lowercase letters
Error
Should not start with a digit but can Any letter with - Letter starting 3 have digits in + = sign with between the name
32 What is output void
main() { int n=3,a=2; 7 a*= n+1; printf("%d", a); }
8
6
None
2
exit
both a and b
None
1
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 None of the the user`s above. default/working directory
Hello
Hello Hi Infinite no of times
Hello Hi still 4 stack overflow
MABC
MCAB
MACB
(), **, /, *, +, -
(), / or *, - or + 4
33 The keyword
_______ breaks the control from while loop. 34
break
The compiler Consider the will search declaration #include only the Here the angled standard brackets indicate libraries for the file myfile.h
35 main() { printf(" \n
Hello"); disp(); } disp() { printf(" \n Hi"); main(); }
Hi
1
36 C() { printf("C"); }
B() { C(); printf("B"); } A() { CAMB printf(" A"); B(); } main() { printf("M"); A(); }
4
37 which of the
following shows the (), **, * or /, correct hierarchy of (), **, *, /, +, + or ? arithmetic operations in C 38 main() { printf(" C to C to it that
it that C servies"); main(); } 39
C servies infinitely
array of The statement int (* pointer to arr [5]) (int *, char *) five means functions
Compilation Error Linker Error
C to it that C servies still 4 stack overflow
an integer function array of 5 taking 5 arrays and pointer to returning an char integers
None of above 1
40 What error would the
Missing The function following function parentheses should be defined give on compilation in return as int f ( int a , int ? f(int a, int b) { int statement b) a; a=20; return a; }
Redeclaration of None of the a above
3
41 If the binary
equivalent of 5.375 in normalised form is 0100 0000 1010 1100 0000 0000 0000, 0000 what is the output of the 40 AC 00 following'C' program 00 ? main() { float a = 5.375; char *p; int i; p=(char*) &a; for(i=0;i<=3;i++) printf("%02x",(unsig ned char)p[i] ) ; } 42
00 CA 00 40
b is a pointer to a function Interpret the following statement : which takes invalid statement a pointer to void(*b)(int *); an int and returns a void
00 00 AC 40
00 00 CA 04
3
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 a pointer to a void
1
43 From an ascending
priority queue only the_________item can be removed
Largest
Smallest
Rear
Top
2
10
100
1000
20
3
44 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; 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 ____ containing two objects
array
structure
group
collection of element
2
empty
non empty
overloaded
underflow
2
element
object
memory location
set of integers 3
4
3
1
3
200
300
None of the above
2
46 The remove
operation can only be performed, if the queue is 47 Stack is constantly
changing 48 In a doubly linked
list if a node is to be deleted between two nodes, how many 2 links of the existing list have to be modified? 49 What is the output of
the following code? void main() {
100
int i = 100, j = 200; const int *p=&i; p = &j; printf("%d",*p); } 50 The value of
automatic variable 0 that is declared but not initialized will be 51 In a'C' program
constant is defined 52
What does the term 'call-by-reference' refer to?
-1
Garbage
None
3
anywhere
none of the above
3
A function that does not return any values.
2
black= -1 ,blue = - black= -1 ,blue 2, green= -3 = 0, green= 1
an illegal declaration
3
stdio.h
io.h
stdio.c
2
int total( int int total( int numbers[], numbers[], int int elements elements ) { ){
int total( int numbers[], int elements ) {
None of the above
4
Passing a
Choosing a
A function
1
before main after main
Passing a Passing a pointer Choosing a copy of a to a variable into a random value variable into function. for a variable. a function.
53 Consider the
following declaration black= ::- enum color 1,blue=2, {black=-1, blue, green=3 green }; This represents 54 The macro FILE is
defined in which of stdlib.h the following files; 55 A function called
total(), totals the sum of an integer array passed to it (as the first parameter) and returns the total of all the elements as an integer. Let the second parameter to the function be an integer which contains the number of elements of the array. The correct code is 56 What does the term
Passing a pointer
call-by-value refer to? 57 Associativity of
unary minus is
copy of a to a variable into a random value variable into function for a variable a function
that does not return any values
right to left
left to right
from center
None
1
012
01
No output
4
it can not be made shorter
3
58 void main() { int
I=0; for(;I= =2;) { 0 printf("%d", I); I++; }} 59 If ( ps->top=-1)
return (true); else return (false); For this group of statements suggested shorter and more efficient method
return (1 (ps>top=+1) else return 0;
return (ps->top==return(top+1); 1);
text form
binary form
hexadecimal form
octal form
2
Encapsulation
Overloading
Overriding
1
60 The fwrite() and
fread() functions handle data in 61 When the language
has the capability to Extensible produce new data type,it is called____. 62 ______ is the good
example of a method Constructor Attribute that is shared by all instance of a class. 63 Which of the
following are class relationships? 64
Derived class inherits from base class.
is-a Part-of relationship. relationship.
Constructor and None of these 1 Attribute options Use-a relationship.
All of these options.
4
4
Data members.
Member function.
Constructor & destructor.
Both Data members and Member function.
Class
Interface.
Abstract Class.
Interface and 4 Abstract Class
Composition
None of these 1 options
link
activity
65 A contract is
implemented through. 66 Complex object
composing of other Aggregation Assosiation object is called_____ 67 A relationship that
can be identified
function
association
2
between two object entities (classes or individuals) is called a ___________. Which are the main three features of OOP language?
Data Encapsulati Inheritance, on, Polymorphism & Inheritance Exception handling & Exception handling
Data Encapsulation, Inheritance & Polymorphism
Overloading, Inheritance & 3 Polymorphism
Cardinality can be represented as:
A line with an 1?.n, where arrow-head Only with a line n represents pointing in between base class an unlimited direction of & derived classes value. parent or superclass.
Cannot be represented in 1 UML.
Function
Attribute
Behavior
None of these 1 options
redundant : wordy
saturn : venus
heavenly : starry
wolf : sly
68
69
70 Method is another
name of____ 71 SATURINE :
MERCURIAL :: 72 KIND :
BENEVOLENT ::
3
Requital Reverentral:imprud Circumspect:sh Muddy:unclea 4 :reverberate ent ort-sighted r
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 :
pious : indignant
competent : inept
opaque : ornate
chaste : celibate
2
signal : light
tenant : premises
volume : library
1
lament : bereavement
pot : pan
face : penalty
2
innocuous : deleterious : forbid embark
required : decide
compulsory : comply
4
79 ASSUAGE :
humiliate
convert
solidify
2
80 DORMANT :
authoritative elastic
active
uninteresting
3
Drug addiction is an acquired condition which cannot be passed on from a mother to her children
Prior to the recent development of DNA 1 testing, which maternity was unquestionabl
OPTIONAL :: 76 BLUEPRINT :
itinerary : CONSTRUCTION :: trip
77 CELEBRATE :
MARRIAGE :: 78 PROHIBITED :
REFRAIN ::
window : bedroom
81 Studies over the last There have
20 years have shown that virtually all babies born to drug addicted mothers are themselves adicted to drugs. No such
been instances in which drugaddicted babies have been born to
intensify Although some biological conditions have been shown to be genetically based, drug addiction is not among them
correlation, however, has been shown between drugaddicted fathers and thier newborn children. It would appear, then, that drug addiction is a genetically inherited trait that is genderlinked and passed through the mother. All the following, if true, would weaken the argument above EXCEPT
addicted fathers and nonaddicted mothers.
e, paternity could not be positively determined
82 During 1985,
advertising expensing expenditure on canned food products increased Advertising Canned food price by 20 percent, while effectivenes decreased relative canned food s increased to substitutes consumption rose by 25 percent. Each of the following, if true, could help explain the increase in food consumption except
Canned food products were avaible in more stores
Canned opener production doubled
cannot say
true
probably false 3
false
cannot say
probably true
1
Can opener production
1
4
83 The gateway of india
is in mumbai mumbai is in maharashtra therefore the gateway of india is in maharashtra
false
84 Ravi is the younger
than sachin sachin is younger than tarun true therefore ravi is the youngest among them 85 During 1985,
advertising
Advertising Canned food prices Canned food effectivenes decreased relative products are
expenditures on s increased. to substitutes. canned food products increased by 20%, while canned food consumption rose by 25%.Each of the following, if true, could help explain the increase in food consumption except:
available in more stores.
doubled.
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 Employee union union Employee ownership ownership participation in drives up enables management raises salaries and workers to morale. wages. share in the profits.
Social psychologist must have a strong background in other sciences as will as their own
The social scientist has an A study of social obligation to psychology should provide the be part of the means by which curriculim of social government phenomena may officials. be understood by others
3
87 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 reliablilty of their understanding of social phenomena. Beyond that, responsible government officials are today turning more frequently to the social sientists
Social phenomena are little understood by 3 those outside the field of social psychology.
for insight into the nature and solution of the problems with which they are confronted. The above argument assumes that: 88 starting from a point
x jayant walked 15metres towards the west he turned to his left and walked 20 metres he then turned to his left and 32 metres 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
M is done on Monday
O is done on Tuesday
2
89 If P and N are done
on Thursday and Friday, then which of the following is true?
L is done on L is done on Tuesday Wednesday
90 A farmer plants only
five different kinds of vegetables -beans, corn, kale, peas, and squash. Every year the farmer plants exactly three kinds of vegetables according Beans, corn, Beans, corn, peas, Beans, peas, kale, corn, squash, beans, to the following beans, corn, squash peas, squash corn, kale restrictions: If the farmer plants corn, the farmer also plants beans that year. If the farmer plants kale one year, the farmer does not plant
Corn, peas, squash, beans, 3 kale, peas
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? 91 If x + 49 =8.2,
then the value of x is 1.20 equal to
1.40
1.44
1.89
3
216
125
64
2
221
400
200
1
24
14
12
1
8%
10 %
12 %
2
92 If a = -1 and b = -2,
what is the value of 343 (2 - ab2)3? 93 If z = 1, y = 2.......a =
26. Find the value of 351 z + y + x + .......+a. 94 A clock that gains
two minutes each hour is synchronized at midnight with a clock that loses one minute an hour. What will be the 36 difference, in minutes, between the times shown on the two clocks when a third clock correctly shows noon? 95 50 copies of a book
can be purchased for a sum payable 3 6% months hence while 51 copies can be had for same sum for
cash payment. What is the rate of interest per year? 96 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
halved
unchanged
doubled
increased by 350%
4
30%
40%
45%
50%
4
6 miles
13 miles
18 miles
3
6:2
5:1
None of the above.
1
97 If the radius of a
cylinder is tripled while its height is halved, its volume will be 98 In a group of people
solicited by a charity, 30% contributed Rs.40each, 45% contributed Rs.20 each, and the rest contributed Rs.12 each. What percentage of the total contributed came from people who gave Rs.40? 99 A is 8 miles east of
B. C is 10 miles north of B. D is 13 miles east of C and E 5 miles is 2 miles north of D. Find shortest distance between A and E. 10 A dishonest milk 0 seller professes to
sell milk at cost price
8:1