cdac sample c-cat papers

116
Monday, June 21, 2010 Sample Question Paper 01 This post was published to C-DAC Entrance Exam Syllabu... at 12:19:23 AM 6/21/2010 Sr . No . Question Option1 Option2 Option3 Option4 Answe r 01 ________performs and supervises the execution of instructions and directs other devices of computer to act as per their designated functions. ALU Control Unit RAM Main Memory 2 02 All of the following are input devices EXCEPT Touch screen Punch Cards Mouse None of these options 4 03 Magnetic disk is a ________ storage device Direct access Indirect access Random access None of these options 1 04 Which of the following are not Hard disk Zip disk Disk packs Floppy disk Winchester Disk 3 05 Which of these keys belong to QWERTY keyboard Numeric Keypad null Alphanum eric Keys All of these options 4 06 Collection of Programs is Softwar e Instructio ns Hardware Procedure 1 07 _______is a program execution. Procedu re Process Algorith m All of these options 2 08 _______ is an operating system MS-DOS WINDOWS LINUX All of these options 4 09 The conversion of digital data to analog form is _______ Modulat ion Demodulati on Sampling Modem 1 10 The first generation machines Vaccum Transistor IC`s None of 1

Upload: aits123

Post on 29-Oct-2014

135 views

Category:

Documents


2 download

DESCRIPTION

CDAC PREPARTION PAPERS FOR ENTRANCE

TRANSCRIPT

Page 1: CDAC SAMPLE C-CAT PAPERS

Monday, June 21, 2010

Sample Question Paper 01

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

 Sr.

No.Question Option1 Option2 Option3 Option4 Answer

01

________performs and supervises the execution of instructions and directs other devices of computer to act as per their designated functions.

ALU Control Unit RAM Main Memory 2

02All of the following are input devices EXCEPT

Touch screen

Punch Cards Mouse None of these options

4

03 Magnetic disk is a ________ storage device Direct access

Indirect access Random access

None of these options

1

04 Which of the following are not Hard disk Zip disk Disk packs Floppy disk Winchester Disk 3

05Which of these keys belong to QWERTY keyboard

Numeric Keypad

null Alphanumeric Keys

All of these options

4

06 Collection of Programs is Software Instructions Hardware Procedure 1

07 _______is a program execution. Procedure Process Algorithm All of these options

2

08 _______ is an operating system MS-DOS WINDOWS LINUX All of these options

4

09The conversion of digital data to analog form is _______

Modulation

Demodulation Sampling Modem 1

10 The first generation machines used _________ Vaccum Tube

Transistors IC`s None of these options

1

11The input interfaces transforms the data into _________code

hexa binary octal decimal 2

12Super computers use __________ and __________ technologies to solve complex problems faster

RISC AND CISC

MULTIPROCESSING AND PARELLEL PROCESSING

PARELLEL PROCESSING AND RISC

FUZZY LOGIC AND NEUTRAL TECHNIQUE

2

13 Different types of user interfaces include System calls

Command language

Job control language

All of these options

4

14_______ is a device capable of changing signals from one form to another.

Trasistor Transducer Sampler Scanner 2

15The interface that enables similar networks to communicate is called

Bus network

Router Cable modem

Bridge 4

16A value written into a program instruction that does not change during the execution of program.

Identifiers Constants Objects Operators 2

Page 2: CDAC SAMPLE C-CAT PAPERS

17Algorithms can be represented in various ways EXCEPT

PROGRAMS

FLOWCHARTS

DECISION CHARTS

SPREADSHEET

4

18_________ symbol is used for Processing of data.

Oval Parallelogram Rectangle Diamond 3

19

The ______ symbol is used to indicate the comments/remarks on the contents of a procedure in order to clarify some point of the flowchart.

Document Annotaion Arrow Connector 2

20All of the following are computer Language Processors EXCEPT:

Compiler Translation Software

Interpreter None of these options

4

21Language Primarily used for internet-based applications

ADA C++ JAVA FORTRAN 3

23The errors that occur in computer program is________

Syntax error

Logical error Syntax error and Logical error

None of these options

3

24 Program errors are known as ________ Virus Bugs Errors All of these options

2

25The component of data base management system is ________

Data definition Language

Data manipulation Language

Data definition Language and Data manipulation Language

None of these options

3

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

Direct Indexed Sequential

Sequential Batch 1

27 C can be used on

Only MS-DOS operating system

only unix operating system

only windows operating system

All of these options

4

28Which of the following is not a valid identifier?

name_23 __tail__ 2ndday None of these options

3

29 void main()

{

   int A=0, B=0, C=0, D=0;

   if((A==B)&&(A*B<=B))

   {

      if(D==1) C=1;

      else

      if(A==1) C=2;

1 0 0 0 0 1 1 1 3

Page 3: CDAC SAMPLE C-CAT PAPERS

   }

   else

      C=3;

   if((B==0)&&(A==B)&&(A!=1))

      D=1;

}

What are the final values of C and D?

30

#include<stdio.h>

void main()

{

int x=10;

(x<0)?(int a =100):(int a =1000);

printf(" %d",a);

}

Error 1000 100 None of these options

1

31If `a` is an integer variable, a = 5/2; will return a value:

2.5 3 2 0 3

32

What is the output of the following code :

#include<stdio.h>

void main()

{

   extern int out;

   printf("%d",out);

}

int out=100;

Run time error

Compile time error

100 Garbage value 3

34 What is the output of the following code?

#include<stdio.h>

void main()

0 1 Compile Time error

Runtime Error 4

Page 4: CDAC SAMPLE C-CAT PAPERS

{

   int a = 0;

   printf("\n %d\t", (a = 10/a));

}

35

Write a for loop which will read five characters (use scanf) and deposit them into the character based array words, beginning at element 0.

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

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

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

None of these options

1

36

#include<stdio.h>

void main()

{

   while (1)

   {

      if (printf("%d",printf("%d")))

         break;

      else

         continue;

   }

}

The output is

Compile time error

Goes into an infinite loop

Garbage values

None of these options

3

37 What is the output of the following code?

#include<stdio.h>

char *someFun()

{

   char *temp = "String constant";

   return temp;

}

main()

String constant

Null value Error None of these options

1

Page 5: CDAC SAMPLE C-CAT PAPERS

{

   puts (someFun());

}

38

What is the output of the following code?

#include<stdio.h>

int Check(int);

void main()

{

   printf("\n%d\t",Check(100));

}

int Check(int a)

{

   if(a%2==0)

   {

      return 1;

      break;

   }

   return 0;

}

1 0 Error None of these options

3

39 The expression

temp1 = f();

temp2 = g();

temp3 = h();

temp4 = temp2 * temp3;

temp5 = temp1 * temp4;

f() + g() * h()

f() + (g() * h()) Any of these options

None of these options

4

Page 6: CDAC SAMPLE C-CAT PAPERS

is equivalent to

40If you don`t initialize a static array, what will be the elements set to?

0 an undetermined value

a floating point number

the character constant `\0`

1

41Elements in an array are identified by a unique _______.

symbol order subscript data type 3

42

What is the output of the following code?

#include<stdio.h>

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);

}

16 7 11 Error 1

43

What is the output of the following code?

#include<stdio.h>

void main()

{

int arr[] = {10,20,30,40,50};

int x,*ptr1 = arr, *ptr2=&arr[3];

x = ptr2 - ptr1;

printf("\n%d\t",x);

}

6 3 Compile Time error

Runtime Error 2

44An address is a ________, while a pointer is a _________.

variable, location

variable, position

constant, variable

None 3

45 #include"stdio.h"

main()

{

int *p1,i=25;

void *p2;

Program will not compile

25 Garbage value

Address of I 2

Page 7: CDAC SAMPLE C-CAT PAPERS

p1=&i;

p2=&i;

p1=p2;

p2=p1;

printf("%d",i);

}

The output of the above code is :

46

main()

{

char thought[2][30]={"Don`t walk in front of me..","I am not follow"};

printf("%c%c",*(thought[0]+9),*(*(thought+0)+5));

}

What is the output of this program?

k k Don`t walk in front of me

I may not follow

k 4

47 ptr equivalent of a[i][j] is ((*a+i)+j) *(*(a+i)+j) **a+i+j none of these options

2

48

Given the statement,

maruti.engine.bolts = 25;

which of the following is true?

structure bolts is nested within structure engine

structure engine is nested within structure maruti

structure maruti is nested within structure engine

structure maruti is nested within structure bolts

2

49 struct num

{

int no;

char name[25];

};

void main()

{

8 8 8 9 9 8 8 , unpredictable 2

Page 8: CDAC SAMPLE C-CAT PAPERS

struct num n1[]={{25,"rose"},{20,"gulmohar"},{8,"geranium"},{11,"dahalia"}};

printf("%d%d"n1[2].no,(*&n1+2)->no+1);

}

What is the output of this program?

50

What is the output of the following program?

void main()

{

struct player

{

char name[30];

unsigned char player_number;

float batting_average

};

printf("size = %d", sizeof (struct player));

}

size = 32 size= 35 size= 36 size= 33 3

51A _______ is a linear list in which additions and deletions take place at the same end.

Stack Queue Linked list None of the above

1

52 Stack can be represented using Arrays Arrays or linked list

Only linked list

None of the above

2

53 Stack is not used in Recursion Quick Sort Postfix Notation

Simulation 4

54Which of the following is not an operation of queue, assuming that queue has items `Q` and `X`?

empty(Q) deque(Q,X) enque(Q,X) push(Q,X) 4

55Consider a linked list of n elements. What is the time taken to insert an element after an element pointed by some pointer?

O(log2n) O(n) O(1) O(n log2n) 3

56The node of the circular doubly linked list must have:

One data and two address fields

One data and one address fields

Two data and two address fields

Two data and one address fields

1

57 The function of the C Preprocessor is: macro replaceme

conditional inclusion

file inclusion

All of the above. 4

Page 9: CDAC SAMPLE C-CAT PAPERS

nt

58The statement that prints out the character set from A-Z, is

for( a = `z`; a < `a`; a = a - 1)

printf("%c", &a);

for( a = `a`; a <= `z`; a = a + 1)

printf("%c", &a);

for( a = `A`; a <= `Z`; a = a + 1)

printf("%c", a);

for( a = `Z`; a <= `A`; a = a + 1)

printf("%c", a);

3

59

/*consider that file zzz.h starts here*/

printf("Hello");

/*and ends here*/

void main()

{

#include "zzz.h"

printf("World");

}

What is the output of the above program

World Hello HelloWorld Compilaion Error

3

60

The function called menu which prints the text string "Menu choices", and does not pass any data back, and does not accept any data as parameters, looks like

void menu( void ) { printf("Menu choices"); }

int menu( void ) { printf("Menu choices"); }

int menu( char string[] ) { printf("%s", string); }

None of the above

4

61Which of the following are correctly formed #define statements

#define INCH PER FEET 12

#define SQR (X * X) (X)

#define SQR (X* X * X)

#define SQR(X) (X) * (X)

4

62 When is linear queue said to be empty ? Front==rear

Front=rear-1 Front=rear+1

Front=rear+1 1

63The data type created by the data abstraction process is called

Class Structure Abstract Data type

User Define Data type

3

64Peer-to-peer relationship is a type of _________.

Association

Aggregation Link None of these options

3

65 An object has _____. State Behaviour Identity. All of these options.

4

66 A derived class Inherits data members and

Inherits constructors and destructor.

Object can access protected members

Inherits data members and member functions from

1

Page 10: CDAC SAMPLE C-CAT PAPERS

member functions from base class.

with the dot operator.

base class as well as Inherits constructors and destructor.

67 Reusability can be achieved through. Inheritance.

Composition. Association. All of these options

4

68An object containing other object is called_____.

Containing Composition

Containing and Composition

None of these options

2

69 UML stands for Unique modeling language.

Unified modeling language

Unified modern language

Unified master laqnguage

2

70

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

data-hiding.

packaging. encapsulation.

grouping 3

71 If constructor is not provided then

Compiler will not compile the class

Object creation is not possible

All Objects data will be stored in same memory area so overwriting of data will happen

Default constructor will be provided

4

72 Method overloading is _________

Overloading different member function of a class

A feature in which member function with same name and different signature.

Overloading without argument pasing.

None of these options

1

73 WATERFALL : CASCADE :: snow : freeze

missile : launch tree : exfoliate

wave : undulate 4

74 SATURINE : MERCURIAL :: redundant : wordy

saturn : venus heavenly : starry

wolf : sly 3

75 EXPLOSION : DEBRIS :: flood : water

famine : food fire : ashes disease : germ 1

76 DOCUMENTS : ARCHIVE :: artifacts : museum

actors : stage tools : worker

instruments : musicians

1

78 TENACITY : WEAK :: apathy : caring

pity : strong immorality : wrong

frequency : known

1

79 BANDAGE : WOUND :: stamp : envelope

gloves : hands diaper : baby

cast : fracture 4

80 RESOLVED : DOUBT :: confirmed : suspicion

announced : candidacy

included : guest

suggested : idea 1

81 PROHIBITED : REFRAIN :: innocuous deleterious : required : compulsory : 4

Page 11: CDAC SAMPLE C-CAT PAPERS

: forbid embark decide comply

82 ASSUAGE : humiliate intensify convert solidify 2

83 COURT : reject uncover infect subject 1

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

average expenditure per tourist has increased

Average stay per tourist has increased

the number of total hotel rooms has increased.

4

85Each of the following could be the number of white puppies in the shelter EXCEPT

4 5 6 8 2

86sushil is the son of the teacher. mohan is the teacher and he has a son and daughter therefore mohan is the father of sushil

definitely true

probably true cannot say probably false 2

87

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.

An owner of a large business may be an entrepreneur.

Someone who develops an enterprise may be considered an entrepreneur.

Entrepreneurs do not own and operate small businesses.

Entrepreneurs are the main actors in economic growth.

2

89

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:

Advertising effectiveness increased.

Canned food prices decreased relative to substitutes.

Canned food products are available in more stores.

Can opener production doubled.

1

90

Once a company has established an extensive sales network in a foreign market and therefore has achieved substantial sales, it seems that thesemarket should be treated in a very similar fashion to those in one`s own courtry. It is therefore those countries where only initial sale and representation have been developed where marketing methods will have to differ from domestic activities

Sales network can be the same in both foreign and domestic market

Extensive sales networks are preferable to less developed ones.

some countries develop economically faster than others

larger markets abroad are more adaptable to domestic marketing methods

4

91

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 walked 15 metres he then further turned to his right and walked 12 metres how far is jayant from the point x and in which direction?

32 metres south

47 metres east 42 metres north

27 metres south 1

92 Every town with a pool hall has its share of unsavory characters. This is because the pool hall attracts gamblers and all gamblers are

All gamblers are

All pool halls attract gamblers.

Every town has unsavory

All gamblers are attracted by pool halls.

3

Page 12: CDAC SAMPLE C-CAT PAPERS

unsavory. Which of the following, if true cannot be inferred from the above?

unsavory. characters.

93

In winning its bitter,protracted battle to acquire Blue industries, Inc., Bell industries has fulfilled its goal to lessen its reliance on tobacco holdings, while the $5.2 billion deal may spur more takeover activity in the insurance, analysts said.

Blue Industries is in the tobacco industry.

Belle Industries is in the insurance business

Blue Industries is in the insurance business.

More divestment takes place in the tobacco

3

94

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?

All gamblers are unsavory

All pool halls attracts gamblers

Every town has unsavory characters

All gamblers are attracted by pool halls

3

95

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?

x - 21 = 4x x2- 21 = 4x x2 = 21-4x x + 4x2=21 2

96How many terms of the series -9 , -6 , -3 ,.........must be taken such that the sum may be 66?

11 13 9 10 1

97If the measures of the three angles of a triangle are (3x + 15), (5x - 15), and (2x + 30), what is the measure of each angle?

75 60 45 25 2

98

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?

17 18 19 20 3

99Which is a better investment? 14% stock at Rs.120 or 10% stock at Rs.90 ?

First investment is better

Second investment is better

Both are equally good

None of the above.

1

100I sell 20 boxes for Rs. 132 gaining thereby the cost price of 4 boxes. What is the cost price of each?

5.0 4.8 5.5 6.6 3

101If the ratio of women to men in a meeting is 4 to 1, what percent of the persons in the meeting are men?

20% 25% 33 1/3% 80% 1

102 .03 times .05 is 15% 1.5% 0.15% 0.015% 3

103 What is the length of side BC ? 3 5 (34)1/2 7 3

104

If the lengths of the two sides of right triangle adjacent to the right angle are 8 and 15 respectively, then the length of the side opposite the right angle is

15.8 16 17 17.9 3

Page 13: CDAC SAMPLE C-CAT PAPERS

Monday, June 21, 2010

Sample Question Paper 02

Sr.

No. Question Option1 Option2 Option3 Option4 Answer

01________performs and supervises the execution of instructions and directs other devices of computer to act as per their designated functions.

ALU Control Unit RAM Main Memory 2

02 ______Gate is the Universal gate NAND OR AND NOR 2

03 Magnetic disk is a ________ storage device Direct access

Indirect access

Random access

None of these options

1

04Modern magnetic tapes use 8 bit ________code format for data recording

EBCDIC BCD ASCII All of these options

1

05 SCSI Interface helps in

Extends the computer`s Bus outside the computer

Analog to Digital and Digital to Analog Conversions

Projects information from a computer on a large screen

It is an Interface unit between I/O device and Ports

1

06___________ is the Software made available on Hardware stored in ROM.

Firmware Fireware Casetool Abstraction 1

07 Different types of user interfaces include System calls

Command language

Job control language

All of these options

4

08

A process is selected for running from the READY queue in FIFO sequence. If the process runs beyond a certain fixed length of time, it is interrupted and returned to the end of the READY queue. This is known as

SJF Round Robin

Relocation FCFS 2

09The interface that enables similar networks to communicate is called

Bus network

Router Cable modem

Bridge 4

10_______ computers perform the complex processing by directly measuring the discrete physical quantities.

Analog Digital Hybrid Personal 2

11 _______is not a Modulation Technique Amplitude

Phase Frequency Light 4

12The fifth generation computers worked on the principle of_________

RISC processor

CISC processor

Parellel processor

None of these options is correct

3

13Physical devices of a computer is a____________

Hardware Software User software

None of these options

1

14 In the third generation of computers which of the following type of machines was introduced?

Mini computer

Micro computers

Main frame Computers

Super computer

1

Page 14: CDAC SAMPLE C-CAT PAPERS

s

15Digitization is composed of __________ and __________.

Scanning and Encoding

Sampling and Quantisation

Selection and Sorting

None of these options

2

16_____ contains the addresses of all the records according to the contents of the field designed as the record key.

Index Subscript Array File 1

17The programming language that was designed for specifying algorithm

Address ASCII ALGOL None of these options

3

18 Connector is used as a substitute for Processing

Decision Flow Lines Input Output 3

19 Advantages of using flow charts is Effective Analysis

Efficient Coding

Time consuming

Effective Analysis and Efficient Coding

4

20The following statement is valid in context with sub-programming:

It is a program written so that it can be used without rewriting.

Also Known as Functions

May be Intrinsic or Programmer Written

All of these options

4

21Language wherein Encapsulation and Abstraction of data is done is called as:

Assembly Language

Object oriented programming Language

Pascal language

Cobol 2

22During system evolution __________ is to be considered

Time analysis

Ease of maintenance

Failure rate All of these options

4

23_________ is a point at which the debugger stops during program execution and awaits a further command.

Memory Dump

Watch point Break point None of these options

3

24 Commonly used file organization are: Sequential

Direct and Random

Indexed Sequential

All of these options

4

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

Direct Indexed Sequential

Sequential Batch 1

26 C language came into existence in the year 1971 1958 1972 1983 3

27 The correct statement to read a double is

double d;

scanf("%f", &d);

double d;

scanf("%lf", &d);

Any of these options

None of these options

2

28Which is the correct statement to check whether a number is in the range of 100 to 1000

value != 99 && value !=1000

value <= 100 || value <=1000

value >= 100 && value <=1000

value >= 100 || value <=1000

3

29 What is the output of the following code Compile time error

10 10 Runtime error

None of the above

2

Page 15: CDAC SAMPLE C-CAT PAPERS

#include<stdio.h>

main()

{

int x=10, j=20;

y=x, y?(x,y)?x: y: y;

printf("%d %d", x,y);

}

30 The value of the expression 3 ^ 2 & ~ 1 is : 3 2 1 0 3

31

What is the output of the following code?

#include<stdio.h>

void main()

{

int a=14;

a += 7;

a -= 5;

a *= 7;

printf("\n%d",a);

}

112 98 89 None of these options

1

32

What is the output of the following code

#include<stdio.h>

main()

{

   int a = 5;

   printf("%d %d %d %d %d",a++, a--,++a,--a,a);

}

5 5 6 6 5 5 6 6 5 5 4 5 6 5 4 4 5 5 4 5 4

33 The statement which reproduces the following output, is

a = 1; a = 1; a = 1; a = 1; 2

Page 16: CDAC SAMPLE C-CAT PAPERS

1

22

333

4444

55555

while(a <= 5){

while(b <= a){printf("%d ", a);b = b + 1;}

;a = a + 1;}

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

while(b <= a){

printf("%d", a);b = b + 1;}

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

while(a <= 5){

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

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

while(a <= 5){printf(" ");b = 1;

while(a <= b){printf("%d", a);b = b + 1;}

a = a + 1;}

34

#include<stdio.h>

void main()

{

   while (1)

   {

      if (printf("%d",printf("%d")))

         break;

      else

         continue;

   }

}

The output is

Compile time error

Goes into an infinite loop

Garbage values

None of these options

3

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

Passing a copy of a variable into a function

Passing a pointer to a variable into a function

Choosing a random value for a variable

A function that does not return any values

1

36 What is the output of the following code?

#include <stdio.h>

main()

{

Hello World

Garbage value

Compile time error

None of the above

3

Page 17: CDAC SAMPLE C-CAT PAPERS

char string[] = "Hello World";

display(string);

}

void display(char *string)

{

printf("%s", string);

}

37

What is the output of the following code?

#include<stdio.h>

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));

}

Error Garbage value

The value of process is 0

Null Value 3

38 What is the output of the following code? 16 7 11 Error 1

Page 18: CDAC SAMPLE C-CAT PAPERS

#include<stdio.h>

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);

}

39The statement

int n[4] = { 11, -13, 17, 105}

assigns the value 17 to n[3]

is wrong; it gives an error message

assigns the value 17 to n[2]

assigns the value -13 to n[2]

3

40

What is the output of the following code?

#include<stdio.h>

void main()

{

int i;

int a[5] = {1,2,3};

for(i=0;i<5;i++)

printf("\n%d",a[i]);

}

No output 1 2 3 garbage garbage

1 2 3 0 0 There is a run time error

3

41

What is the output of the following code?

#include<stdio.h>

void main()

{

int arr[] = {10,20,30,40,50};

int *ptr = arr;

printf("\n %d\t %d\t",*++ptr, *ptr++);

}

30 20 30 10 20 30 30 30 2

Page 19: CDAC SAMPLE C-CAT PAPERS

42

What is the output of the following code ?

void main()

{

int i = 100, j = 200;

const int *p=&i;

p = &j;

printf("%d",*p);

}

100 200 300 None of the above

2

43

void main()

{

float x[2][3]={{1.1,1.2,1.3}, {2.1,2.2,2.3}};

printf("%1.1f", *(*(x+1)));

}

What does the printf statement is the above code print

1.1 2.3 2.1 2.2 3

44 #include<stdio.h>

void main()

{

int I,fun1(),fun2(),fun3();

int (*f[3])();

f[0]=fun1;

f[1]=fun2;

f[2]=fun3;

for(I=0;I<3;I++)

(*f[I])();

}

what happened Tulka

what happened

what happened happened Tulika

Error:Invalid pointer assignment

3

Page 20: CDAC SAMPLE C-CAT PAPERS

fun1(){ printf("what");fun2();}

fun2(){printf("happened");}

fun3(){printf("Tulika");}

What is the output of this program?

45Interpret the following statement :

void(*b)(int *);

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

invalid statement

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

46

struct

{

int acct_no;

float balance;

} customer, *pc = & customer;

The member acct_no can be accessed by

a. pc->balance

b. *pc->balance

c. *pc.balance

d. (*pc).balance

a and b a and c b and d a and d 4

47 What is the output of the following code?

#include<stdio.h>

void main()

{

union result

{

90 A garbage A Error garbage garbage

2

Page 21: CDAC SAMPLE C-CAT PAPERS

int marks;

char grade;

} res;

res.marks = 90;

res.grade = `A`;

printf("\n%d\t%c",res.marks,res.grade);

}

48 The memory allocated to the union is equal to

Memory needed for storing the largest variable

Memory needed for storing the smallest variable

Compiler dependent

None of these options

1

49Transform this expression to infix form?

AB+C*DE--FG+$

$+*ABC--FGDE$

$+GF--ED*C+BA

((A+B)*C- (D-E))$(F+G)

None of the above

3

50A _______ is a linear list in which additions and deletions take place at the same end.

Stack Queue Linked list None of the above

1

51

A list of data items usually words or bytes with the accessing restriction that elements can be added or removed at one end of the list, is known as

Stack Memory Linked list Heap 1

52 Queue has ------indices 0ne two three none 2

53Before deleting an element from list we make sure that

it is an list

it is not a invalid list

it is not an empty list

it must be full. 3

54

Which of the following is a tabular listing of contents of certain registers and memory location at different times during the execution of a program?

Loop program

Program trace

Subroutine program

Byte sorting program

2

55What is time required to insert an element in a stack with linked implementation?

O(1) O(log2n) O(n) O(n log2n) 1

56 What is the output of the following code?

#include<stdio.h>

void main()

{

5 1, 4 2, 3 3, 2 3, 1 4,

4 0, 3 0, 2 0, 1 0, 0 0,

4 1, 3 2, 2 3, 1 4, 0 5,

None of these options

3

Page 22: CDAC SAMPLE C-CAT PAPERS

   int i=5,j=0;

   while ( i-- && ++j)

   {

      printf ("\n%d\t%d\n",i,j);

   }

}

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

Perhaps string doesn`t have enough memory.

"!" is not allowed as a character.

"!" instead of "!" should be used.

None of the above.

4

58

struct num

{

int no;

char name[25];

};

void main()

{

struct num n1[]={{25,"rose"},{20,"gulmohar"},{8,"geranium"},{11,"dahalia"}};

printf("%d%d"n1[2].no,(*&n1+2)->no+1);

}

What is the output of this program?

8 8 8 9 9 8 8 , unpredictable

2

59 What is the output of the following code?

#include<stdio.h>

void main()

{

Error 6 5 4 3 2 0 garbage garbage garbage garbage

4 3 2 1 0 4

Page 23: CDAC SAMPLE C-CAT PAPERS

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]);

}

60

struct time

{

int hours;

int minutes;

int second;

} t;

struct time *tt;

tt = &t;

Looking at the above declarations, which of the following refers to seconds correctly:

tt.seconds (*tt).seconds time.t tt->seconds 4

61 Default constructor: Requires no parameter

Requires at least one parameter

Can be overridden

None of these options

1

62 Constructors___________ have return value

doesn`t have return value

always return object of the owner class

depends on requirement

2

63 An object has _____. State Behaviour Identity. All of these options.

4

64 A derived class

Inherits data members and member functions from base class.

Inherits constructors and destructor.

Object can access protected members with the dot operator.

Inherits data members and member functions from base class as well as Inherits constructors and destructor.

1

65Which is a logical abstract base class for a class called "CricketPlayer"?

Bank. Athlete. Sport. Team. 3

66 Complex object composing of other object is Aggregati Assosiation. Compositio None of these 1

Page 24: CDAC SAMPLE C-CAT PAPERS

called_____? on. n. options

67 Inheritance in UML can be represented by:

A line with an arrow-head pointing in direction of parent or superclass.

Only with a line between base class & derived classes.

Diamond shape between classes.

Cannot be represented in UML.

1

68Which of the following do you think is used to seperate the base classes in a base class list?

Comma (,)

Colon (:) Semi-colon (;)

Tilde (~) 1

69 Inheritance is a way to

Pass arguments and improve data hiding.

Pass arguments and add features to existing classes without rewriting them.

Make general classes into more specific classes and add features to existing classes.

Improve data hiding and encapsulation

3

70According to OOP, What is the kind of relationship we should not have for two classes.

Aggregation.

Composition.

Inheritance. Friend. 1

71 Odoriferous : Smell :: rancid : taste

myopic : vision

euphonious : sound

decrepit : age 3

72 RAIN : DELUGE :: pond : ocean

desert : camel

ore : iron street : road 1

73 CONE : PINE :: fruit : berry

bulb : flower

acorn : oak needle : fir 3

74 Horse : colt :: bird : eaglet

child : adult seed : fruit sheep : lamb 4

75 BLUEPRINT : CONSTRUCTION :: itinerary : trip

signal : light tenant : premises

volume : library

1

76 MANDATORY : OPTIONAL :: pious : indignant

competent : inept

opaque : ornate

chaste : celibate

2

77 Imitation : Individuality :: determination : success

recklessness : courage

vanity : conformity

debauchery : morality

4

78 INTRANSIGENT : conclusive

workable recognizable amenable 4

79 TEMERITY : foolhardiness

negligence timidity care 3

80 SALIENT : insignificant

climactic worrisome awesome 1

Page 25: CDAC SAMPLE C-CAT PAPERS

81

The movement to ownership by unions is the latest step in the progression from management ownership. Employee ownership to employee ownership can save depressed and losing companies. All the following statements, if true provide support for the claim above EXCEPT

Employee-owned companies generally have higher productive

Employee participation in mangaement raises morale

Employee union owner drives up salaries and wages

Employee union ownership enable worker to share in the profits.

3

82

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 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:

As rock performers mature, their performances tend to become less exciting

Rock music is dominated by male performers

Women performers have always played a significant role in rock music

The physical demands of performing rock are better met by the young

3

83

A politician wrote the following: "I realize there are shortcomings to the questionaire method. However, since I send a copy of the quetionnaire to every home in the district, I believe the results are quite representative.... I think the numbers received are so large that it is quite accurate even though the survey is not done scientifically"

Most people who received the questionnaire have replied

Most people in the district live in homes.

the questionnaire method of data collection is unscientific

A large, absolute number of replies is synonymous with accuracy

4

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.

An owner of a large business may be an entrepreneur.

Someone who develops an enterprise may be considered an entrepreneur.

Entrepreneurs do not own and operate small businesses.

Entrepreneurs are the main actors in economic growth.

2

85

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:

Advertising effectiveness increased.

Canned food prices decreased relative to substitutes.

Canned food products are available in more stores.

Can opener production doubled.

1

86 A worldwide ban on the production of certain ozone-destroying chemicals would provide only an illusion of protection. Quantities of such chemicals, already produced, exist as coolants in millions of refrigerators. When they reach the ozone layer in the atmosphere, their action cannot be halted. So there is no way to prevent

It is impossible to measure with accuracy the

In modern societies, refrigeration of food is necessary to prevent unhealthy

Even if people should give up the use of refrigerators, the

The coolants in refrigerators can be fully recovered at the end of the useful life of the

4

Page 26: CDAC SAMPLE C-CAT PAPERS

these chemicals from damaging the ozone layer further. Which of the following, if true, most seriously weakens the argument above?

quantity of ozone-destroying chemicals that exist as coolants in refrigerators.

and potentially life-threatening conditions.

coolants already in existing refrigerators are a threat to atmospheric ozone.

refrigerators and reused.

87

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?

All gamblers are unsavory.

All pool halls attract gamblers.

Every town has unsavory characters.

All gamblers are attracted by pool halls.

3

88

Looking at a potrait, A said "her mother`s only son is my cousin`s father". My cousin is the daughter of my maternal uncle who has an only sister. whose potrait was "A" looking at?

A`s Uncle A`s sister A`s grandmohter

A`s mother 4

89Which of the following is an acceptable schedule starting from Monday to Friday?

L, M, N, O, P

M, N, O, N, M

O, N, L, P, M

P, O, L, M, L 1

90If F sits directly opposite L and between K and M, which guest must sit directly opposite M?

G H J K 3

91

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?

x - 21 = 4x

x2- 21 = 4x x2 = 21-4x x + 4x2=21 2

92 If x + 1/x = 5, then value of x3 + 1/x3 is 125 110 45 75 2

93

The price of 4 rolls, 6 muffins, and 3 loaves of bread at a certain bakery is $9.10. The price of 2 rolls, 3 muffins, and a loaf of bread at the same bakery is $3.90. What is the price of a loaf of bread at this bakery?

$1.10 $1.20 $1.25 $1.30 4

94The volume of a cube is numerically equal to the sum of its edges. What is its total area in square units?

66 183 36 72 4

95

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 needs 5 quarts of oil. What is the minimum amount of money she must spend to purchase enough oil ?

Rs.84 Rs.94 Rs.96 Rs.102 2

96If a certain chemical costs Rs.50 for 30 gallons, then how many gallons of the chemical can be purchased for Rs.625?

12.5 24 325 375 4

97 The population of a town increases 4% annually 10 9.8 10.8 10.5 3

Page 27: CDAC SAMPLE C-CAT PAPERS

but is decreased by emigration annually to the extent of 1/2%. What will be the increase percent in three years?

98

An employer reduces the number of employees in the ratio 9:8 and increases the wages in the ratio 14:15. The difference in the amount of the bill, if the earlier bill was Rs.1890, is

Rs.92.00 Rs.95.50 Rs.90.00 Rs.94.50 3

99

The towns of Andover and Diggstown are 840 miles apart. On a certain map, this 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

91/2 10 10.5 11 3

100 If x = K + 1 / 2 and K = 3 / 2, then x = ? 1/2 1 2 5/2 3

Page 28: CDAC SAMPLE C-CAT PAPERS

Monday, June 21, 2010

Sample Qestion Paper 03

Sr.

No.

Question Option1 Option2 Option3 Option4Answ

er

01The input interfaces transforms the data into _________code

hexa binary octal decimal 2

02The following is not a type of computers

Analog Digital Hybrid Logical 4

03______ holds data as the CPU works with it.

Processor Memory Processor and Memory

None of these options

2

04The connectivity channel between CPU and Memory is________

BUS Cache Memory

Control Unit

None of these options

1

05Which of these is an electronic card.

Magnetic Strip Card

Smart Card ATM Card Punch Card 2

06

The branch that deals with systematic application of the principles of computer science is________

computer engineering

software engineering

IT engineering

None of these options

2

07___________ is a multi tasking system.

MS-DOS Unix Linux None of these options

3

08

________ is used by operating system to map file names to their corresponding file attributes and file data, and also to provide greater flexibility to users in file naming

Directories Diary Paging File 1

09______ is the smallest unit of data

Frame Header Byte Bit 4

10 The job of the _____ layer in OSI model is to provide node-to-node communication and to hide all the details of the

Data-Link Physical Transport Presentation 3

Page 29: CDAC SAMPLE C-CAT PAPERS

communication subnet from the session layer.

11Which of these keys belong to QWERTY keyboard

Numeric Keypad

null Alphanumeric Keys

All of these options

4

12

______is collection of the facts or informational raw material and become information after processing.

Data Database Computer Main Memory

1

13 SCSI Interface helps in

Extends the computer`s Bus outside the computer

Analog to Digital and Digital to Analog Conversions

Projects information from a computer on a large screen

It is an Interface unit between I/O device and Ports

1

14Which of these is not a output device.

Monitor Plotter Keyboard COM 3

15_______ is not a network type

DAN WAN LAN MAN 1

16

_____ contains the addresses of all the records according to the contents of the field designed as the record key.

Index Subscript Array File 1

17

A sequence of precise and un ambiguous instructions for solving a problem in a finite number of operation is___________

ALGOL Algorithm Procedure None of these options

2

18

___________ symbol is used to show data transmission from one location to other.

Annotation Offline Storage

Merge Communication Link

4

19__________ is the analysis tool used for planning program logic

Protocol None of these options

PROLOG Pseudocode 4

20

A language which allows instructions to be represented by letters (i.e abbrevation) is_______

Machine language

Assembly Language

Scientific Language

Programming language

2

21

Language wherein Encapsulation and Abstraction of data is done is called as:

Assembly Language

Object oriented programming Language

Pascal language

Cobol 2

23During system evolution __________ is to be considered

Time analysis Ease of maintenance

Failure rate All of these options

4

Page 30: CDAC SAMPLE C-CAT PAPERS

24The errors that occur in computer program is________

Syntax error Logical error Syntax error and Logical error

None of these options

3

25Standard methods of organizing data are:

File-oriented approach

Database-oriented approach

File-oriented approach and Database-oriented approach

Object Oriented approach

3

26

A file management system typically supports the following types of files, EXCEPT:

Transaction file

Storage file Master file Backup file 2

27

Which of the following are keywords of the "C" language?

i.if

ii.else

iii.then

iv.elseif

All are keywords

only i,ii and iii are keywords

only i,ii and iv are keywords

only i and ii are keywords

2

28All of the following are C basic data types except:

int float char Union 4

29 void main()

{

   int A=0, B=0, C=0, D=0;

   if((A==B)&&(A*B<=B))

   {

      if(D==1) C=1;

      else

      if(A==1) C=2;

   }

   else

      C=3;

1 0 0 0 0 1 1 1 3

Page 31: CDAC SAMPLE C-CAT PAPERS

   if((B==0)&&(A==B)&&(A!=1))

      D=1;

}

What are the final values of C and D?

30

Which statement sets the 3rd lowermost bit of an unsigned integer x to 0, leaving other bits unchanged?

^3; x|(~3); x&(~3); x&3; 4

31

What is the output of the following code?

void main()

{

   int a=0, b=2, x=4, y=0;

   printf("\n%d\t,",(a==b));

   printf("\n%d\t,",(a!=y));

   printf("\n%d\t,",(b<=x));

   printf("\n%d\t,",(y > a));

}

0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 4

32 What is the output of the following code?

#include<stdio.h>

void main()

{

   char str1[]="India", str2[]="India";

   if(str1==str2)

      printf("\nBoth the string are same");

Both the string are same

Both the string are not same

Compile Time error

Runtime Error

2

Page 32: CDAC SAMPLE C-CAT PAPERS

   else

      printf("\nBoth the string are not same");

}

33

What is the output of the following code?

#include<stdio.h>

void main()

{

   int a = 0;

   printf("\n %d\t", (a = 10/a));

}

0 1 Compile Time error

Runtime Error

4

34

What is the output of the following code?

#include<stdio.h>

void main()

{

   int s=0;

   while(s++<10)

   {

      if(s<4 && s<9)

         continue;

      printf("\n%d\t",s);

   }

}

1 2 3 4 5 6 7 8 9

1 2 3 10 4 5 6 7 8 9 10

4 5 6 7 8 9 3

35The break statement is used to exit from:

an if statement a for loop a program the main() function

2

36 I have a function f(&5); int five = 5; int five = 5; f(5); 1

Page 33: CDAC SAMPLE C-CAT PAPERS

extern int f(int *);

which accepts a pointer to an int. How can I pass a constant by reference?

f(&five); f(five);

37

What is the output of the following code?

#include <stdio.h>

main()

{

   void swap();

   int x=10, y=8;

   swap(&x, &y);

   printf("x=%d y=%d",x,y);

}

void swap(int *a, int *b)

{

   *a ^= *b, *b ^= *a, *a ^= *b;

}

x=8 y=10 x=10 y=8 Null value Error 1

38 Recursive Functions

Are necessary to solve a certain class of problems

Take less main storage space

Are executable faster than iterative ones

None 1

39 What is the output of the following code?

#include<stdio.h>

void main()

{

int arr[2][3][2]={{{2,4},

16 7 11 Error 1

Page 34: CDAC SAMPLE C-CAT PAPERS

{7,8},{3,4},}, {{2,2},{2,3},{3,4}, }};

printf("\n%d",**(*arr+1)+2+7);

}

40

What is the difference between the 5`s in these two expressions?

int num[5];

num[5];

first is particular element, second is type

first is array size, second is particular element

first is particular element, second is array size

both specify array size

2

41How can I dynamically allocate a two-dimensional array?

int **array1 = (int **)malloc(nrows * sizeof(int *));

for(i = 0; i < nrows; i++)

array1[i] = (int *)malloc(ncolumns * sizeof(int));

int **array2 = (int **)malloc(nrows * sizeof(int *));

array2[0] = (int *)malloc(nrows * ncolumns * sizeof(int));

for(i = 1; i < nrows; i++)

array2[i] = array2[0] + i * ncolumns;

int *array3 = (int *)malloc(nrows * ncolumns * sizeof(int));

Any of the above.

1

42

#include<stdio.h>

void main()

{

int I=10,*p=&I,**q=&p;

printf("%u",***(&(*(&Q))));

}

What is the output of this program?

value of p is printed

address of p is printed

value of I is printed

address of I is printed

3

Page 35: CDAC SAMPLE C-CAT PAPERS

43

What is the output of the following code?

#include<stdio.h>

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]);

}

Error 6 5 4 3 2

0 garbage garbage garbage garbage

4 3 2 1 0 4

44This pointer for any class internally declared as

int *this; X *thid; const X *this;

X *const this;

4

45 #include<stdio.h>

void prg(int);

main()

{

int a=10,j=3,i=2;

prg(a);

a*=( i + j );

printf("%d",a);

}

void prg(x)

{

int x;

int k=2;

x*=k;

10 20 50 None of these

3

Page 36: CDAC SAMPLE C-CAT PAPERS

return (x);

}

What is the output of this program?

46

Consider the program segment given below. (The italicized numbers represent program line numbers) :

1. #include<stdio.h>

2. int y;

3. void main()

4. {

5. int x,*px,**ppx;void f1(int *);

6. x = 10;

7. y = 1000;

8. px = &x;

9. ppx = &px;

10. f1(px);

11. printf("%d",*px);

12. }

13. void f1(int *p)

14. {

15. *p = 20;

16. printf("%d",*p);

17. }

The printf() at line 11 prints the value:

10 1000 20 None of these options

3

Page 37: CDAC SAMPLE C-CAT PAPERS

47

Consider the declaration :

struct sample

{

unsigned int a;

unsigned int b;

};

struct sample v;

The size of v.b is

1 bit 6 bits 5 bits None of the above

4

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

typedef struct { char *item; NODEPTR next; } *NODEPTR;

struct node { char *item; struct node *next; }; typedef struct node *NODEPTR;

Both are correct.

None of above.

2

49The main purpose of declaring a union.

To allow the same storage location to store data of different data types at different times.

To use it instead of structure

To allow the same storage location to store data of different data types at the same time.

None of the above

1

50The operation for adding an entry to a stack is traditionally called:

Add Append Insert Push 4

51 Pushdown list means: Stack Queue Linked list All of the above

1

52 Stack is not used in Recursion Quick Sort Postfix Notation

Simulation 4

53When is linear queue said to be empty ?

Front==rear Front=rear-1 Front=rear+1

Front=rear+1

1

55 Queue has ------indices 0ne two three none 2

56 In case of a linked list

Every link node has a pointer to the next link code

Links have arrays of pointer to next link

Arrays are used to hold the list

All of the above

1

57 How can I print a `%` character in a printf format

Try \% Try %% Try $% None of these

2

Page 38: CDAC SAMPLE C-CAT PAPERS

string? I tried \%, but it didn`t work.

options

58

#include<stdio.h>

void prg(int);

main()

{

int a=10,j=3,i=2;

prg(a);

a*=( i + j );

printf("%d",a);

}

void prg(int x)

{

int k=2;

x*=k;

return (x);

}

What is the output of this program?

10 20 50 None of these options

3

59

What will happen if you try to put so many values into an array when you initialize it that the size of the array is exceeded?

Nothing Possible system malfunction

Error message from the compiler

Other data may be overwritten

3

60 What is the output of the following code?

#include<stdio.h>

void main()

{

int x=25, y=50, z=75, *ptr;

Error 50 150 600 50 150 300 50 75 100 3

Page 39: CDAC SAMPLE C-CAT PAPERS

ptr = &x; *ptr *=2;

ptr = &y; *ptr *=3;

ptr = &z; *ptr *=4;

printf("\n %d\t %d\t %d\t", x, y ,z);

}

61

What is the output of the following code :

#include<stdio.h>

void main()

{

   extern int out;

   printf("%d",out);

}

int out=100;

Run time error Compile time error

100 Garbage value

3

62

What is the output of the following code?

#include<stdio.h>

void main()

{

   int a = 20,b=100;

   int &n = a;

   n=a++;

   n = &b;

   printf("\n%d, %d",a, n);

}

21, 21 20, 21 21, 22 Error 4

63 Encapsulation is Information hiding

Data Binding

Information hiding and

None of these

3

Page 40: CDAC SAMPLE C-CAT PAPERS

Data Binding

options

64If constructor is not provided then

Compiler will not compile the class

Object creation is not possible

All Objects data will be stored in same memory area so overwriting of data will happen

Default constructor will be provided

4

65The use of constructor is ______.

to initialize the objects of it`s class.

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

To initialize the objects of it`s class as well as to allocate memory for the objects of it`s class

None of these options.

1

66

__________ is the capability to share and extent the functionality of an existing class.

Polymorphism.

Inheritance. Abstraction.

Both Polymorphism and Inheritance

2

67Inheritance through interface is called ________.

Implementation inheritance.

Definition inheritance.

Delegation inheritance.

Interface inheritance model.

2

68Complex object composing of other object is called_____

Aggregation Assosiation Composition

None of these options

1

69The (+) sign and (-) sign to the left of the attributes & methods signify:

Whether the methods & attributes are public or private.

Whether the methods & attributes are global or local.

Whether the methods & attributes are overloaded or overridden.

Used only with attributes not with methods..

1

70Which are the main three features of OOP language?

Data Encapsulation, Inheritance & Exception handling

Inheritance, Polymorphism & Exception handling

Data Encapsulation, Inheritance & Polymorphism

Overloading, Inheritance & Polymorphism

3

71Which of the following programming technique focuses on the algorithm.

Procedural language

Object oriented language

Object based language

Structural language

1

72 A derived class Inherits data members and

Inherits constructors

Object can access

Inherits data members

1

Page 41: CDAC SAMPLE C-CAT PAPERS

member functions from base class.

and destructor.

protected members with the dot operator.

and member functions from base class as well as Inherits constructors and destructor.

73IGNOMINY : DISLOYALTY ::

fame : heroism death : victory

derelict : fool

martyr : man

1

74 RAIN : DELUGE :: pond : ocean desert : camel

ore : iron street : road 1

75 CONE : PINE :: fruit : berry bulb : flower acorn : oak needle : fir 3

76 Horse : colt :: bird : eaglet child : adult seed : fruit sheep : lamb

4

77 Bland : Piquant :: inane : relevant

charlatan : genuine

slavish : servile

terse : serious

2

78 OPEN : SECRETIVE :: mystery : detective

tunnel : toil forthright : snide

better : best 3

79 INTRANSIGENT : conclusive workable recognizable

amenable 4

80 INCREDULOUS : argumentative imaginative indifferent irreligious 4

81 SCRUPULOUS : Wasteful Flippant Sloppy Shady 3

82 JEOPARDY : danger safety perjury conundrum 2

83

During 1985, advertising expensing expenditure on canned food products increased by 20 percent, while canned food consumption rose by 25 percent. Each of the following, if true, could help explain the increase in food consumption except

Advertising effectiveness increased

Canned food price decreased relative to substitutes

Canned food products were avaible in more stores

Canned opener production doubled

4

84

Each of the following could be the number of white puppies in the shelter EXCEPT

4 5 6 8 2

85

The gateway of india is in mumbai mumbai is in maharashtra therefore the gateway of india is in maharashtra

false cannot say true probably false

3

86 sushil is the son of the teacher. mohan is the teacher and he has a son and daughter therefore

definitely true probably true

cannot say probably false

2

Page 42: CDAC SAMPLE C-CAT PAPERS

mohan is the father of sushil

87

Prof. Tembel told his class that the method of student evaluation of teachers is not valid measure of teaching quality. Students should fill out questionnaires at the end of the semester when courses have been completed. Which of the following, if true, provides support for Prof. Tembel`s proposal ?

Prof. Tembel received low rating from his students.

Students filled up the questionnaire after the midterm exam.

Students are interested in teachers evaluation.

Teachers are not obligated to use the survey results.

2

88

The Pistons have more points than the Nuggets. The Bullets have less points than the Lakers. The Nuggets and the Suns have the same number of points. The Suns have more points than the Bullets. If the above is true, which of the following must also be true?

The Nuggets have fewer points than the Bullets.

The Pistons have more points than the Bullets.

The Nuggets have fewer points than the Lakers.

The Lakers have more points than the Pistons.

1

89A person hearing this advertisement countered,

being overweight is always caused by unhappiness and unattractiveness

being overweight is the only cause of unhappiness and unattractiveness

unhappiness and unattractiveness can cause someone to be overweight

unhappiness necessarily leads to being overweight

2

90

If the 2nd and 4th saturdays and all sundays are declared holidays ,what would be the minimum no of working days of any month of any year

24 25 23 22 4

91

If G sits at the head of the table, and F in the middle seat on one side of the table and immediately on K`s left, the guest seated directly opposite F must be

G H J L 3

92 An employment questionnaire asks the prospective employee, "If

1 only 2 only 1 and 2 only 2 and 3 only 3

Page 43: CDAC SAMPLE C-CAT PAPERS

XYZ company hires you, will you continue to use drug?" The prospective employee may not wish to indicate "yes" or "no" because

1. a simple "yes" or "no" answer could indict the applicant.

2. The question contains an implication to which the applicant may not wish to lend credence.

3. The question presents a moral judgment.

93If the operation * is defined by *a = a2 - 2, then *(*5) is

23 527 529 623 2

94On the number line shown, which point corresponds to the number 2.27?

I H G F 3

95

It is between 10 and 11 that the hour and minute hands of a watch are exactly coincident. What is the time?

56 mts. past 10 54 6/11 mts. past 10

35 6/11 mts. past 10

57 6/11 past 10

2

96

A trapezium ABCD is formed by adding the rectangle ABEF whose area is 6 sqr. inches and two right triangles AFD and BEC equal in area of t sq.inches. What is the area of the trapezoid in square inches?

2t + 6 5t + 25 2.5t + 12.5 (t + 5)2 1

97

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 55 paise each to make each jar after the first 100. What price should he charge for the 300 jars of jam ?

Rs.175 Rs.225 Rs.240 Rs.250 4

98 By selling 12 marbles for a 8 6 4 3 1

Page 44: CDAC SAMPLE C-CAT PAPERS

rupee, a shopkeeper loses 20%. In order to gain 20% in the transaction he should sell the marbles at the rate of how many marbles for a rupee?

99

To a sugar solution of 3 liters containing 40% sugar one liter of water is added. The percentage of sugar in the new solution is

33 30 15 None of the above.

2

100

If the length of a rectangle is increased by 20% and the width is decreased by 20%, then the area

decreases by 20%

decreased by 4%

stays the same

increases by 10%

2

101

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 kmph for the remaining part of the trip. The average speed for the entire trip was 40 kmph. What is S?

10 20 33.34 37.5 3

102

For every six metres forward a man walks, a gale force wind pushes him back two metres. If he needs to cross a 200-metre plot, how many metres will he actually walk?

500 480 300 240 3

Page 45: CDAC SAMPLE C-CAT PAPERS

Tuesday, June 22, 2010

Sample Qestion Paper 04

Sr.No.

Question Option1 Option2 Option3 Option4 Answer

01_______ is a non-volatile memory chip in which data once stored cannot be altered by programmer

ROM PROM EPROM ROM and PROM 1

02The Calculations & decision making is done in

Control Unit ALU RAM Control Unit and ALU

2

03Modern magnetic tapes use 8 bit ________code format for data recording

EBCDIC BCD ASCII All of these options 1

04Magnetic disk is a ________ storage device

Direct access Indirect access Random access None of these options

1

05Which of the following are of type Optical Disk:

CD-ROM WORM CD-ROM and WORM

Zip disk 3

06Collection of Programs is Software Instructions Hardware Procedure 1

07FAT stands for

File Allocation Table

File Administration Table

File Available Table

File Allotment Transfer

1

08________ is used by operating system to map file names to their corresponding file attributes and file data, and also to provide greater flexibility to users in file naming

Directories Diary Paging File 1

09The OSI model has ________ layers

5 6 7 8 3

10__________ terminal is a graphics terminal that has a rich set of terminals

Intelligent terminal

X terminal Dumb terminal Smart terminal 2

11The fastest computers of today`s era is________

microcomputers

super computer Pentium 3 mini computer 2

Which of these keys belong to QWERTY keyboard

Numeric Keypad

null Alphanumeric Keys

All of these options 4

12Which of the following is true in regard to Work station.

It is a powerful desktop computer designed to meet greater processing

It is not used for computer aided design

They can be used by several personnel at a time

All of these options 1

Page 46: CDAC SAMPLE C-CAT PAPERS

power, large storage etc.

13Rules that govern transmission of data over communication network is__________

Router Topology Prototype Protocol 4

14The periodic refreshing of ____________ RAM is required

STATIC DRAM STATIC and DRAM

None of these options

2

15A value written into a program instruction that does not change during the execution of program.

Identifiers Constants Objects Operators 2

16_____ contains the addresses of all the records according to the contents of the field designed as the record key.

Index Subscript Array File 1

17The flowcharts used to describe the sequence of operations for a particular problem is called

System flowcharts

Program flowcharts

Activity flowcharts

None of these options

2

18The method of carrying out the instructions given in the flowchart with some sample data is known as

Tracking Tracing Executing Tracking and Tracing

2

19Language wherein Encapsulation and Abstraction of data is done is called as:

Assembly Language

Object oriented programming Language

Pascal language Cobol 2

20Language Primarily used for internet-based applications

ADA C++ JAVA FORTRAN 3

21

_________is not true related to Debugging.

Process which should be planned and scheduled properly

It is complete when all desired verification s against specifications are done

It is process of validating the correctness of program.

All of these options 4

23Program errors are known as ________

Virus Bugs Errors All of these options 2

24Standard methods of organizing data are:

File-oriented approach

Database-oriented approach

File-oriented approach and Database-oriented approach

Object Oriented approach

3

25The component of data base management system is ________

Data definition Language

Data manipulation Language

Data definition Language and Data manipulation Language

None of these options

3

26which of the following is `Thank You` `enter values of `23.56e-03` all of the above 4

Page 47: CDAC SAMPLE C-CAT PAPERS

NOT a character constant p n r`

27Every C program requires : char statement

arithmetic operator

main () function 4

28void main() { float x[2][3]={{1.1,1.2,1.3}, {2.1,2.2,2.3}}; printf("%1.1f", *(*(x+1)));}

1.1 2.3 2.1 2.2 3

29 the process of compiling and running a C program includes:

Source program

object code executable object code

all of the above 4

30A continue usually associated with __________.

goto Else If None 4

31(int) 21.3/ (int) 4.5 5 1 0 None

1

32C language came into existence in the year

1971 1958 1972 1983 3

33A max width of c variable name can be

6 Char 8 Char 31 char 32 char 3

34void main() { while(1) printf(" sunc"); }

The condition in while loop is illegal

Sunc will be printed once.

The while loop is an infinite loop.

A linker error is generated.

3

35main() { printf(" \n Hello"); disp(); } disp() { printf(" \n Hi"); main(); }

Hi Hello Hello Hi Infinite no of times

Hello Hi still stack overflow

4

36main() { char ch= 'A'; printf("%d%d", sizeof(ch) ,sizeof('A')); }

1 1 1 2 2 2 Error 2

37which of the following statement is wrong

mes = 123.56; con = `T` * `A` this = `T` * 20; 3 + a = b; 4

38void main() { float a=0.7; if(a< 0.7) printf("c"); else printf("c++"); }

c c++ c c++ None 1

39Unions are different than structures in that

union contents are not members

union members use the same space

union members are anonymous

All of above 2

40Which of the following statement is correct regarding arrays ? Array 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.

i, ii and iii i only i and iii none of the above 3

Page 48: CDAC SAMPLE C-CAT PAPERS

41The output of the following program will be ::- main() { int a, *ptr,b,c; a=25; ptr = &a; b= a+30; c= *ptr; printf(" %d, %d, %d ", a, b, c); }

25, 25, 25 25, 55, 25 25, 55, 55 none of these 2

42Stack is constantly changing element object memory location set of integers 3

43Consider the program segment given below. (The numbers represent program line numbers) : 1. #include2. 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 :

10 100 1000 20 3

44A linked list can have member node, which has

An elementary data item

A next pointer A list All of the above 4

45Consider 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. {

10 1000 20 None of the above 3

Page 49: CDAC SAMPLE C-CAT PAPERS

15. *p = 20; 16. printf("%d",*p);17. } The printf() at line 11 prints the value:

46 If there are no element in stack empty(s) returns as the value

TRUE 1 FALSE 0 1

47

Interpret the following statement : void(*b)(int *);

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

invalid statement

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

48Consider the following statements. i. stack is a LIFOii. stack is a FIFOiii. queue is a LIFOiv. queue is a FIFO

only i and iii are true

only ii and iii are true

only i and iv are true

only ii and iv are true

3

49 If stack contain no item then it is called as ___

Null stack Empty stack Waste stack Stack of no use 2

50In doubly link list each node contain ______

two information node

two pointer two nodes double header 2

51

An external variable is globally accessible by all functions

has a declaration "extern" associated with it when declared with in a function

will be initialized to 0 if not initialized.

All of the above. 4

52 static int x=3 , y,z; void main() { int a; a= x++ * ++y + ++z; printf("%d", a); }

3 4 5 Garbage 2

53void main() { int k=4; switch(k) { default : printf("A"); case 1: printf("B"); case 4: printf("C"); case 2+3 -1 : printf("D"); }}

C D Compilation Err None 3

54The expression ((fpt = fopen(" sample","w" ))= = NULL) would be true if ::-

The file "sample" doesn't exist while fopen is being executed

The file "sample" could not be created for writing

ftp is not declared as a FILE pointer

the file "sample" is read only.

4

55A function called total(), totals the sum of an integer array passed to it (as the first

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

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

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

None of the above 4

Page 50: CDAC SAMPLE C-CAT PAPERS

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

56What does the term call-by-value refer to?

Passing a copy of a variable into a function

Passing a pointer to a variable into a function

Choosing a random value for a variable

A function that does not return any values

1

57void main() { int k=3; while(k) { int k=1; printf("%d", k); k--; } }

1 Infinite loop 2 1 Declarations syntax err

2

58Consider the function int my(int n) { if(n!=1) return (n* my(n-1)); } Call it with my(4). What is the return value of this function?

20 24 16 2 2

59Suppose a, b and c are integer variables that have been assigned the values a=8, b=3 and c =-5. Determine the value of 2 * b + 3 * ( a - c )

45 56 54 65 1

60What is output void main() { int n=3,a=2; a*= n+1; printf("%d", a); }

7 8 6 None 2

61

Which of the following are good reasons to use an object oriented language.

You can define your own data types

An object oriented program can be taught to correct its own errors

It is easier to conceptualize an object oriented program

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

4

62Object-oriented technology`s ______ feature means that a small change in user requirements should not require large changes to be made to the system.

Abstraction Modularity Encapsulation Modelling 3

63An object has _____. State Behaviour Identity. All of these options. 4

64What is inheritance?

It is same as encapsulation.

Aggregation of information.

Generalization and specialization.

All of these options. 3

65Which of the following is not false?

In interface methods do not have any implementation

Any class that implements an interface must provide the

Both are true. Both are false. 1

Page 51: CDAC SAMPLE C-CAT PAPERS

. implementation.

66Complex object composing of other object is called_____

Aggregation Assosiation Composition None of these options

1

67A relationship that can be identified between two object entities (classes or individuals) is called a ___________.

function association link activity 2

68Which of the following programming technique focuses on the algorithm.

Procedural language

Object oriented language

Object based language

Structural language 1

69Shallow copy is defined as

Memberwise copying of objects

There is nothing like shallow copy

Is same like Deep copy

None of these options

1

70

The use of constructor is ______.

to initialize the objects of it`s class.

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

To initialize the objects of it`s class as well as to allocate memory for the objects of it`s class

None of these options.

1

71 IGNOMINY : DISLOYALTY ::

fame : heroism death : victory derelict : fool martyr : man 1

72 It may be useful to think of character in fiction as a function of two ________ impulses: the impulse to individualize and the impulse to __________.

analogous  humanize

disparate  aggrandize

divergent  typify comparable  delineate

3

73GAZELLE : SWIFT :: horse : slow swan : graceful lion : roar lamb : bleat 3

74TRAP : GAME :: novel : author net : fish leash : dog wall : house 2

75Bland : Piquant :: inane : relevant

charlatan : genuine

slavish : servile terse : serious 2

76LUBRICANT : FRICTION :: balm : pain

eraser : correction

solvent : paint reagent : chemical 1

77GRACEFUL : MOVEMENT ::

articulate : speech

fastidious : grime

humorous : laughter

servile : rebellion 1

78DISINTERESTED : biased violent complete humane 1

79ACCOLADE : rejection separation negligence descent 1

80TEMERITY : foolhardiness negligence timidity care 3

81Each of the following could be the number of white puppies in the shelter EXCEPT

4 5 6 8 2

82During 1985, advertising expensing expenditure on canned food products

Advertising effectiveness increased

Canned food price decreased relative to

Canned food products were avaible in more

Canned opener production doubled

4

Page 52: CDAC SAMPLE C-CAT PAPERS

increased by 20 percent, while canned food consumption rose by 25 percent. Each of the following, if true, could help explain the increase in food consumption except

substitutes stores

83Typically 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.

An owner of a large business may be an entrepreneur.

Someone who develops an enterprise may be considered an entrepreneur.

Entrepreneurs do not own and operate small businesses.

Entrepreneurs are the main actors in economic growth.

2

84A politician wrote the following: "I realize there are shortcomings to the questionaire method. However, since I send a copy of the quetionnaire to every home in the district, I believe the results are quite representative.... I think the numbers received are so large that it is quite accurate even though the survey is not done scientifically"

Most people who received the questionnaire have replied

Most people in the district live in homes.

the questionnaire method of data collection is unscientific

A large, absolute number of replies is synonymous with accuracy

4

85Farmers 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 are superstitious.

No one has proven that the moon causes frost.

2

86The movement of ownership by unions is the latest step in the progression from management ownership to employee ownership.

Employee-owned companies generally have higher

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

Page 53: CDAC SAMPLE C-CAT PAPERS

Employee ownership can save depressed and losing companies. All the following statements, if true, provide support for the claim above except:

productivity.

87

A person hearing this advertisement countered,

being overweight is always caused by unhappiness and unattractiveness

being overweight is the only cause of unhappiness and unattractiveness

unhappiness and unattractiveness can cause someone to be overweight

unhappiness necessarily leads to being overweight

2

88Looking at a potrait, A said "her mother`s only son is my cousin`s father". My cousin is the daughter of my maternal uncle who has an only sister. whose potrait was "A" looking at?

A`s Uncle

A`s sister A`s grandmohter A`s mother 4

89Which of the following pair of activies could be done on Monday and Tuesday?

L and O M and P L and M N and O 3

90 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 to the cup under which the magenta ball is hidden.The green ball must be hidden under cup 5.Which of the following could

Green, yellow, magenta, red, purple, orange

Magenta, green, purple, red, orange, yellow

Magenta, red, purple, yellow, green, orange

Orange, yellow, red, magenta, green, purple

3

Page 54: CDAC SAMPLE C-CAT PAPERS

be the colors of the balls under the cups, in order from 1 through 6?

91 If the angles of a triangle ABC are in the ratio of 3 : 5 : 7, then the triangle is

acute right isosceles obtuse 1

920.000006 * 0.0000007 = ? 0.0000000042 0.000000000042 0.0000000000042 0.00000000000042 3

93Rahul buys 16 cookies, Amit buys 12 cookies and Nayan buys x cookies. The average number of cookies the three bought is between 19 and 23, inclusive. What is the smallest number of cookies Nayan could have bought?

35 31 30 29 4

94A cylindrical vessel of radius 4 cm contains water. A solid sphere of radius 3 cm is lowered into the water until it is completely immersed. The water level in the vessel will rise by

9 / 2 cm 9 / 4 cm 4 / 9 cm 2 / 9 cm 2

95 If a certain sum of money becomes double at simple interest in 12 years, what would be the rate of interest per annum?

8 (1/3) 10 12 14 1

96Rakesh credits 15% of his salary in fixed deposit account and spends 30% of the remainder amount on groceries. If the cash in hand is Rs. 2380, what is his salary?

Rs. 3500 Rs. 4500 Rs. 5000 Rs. 4000 4

97 If the price of steak is currently Rs.1.00 a pound and the price triples every 6 months, how long will it be until the price of steak is Rs.81.00 of a pound?

1 year 2 years 2 1/2 years 13 years 2

98A,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.

162,108,72 108,72,162 72,108,162 162,72,108 4

99 If the operation * is defined by *a = a2 - 2, then *(*5) is

23 527 529 623 2

Page 55: CDAC SAMPLE C-CAT PAPERS

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

2 inches 6 inches 9 inches 10 1/2 inches 2

Page 56: CDAC SAMPLE C-CAT PAPERS

Tuesday, June 22, 2010

Sample Qestion Paper 05

Sr.No.

Question Option1 Option2 Option3 Option4 Answer

01 _______ computers perform the complex processing by directly measuring the discrete physical quantities.

Analog Digital Hybrid Personal 2

02 _______ is a non-volatile memory chip in which data once stored cannot be altered by programmer

ROM PROM EPROM ROM and PROM

1

03 Modern magnetic tapes use 8 bit ________code format for data recording

EBCDIC BCD ASCII All of these options

1

04 The tape of magnetic tape storage is divided into Vertical columns called_________ and horizontal rows is called________

Channels and Frames

Frames and Channels

Tracks and Frames

Channels and Tracks

2

05 Which of these is an electronic card.

Magnetic Strip Card

Smart Card ATM Card Punch Card 2

06 ________ is a set of control statements and extends processing capability of Computer system

Application software

System software Operating system Utilites 2

07 Different types of user interfaces include

System calls Command language Job control language

All of these options

4

08FAT stands for

File Allocation Table

File Administration Table

File Available Table

File Allotment Transfer

1

09 The OSI model has ________ layers

5 6 7 8 7

10 Standard multimedia compression technique is

JPEG MPEG FOR VIDEO

MPEG FOR AUDIO

All of these options

4

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

Parity Even Parity Odd Parity Error Checking 2

The shortcoming of Mark 1 It is very slow Very complex Unreliable It is very slow 4

Page 57: CDAC SAMPLE C-CAT PAPERS

computer is ___________ indesign and huge in size

and also very complex indesign and huge in size

12 Which of the following are not Hard disk

Zip disk Disk packs Floppy disk Winchester Disk 3

13 The unit of measurement of data transfer rate is ______

Maud Baud Bandwidth None of these options

2

14 ______is collection of the facts or informational raw material and become information after processing.

Data Database Computer Main Memory 1

15 Algorithms can be represented in various ways EXCEPT

PROGRAMS FLOWCHARTS DECISION CHARTS

SPREADSHEET 4

16 _____ contains the addresses of all the records according to the contents of the field designed as the record key.

Index Subscript Array File 1

17Advantages of using flow charts is

Effective Analysis

Efficient Coding Time consuming Effective Analysis and Efficient Coding

4

18 The logic used to perform instructions one after another is_______

Selection logic Sequence logic End case None of these options

2

19 Computer languages are classified as all of the following EXCEPT:

Machine Language

Code language Assembly language

High level Language

2

20 Limitation of Machine language are, EXCEPT:

Executed fast by Computer

Difficult to program

Error prone Machine dependent

1

21

________ is true for Syntax error.

It is easier to detect Syntax error compared to logical error

The program cannot be compiled and executed until all syntax errors are corrected

These program error typically involve incorrect Punctuation, undefined terms, no parenthesis etc.

All of these options

4

23 Program errors are known as ________

Virus Bugs Errors All of these options

2

24 Commonly used file organization are:

Sequential Direct and Random Indexed Sequential

All of these options

4

25 _________language that enables users to define there requirements for extracting required information.

Query Manipulation DDL DML 1

26 3.2 % 3 1 0 0.2 Err 4

27 What is o/p If c=10, d=20 Hi Hello HiHello None of these 2

Page 58: CDAC SAMPLE C-CAT PAPERS

( c> d ? printf(" Hi") : printf(" Hello"));

28 Which of the following are keywords of the C language? i)if ii)elseiii)then iv)elseif

All are keywords

only i,ii and iii are keywords

only i,ii and iv are keywords

only i and ii are keywords

2

29 which of the following is NOT a character constant

`Thank You` `enter values of p n r`

`23.56e-03` all of the above 4

30 void main() { int arr[10]; printf("%d", sizeof(arr)); getch(); }

20 10 Error None 1

31

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 have digits in between the name

Any letter with - + = sign

Letter starting with

3

32 What is output void main() { int n=3,a=2; a*= n+1; printf("%d", a); }

7 8 6 None 2

33 The keyword _______ breaks the control from while loop.

break exit both a and b None 1

34

Consider the declaration #include Here the angled brackets indicate

The compiler will search only the standard libraries for the file myfile.h

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

The compiler will search only the user`s default/working directory

None of the above.

1

35 main() { printf(" \n Hello"); disp(); } disp() { printf(" \n Hi"); main(); }

Hi Hello Hello Hi Infinite no of times

Hello Hi still stack overflow

4

36 C() { printf("C"); } B() { C(); printf("B"); } A() { printf(" A"); B(); } main() { printf("M"); A(); }

CAMB MABC MCAB MACB 4

37 which of the following shows the correct hierarchy of arithmetic operations in C

(), **, * or /, + or ?

(), **, *, /, +, - (), **, /, *, +, - (), / or *, - or + 4

38main() { printf(" C to it that C servies"); main(); }

C to it that C servies infinitely

Compilation Error Linker Error C to it that C servies still stack overflow

4

39 The statement int (* arr [5]) (int *, char *) means

array of pointer to five functions

an integer function taking 5 arrays and returning an char

array of 5 pointer to integers

None of above 1

Page 59: CDAC SAMPLE C-CAT PAPERS

40 What error would the following function give on compilation ? f(int a, int b) { int a; a=20; return a; }

Missing parentheses in return statement

The function should be defined as int f ( int a , int b)

Redeclaration of a None of the above

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 following'C' program ? main() { float a = 5.375; char *p; int i; p=(char*) &a; for(i=0;i<=3;i++) printf("%02x",(unsigned char)p[i] ) ; }

40 AC 00 00 00 CA 00 40 00 00 AC 40 00 00 CA 04 3

42

Interpret the following statement : void(*b)(int *);

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

invalid statement

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

44 Consider the program segment given below. (The numbers represent program line numbers) : 1. #include2. 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 :

10 100 1000 20 3

45 A stack in c is declared as a array structure group collection of 2

Page 60: CDAC SAMPLE C-CAT PAPERS

____ containing two objects element

46 The remove operation can only be performed, if the queue is

empty non empty overloaded underflow 2

47 Stack is constantly changing element object memory location set of integers 3

48 In a doubly linked list if a node is to be deleted between two nodes, how many links of the existing list have to be modified?

2 4 3 1 3

49 What is the output of the following code? void main(){ int i = 100, j = 200;const int *p=&i;p = &j; printf("%d",*p);}

100 200 300 None of the above

2

50 The value of automatic variable that is declared but not initialized will be

0 -1 Garbage None 3

51 In a'C' program constant is defined

before main after main anywhere none of the above

3

52What does the term 'call-by-reference' refer to?

Passing a copy of a variable into a function.

Passing a pointer to a variable into a function.

Choosing a random value for a variable.

A function that does not return any values.

2

53 Consider the following declaration ::- enum color {black=-1, blue, green }; This represents

black= -1,blue=2, green=3

black= -1 ,blue = -2, green= -3

black= -1 ,blue = 0, green= 1

an illegal declaration

3

54 The macro FILE is defined in which of the following files;

stdlib.h stdio.h io.h stdio.c 2

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

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

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

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

None of the above

4

56 What does the term call-by-value refer to?

Passing a copy of a variable into a function

Passing a pointer to a variable into a function

Choosing a random value for a variable

A function that does not return any values

1

Page 61: CDAC SAMPLE C-CAT PAPERS

57 Associativity of unary minus is

right to left left to right from center None 1

58 void main() { int I=0; for(;I= =2;) { printf("%d", I); I++; } }

0 0 1 2 0 1 No output 4

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==-1);

return(top+1); it can not be made shorter

3

60 The fwrite() and fread() functions handle data in

text form binary form hexadecimal form octal form 2

61 When the language has the capability to produce new data type,it is called____.

Extensible Encapsulation Overloading Overriding 1

62 ______ is the good example of a method that is shared by all instance of a class.

Constructor Attribute Constructor and Attribute

None of these options

1

63 Which of the following are class relationships?

is-a relationship.

Part-of relationship. Use-a relationship.

All of these options.

4

64Derived class inherits from base class.

Data members. Member function. Constructor & destructor.

Both Data members and Member function.

4

65 A contract is implemented through.

Class Interface. Abstract Class. Interface and Abstract Class

4

66 Complex object composing of other object is called_____

Aggregation Assosiation Composition None of these options

1

67 A relationship that can be identified between two object entities (classes or individuals) is called a ___________.

function association link activity 2

68

Which are the main three features of OOP language?

Data Encapsulation, Inheritance & Exception handling

Inheritance, Polymorphism & Exception handling

Data Encapsulation, Inheritance & Polymorphism

Overloading, Inheritance & Polymorphism

3

69

Cardinality can be represented as:

1?.n, where n represents an unlimited value.

Only with a line between base class & derived classes

A line with an arrow-head pointing in direction of parent or superclass.

Cannot be represented in UML.

1

70 Method is another name of____

Function Attribute Behavior None of these options

1

71 SATURINE : MERCURIAL redundant : saturn : venus heavenly : starry wolf : sly 3

Page 62: CDAC SAMPLE C-CAT PAPERS

:: wordy

72KIND : BENEVOLENT ::

Requital :reverberate

Reverentral:imprudent

Circumspect:short-sighted

Muddy:unclear 4

73 Horse : colt :: bird : eaglet child : adult seed : fruit sheep : lamb 4

74 CONE : PINE :: fruit : berry bulb : flower acorn : oak needle : fir 3

75 MANDATORY : OPTIONAL ::

pious : indignant

competent : inept opaque : ornate chaste : celibate 2

76 BLUEPRINT : CONSTRUCTION ::

itinerary : trip signal : light tenant : premises volume : library 1

77 CELEBRATE : MARRIAGE ::

window : bedroom

lament : bereavement

pot : pan face : penalty 2

78PROHIBITED : REFRAIN ::

innocuous : forbid

deleterious : embark

required : decide compulsory : comply

4

79 ASSUAGE : humiliate intensify convert solidify 2

80 DORMANT : authoritative elastic active uninteresting 3

81 Studies over the last 20 years have shown that virtually all babies born to drug - addicted mothers are themselves adicted to drugs. No such correlation, however, has been shown between drug-addicted fathers and thier newborn children. It would appear, then, that drug addiction is a genetically inherited trait that is gender-linked and passed through the mother. All the following, if true, would weaken the argument above EXCEPT

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

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

Drug addiction is an acquired condition which cannot be passed on from a mother to her children

Prior to the recent development of DNA testing, which maternity was unquestionable, paternity could not be positively determined

1

82 During 1985, advertising expensing expenditure on canned food products increased by 20 percent, while canned food consumption rose by 25 percent. Each of the following, if true, could help explain the increase in food consumption except

Advertising effectiveness increased

Canned food price decreased relative to substitutes

Canned food products were avaible in more stores

Canned opener production doubled

4

83 The gateway of india is in mumbai mumbai is in maharashtra therefore the gateway of india is in maharashtra

false cannot say true probably false 3

Page 63: CDAC SAMPLE C-CAT PAPERS

84 Ravi is the younger than sachin sachin is younger than tarun therefore ravi is the youngest among them

true false cannot say probably true 1

85 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:

Advertising effectiveness increased.

Canned food prices decreased relative to substitutes.

Canned food products are available in more stores.

Can opener production doubled.

1

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:

Employee-owned 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

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 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

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

The social scientist has an obligation to provide the means by which social phenomena may be understood by others

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

3

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 walked 15 metres he then further turned to his right and walked 12 metres how far is

32 metres south

47 metres east 42 metres north 27 metres south 1

Page 64: CDAC SAMPLE C-CAT PAPERS

jayant from the point x and in which direction?

89 If P and N are done on Thursday and Friday, then which of the following is true?

L is done on Tuesday

L is done on Wednesday

M is done on Monday

O is done on Tuesday

2

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

Beans, corn, kale, corn, peas, squash

Beans, corn, peas, beans, corn, squash

Beans, peas, squash, beans, corn, kale

Corn, peas, squash, beans, kale, peas

3

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

1.20 1.40 1.44 1.89 3

92 If a = -1 and b = -2, what is the value of (2 - ab2)3?

343 216 125 64 2

93 If z = 1, y = 2.......a = 26. Find the value of z + y + x + .......+a.

351 221 400 200 1

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 difference, in minutes, between the times shown on the two clocks when a third clock correctly shows noon?

36 24 14 12 1

95 50 copies of a book can be purchased for a sum payable 3 months hence while 51

6 % 8 % 10 % 12 % 2

Page 65: CDAC SAMPLE C-CAT PAPERS

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 interest of the same sum of money in the same number of years but at 4% per annum of simple interest.

960 900 840 800 1

97 If the radius of a cylinder is tripled while its height is halved, its volume will be

halved unchanged doubled increased by 350%

4

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?

30% 40% 45% 50% 4

99 A is 8 miles east of B. C is 10 miles north of B. D is 13 miles east of C and E is 2 miles north of D. Find shortest distance between A and E.

5 miles 6 miles 13 miles 18 miles 3

100 A dishonest milk seller professes to sell milk at cost price but gains 12 1/2%. The proportion of water he adds to milk is

8 : 1 6 : 2 5 : 1 None of the above.

1

Page 66: CDAC SAMPLE C-CAT PAPERS

Tuesday, June 22, 2010

Sample Qestion Paper 06

Sr.No.

Question Option1 Option2 Option3 Option4 Answer

01The decimal equivalent of 1011 is

21 11 10 12 2

02The _______ is useful device to obtain the computer output in the form of graphs or drawings.

Graph plotters Graphic pens OCR Punch Cards 1

03______ holds data as the CPU works with it.

Processor Memory Processor and Memory

None of these options

2

04 In a floppy, the circular plate coated with magnetic oxide, is divided into ______ and these are further divided into _____.

sectors, tracks tracks, sectors circles, sectors ovals, circles 2

05Which of these is not a output device.

Monitor Plotter Keyboard COM 3

06

Source code analysis tools functions as ______________

Design screens ,menus ,reports etc.

Testing and debugging of programs

Optimising programs by Pointing out unreachable lines of code

Generate source code from design given

3

07The principle task of a command language is:

To initiate execution of programs

To access the system functions

To cause an interrupt

None of these options

1

08_______is a program execution. Procedure Process Algorithm All of these options 2

09______ is the smallest unit of data

Frame Header Byte Bit 4

10 In the third generation of computers which of the following type of machines was introduced?

Mini computers

Micro computers Main frame Computers

Super computer 1

11______Gate is the Universal gate

NAND OR AND NOR 2

A small high speed memory which is used to increase the speed of processing is_____

RAM ROM Cache Memory None of these options

3

12Which of the following are of type Optical Disk:

CD-ROM WORM CD-ROM and WORM

Zip disk 3

13The transistor technology was introduced in ___________ generation

First generation

Third generation Second generation Fourth generation 3

Page 67: CDAC SAMPLE C-CAT PAPERS

14________ is concerned with the decision to temporarily remove a process from the system.

High level scheduling

Low Level scheduling

Medium Level scheduling

None of these options

3

15Pictorial representation of an Algorithm is _________

flowchart algorithm graphics procedure 1

16The programming language that was designed for specifying algorithm

Address ASCII ALGOL None of these options

3

17A table used to define clearly the word statement of a problem in a tabular form is_______

Design table Decoder Decision Table Debugging 3

18The flow lines are represented by the symbol of

Arrows Oval Circle Rectangle 1

19Language Primarily used for internet-based applications

ADA C++ JAVA FORTRAN 3

20Machine language has two part format the first part is__________ and the second part is __________

OPCODE,OPERAND

OPERAND,OPCODE

DATA CODE,OPERAND

OPERAND,CODEOP

1

21The process of incorporating changes in an existing system to enhance, update its features is_________.

System Maintenance

System Valuation

System evaluation None of these options

1

23The errors that occur in computer program is________

Syntax error Logical error Syntax error and Logical error

None of these options

3

24_________language that enables users to define there requirements for extracting required information.

Query Manipulation DDL DML 1

25The file organization method that can be used with magnetic tape storage is:

Direct Sequential Indexed Sequential

None of these options

2

26Which of the following are keywords of the "C" language? i.if ii.else iii.then iv.elseif

All are keywords

only i,ii and iii are keywords

only i,ii and iv are keywords

only i and ii are keywords

2

27The largest permissible magnitude of an integer constant is:

same as the octal integer number

same as the short integer number

same as integer None of these options

4

28The expression, a = 7/22 * (3.14 + 2) * 3/5; evaluates to

8.28 6.28 3.14 0 4

29The Output of the following code is: #includevoid main( )

5.0 3.0 1.5 1.0 3

Page 68: CDAC SAMPLE C-CAT PAPERS

{float a = 1, b;int m = 3, n = 5;b = (a ? m : n)/2.0;printf ("%3.1f ", b);}

30Which statement sets the 3rd lowermost bit of an unsigned integer x to 0, leaving other bits unchanged?

^3; x|(~3); x&(~3); x&3; 4

31What is the output of the following code? #includevoid main(){   int a = 32, b = 66;   if (a, b) printf("\n%d",a);   else printf("\n%d",b);}

32 66 Error None of these options

1

32What is the output of the following code? #includevoid main(){int a = 20;printf("%d",a + `F`);}

Error 20 90 garbage value 3

33The statement that compares the value of an integer called sum against the value 65, and if it is less, prints the text string "Sorry, try again", is

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

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

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

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

4

34What is the output of the following code? #includevoid main(){   int s=3,score=200;   switch(s)   {      case 1:      printf("\n %d ",score + 1);      case 2:      printf("\n %d\t",score + 2);      case 3:      printf("\n %d\t",score + 3);      case 4:      printf("\n %d\t",score + 4);      case 5:

203 203 207 212 203 204 205 None of these options

3

Page 69: CDAC SAMPLE C-CAT PAPERS

      printf("\n %d\t",score + 5);   }}

35What is the output of the following code? #include aaa() {    printf("hi"); } bbb() {    printf("hello"); } ccc() {    printf("bye"); } main() {    int (*ptr[3]) ();    ptr[0]=aaa;    ptr[1]=bbb;    ptr[2]=ccc;    ptr[3]=(); }

hi hello bye error 4

36When a function is called in C and parameters are passed into the routine, the variables passed by

reference value address None of these options

2

37Sending a copy of data to a program module is called _____.

Recursion Passing a reference

Passing a value None 3

38What will happen if you assign a value to an element of an array whose subscript exceeds the size of the array?

The element will be set to 0

Nothing, its done all the time

Other data may be overwritten

Error message from the compiler

4

39The statement int n[4] = { 11, -13, 17, 105}

assigns the value 17 to n[3]

is wrong; it gives an error message

assigns the value 17 to n[2]

assigns the value -13 to n[2]

3

40What will happen if you try to put so many values into an array when you initialize it that the size of the array is exceeded?

Nothing Possible system malfunction

Error message from the compiler

Other data may be overwritten

3

41Which of the following is the correct way of declaring a float pointer:

float ptr; float *ptr; *float ptr; None of the above 2

42Which of these are reasons for 1 & 3 Only 1 Only 3 All of the above 1

Page 70: CDAC SAMPLE C-CAT PAPERS

using pointers? 1.To manipulate parts of an array 2.To refer to keywords such as for and if 3.To return more than one value from a function 4.To refer to particular programs more conveniently

43

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

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

amibiguous declaration

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

None of these options

3

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

what happened Tulika

what happened what happened happened Tulika

Error:Invalid pointer assighnment

3

45What is the output of the following code? #include void main() { int arr[] = {10,20,30,40,50}; int *ptr = arr; printf("\n %d\t %d\t",*++ptr, *ptr++); }

30 20 30 10 20 30 30 30 2

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

typedef struct { char *item;

struct node { char *item;

Both are correct. None of above. 2

Page 71: CDAC SAMPLE C-CAT PAPERS

is NODEPTR next; } *NODEPTR;

struct node *next; }; typedef struct node *NODEPTR;

47 Individual structure member can be initialized in the structure itself

True False Compiler dependent

None of these options

2

48Given the statements, struct someone { int age; char *name; } *person; the C statement that will print out the name of the person is :

printf("%s", person.name);

printf("%c", person->name);

printf("%s", someone.person->name);

None of the above 4

49The operation for adding an entry to a stack is traditionally called:

Add Append Insert Push 4

50Transform this expression to infix form? AB+C*DE--FG+$

$+*ABC--FGDE$

$+GF--ED*C+BA

((A+B)*C- (D-E))$(F+G)

None of the above 3

51Which data structure is needed to convert infix notation to postfix notation

Linear list Queue Tree Stack 4

52 In the arrary representation of circular queue when can we say that the queue is full?

Front=rear (rear+1)%max==front

(rear-1)%max==front

rear=front-1 2

53For queue which of following are true

It is an ordered list

All the insertions are made at rear

All the deletion are made from front

All of the above 4

54A linear list, in which elements can be added or removed at either end but not in the middle, is known as

Queue Tree Stack Deque 4

55What is the output of the following code? #includevoid main() {   int a = 0;    printf("\n %d\t", (a = 10/a));}

0 1 Compile Time error

Runtime Error 4

56Text file end with? `\n` Null value `\r` EOF 4

57 If you don`t initialize a static array, what will be the elements set to?

0 an undetermined value

a floating point number

the character constant `\0`

1

5812.34f is a ________ constant. string literal float literal double literal character literal 2

59What is the output of the This is a test This is a This Error 3

Page 72: CDAC SAMPLE C-CAT PAPERS

following code if user enters "This is a test"? #include#includevoid main(){   char str[8];   scanf("%s",&str);   printf("\n%s",str);}

60What is the output of the following code? #includevoid main(){/* this is /* an example */ of nested comment */printf("\n123");}

123 Compile time error

Run time Error None of these options

2

61Encapsulation is

Information hiding

Data Binding Information hiding and Data Binding

None of these options

3

62Encapsulation prevents the program from becoming _______

Lengthy Complicated Independent Interdependent 3

63______ is the property of an object that distinguishes it from all other object.

Identity State Behaviour. None of these options.

1

64What is the term used to describe the situation when a derived class provides a function already provided in the base class?

Inheritance Polymorphism. Overloading Both Inheritance & Overloading

2

65Abstract class cannot have ________-.

Zero instance. Multiple instance.

Both Zero instance & Multiple instance.

None of these options.

2

66An object containing other object is called_____.

Containing Composition Containing and Composition

None of these options

2

67What name is given to a collection of components or routines?

Bank Namespace Library Schema 3

68

Which are the main three features of OOP language?

Data Encapsulation, Inheritance & Exception handling

Inheritance, Polymorphism & Exception handling

Data Encapsulation, Inheritance & Polymorphism

Overloading, Inheritance & Polymorphism

3

69Peer-to-peer relationship is a type of _________.

Association Aggregation Link None of these options

3

Page 73: CDAC SAMPLE C-CAT PAPERS

70

The use of constructor is ______.

to initialize the objects of it`s class.

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

To initialize the objects of it`s class as well as to allocate memory for the objects of it`s class

None of these options.

1

71There are any number of theories to explain these events and, since even the experts disagree, it is ______ the rest of us in our role as responsible scholars to _________ dogmatic statements.

paradoxical for ... abstain from

arrogant of ... compensate with

incumbent on ... refrain from

opportune for ... quarrel over

3

72ODE : POEM ::

character : novel

brick: building ballad : song street : intersection 3

73GAZELLE : SWIFT :: horse : slow swan : graceful lion : roar lamb : bleat 3

74CONE : PINE :: fruit : berry bulb : flower acorn : oak needle : fir 3

75LUBRICANT : FRICTION :: balm : pain

eraser : correction

solvent : paint reagent : chemical 1

76HAM : PORK :: Pickle:sardine Jelly:jam Wine:grapes Chocolate:coffee 3

77DISINTERESTED : biased violent complete humane 1

78GRACEFUL : MOVEMENT ::

articulate : speech

fastidious : grime

humorous : laughter

servile : rebellion 1

79DORMANT : authoritative elastic active uninteresting 3

80SALIENT : insignificant climactic worrisome awesome 1

81The movement to ownership by unions is the latest step in the progression from management ownership. Employee ownership to employee ownership can save depressed and losing companies. All the following statements, if true provide support for the claim above EXCEPT

Employee-owned companies generally have higher productive

Employee participation in mangaement raises morale

Employee union owner drives up salaries and wages

Employee union ownership enable worker to share in the profits.

3

82 In 1950, transylyvania earned $ 1 million in tourist revenue.By 1970, tourist revenue doubled and in 1980, it reached the sum of $4 million Each of the following, if true may explain the trend in tourist revenue except:

The number of tourists has increased from 1950 to 1980

average expenditure per tourist has increased

Average stay per tourist has increased

the number of total hotel rooms has increased.

4

83Ravi is the younger than sachin sachin is younger than tarun therefore ravi is the youngest among them

true false cannot say probably true 1

Page 74: CDAC SAMPLE C-CAT PAPERS

84Monopoly is characterized by an absence of or decline in competition. The ABC company realizes that its operations are in competitive industries. Which of the following conclusions may be inferred from the above?

ABC`s market is not monopolistic.

Monopoly is defined as one seller in a market.

The ABC company has no domestic competitors

The ABC company is publicly owned

1

85The Pistons have more points than the Nuggets. The Bullets have less points than the Lakers. The Nuggets and the Suns have the same number of points. The Suns have more points than the Bullets. If the above is true, which of the following must also be true?

The Nuggets have fewer points than the Bullets.

The Pistons have more points than the Bullets.

The Nuggets have fewer points than the Lakers.

The Lakers have more points than the Pistons.

1

86During 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:

Advertising effectiveness increased.

Canned food prices decreased relative to substitutes.

Canned food products are available in more stores.

Can opener production doubled.

1

87

A person hearing this advertisement countered,

being overweight is always caused by unhappiness and unattractiveness

being overweight is the only cause of unhappiness and unattractiveness

unhappiness and unattractiveness can cause someone to be overweight

unhappiness necessarily leads to being overweight

2

88Looking at a potrait, A said "her mother`s only son is my cousin`s father". My cousin is the daughter of my maternal uncle who has an only sister. whose potrait was "A" looking at?

A`s Uncle A`s sister A`s grandmohter A`s mother 4

89 If F sits directly opposite L,H sits at the head of the table, and G sits immediately on H`s left, what is the total number of possible seating arrangements of the guest ?

One Two Three Four 1

90 If F sits directly opposite L and between K and M, which guest must sit directly opposite M?

G H J K 3

Page 75: CDAC SAMPLE C-CAT PAPERS

910.000006 * 0.0000007 = ? 0.0000000042 0.000000000042 0.0000000000042 0.00000000000042 3

92The sum of digits of a two-digit number is 8 and the product of the digits is 15. What is the difference between the digits of that number?

4 2 6 none of the above 2

93The 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 at the same bakery is $3.90. What is the price of a loaf of bread at this bakery?

$1.10 $1.20 $1.25 $1.30 4

94Robert is 15 years older than his brother Peter. However, y years ago Robert was twice as old as Peter. If Peter is now b years old and b > y, find the value of b - y.

13 14 15 16 3

95 If paper costs 1 paisa per sheet, and a buyer gets a 2% discount on all the paper he buys after the first 1000 sheets, how much will it costs to buy 5000 sheets of paper?

Rs 49.30 Rs 50.00 Rs 39.20 Rs 49.20 1

96The inside circumference of a circular running track is 88 metres long and the track is everywhere 7 metres wide. Find the cost of leveling the track at the rate of 18 P per square metre.

Rs. 140 Rs. 138.60 Rs. 143.70 none of the above 2

97How many metres of silk at Rs. 4.50 a metre must a draper give in exchange for 50kg of sugar at Rs. 2.70 a kg?

21 27 30 None of the above 3

98The price of jute has been reduced by 20%. If the reduced price is Rs. 800 per quintal, the original price per quintal was

960 1000 980 640 2

99A grain merchant bought 50kg of wheat at the rate of Rs. 7 per kg. And 20 kg of wheat at the rate of Rs. 8 per kg. After mixing the two, he sold at the rate of Rs.10 per kg. What was his total profit in this transaction?

190 510 290 none of the above 1

Page 76: CDAC SAMPLE C-CAT PAPERS

100 If m = 121 - 5 k is divisible by 3, which of the following may be true? 1. m is odd 2. m is even 3. k is divisible by 3

1 only 2 only 2 and 3 only 1 and 2 only 4