Top Banner
Computing Fundamentals Evolution of Computers Computer Generations Computer Organisation Primary and Secondary Storage Input and Output Devices Operating System File Organisation Data Communications and Computer Networking Fundamentals of Programming Numerical Systems Binary Arithmetic Boolean Algebra abd Logic Circuits Algorithms Flowcharts Arrays - single and multidimensional File Orgranisations C Programming Introductory Concepts C Fundamentals Operator and Expressions Data Input and Output Operator and Expressions Statements (control, conditional, looping) Functions Arrays Pointers Structures and Unions Trees Stack Queues Linked Lists Object Oriented Programming Classes Objects Inheritance Polymorphism Abstract Classes Reusability
182
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: c-dac

Computing Fundamentals

Evolution of Computers Computer Generations Computer Organisation Primary and Secondary Storage Input and Output Devices Operating System File Organisation Data Communications and Computer Networking

Fundamentals of ProgrammingNumerical Systems

Binary Arithmetic Boolean Algebra abd Logic Circuits Algorithms Flowcharts Arrays - single and multidimensional File Orgranisations

C Programming

Introductory Concepts C Fundamentals Operator and Expressions Data Input and Output Operator and Expressions Statements (control, conditional, looping) Functions Arrays Pointers Structures and Unions Trees Stack Queues Linked Lists

Object Oriented Programming

Classes Objects Inheritance Polymorphism Abstract Classes Reusability

Syllabus for Common Entrance Test (CET)

Page 2: c-dac

Section I :Computing Fundamentals (25 marks)Evolutions of computers, Computer generations, Computer organization, Primary and Secondary storage, Input-output devices, Computer software, Operating systems, Data communications and computer networking, Multimedia, Classification of computers, etc.

Section II : Fundamentals of Programming (10 marks)Algorithms, Flowcharts, Computer languages, System implementation and operation, File organizations and Data processing, etc.

Section III :Programming in C (50 marks)Introductory concepts, C Fundamentals, Operators and Expressions, Data Input and Output, Control statement, Functions, Arrays, Pointers, Structures and Unions, Arrays, Stacks, Queues and Linked Lists (Single, double, Circular), etc.

Section IV :Object Oriented Programming Concepts (15 marks)Understanding of the object oriented concepts, such as Classes and Objects, Generalizations, Polymorphism, Abstract Classes and Re-usability, etc.

Section V :General Apptitude (50 marks)Questions shall be modeled on GMAT pattern 

The Question paper Sample is given on the link which i am specifying.

http://daccet.blogspot.in/2010/06/sa...per-01_21.html

GOOD LUCK.

Read: Syllabus of C-DAC entrance exam,2012 for CSE branch? What is the selection procedure through C-DAC Entrance exam? 2012 http://educationcareer.in/syllabus-c-dac-entrance-exam-2012-cse-branch-what-selection-procedure-through-c-dac-entrance-exam-105599.html#ixzz1wsudr3Ds

Page 3: c-dac

Pre-DAC SyllabusPre-DAC Modules

Computing Fundamentals Evolution of Computers  Computer Generations Computer Organisation Primary and Secondary Storage Input and Output Devices Operating System File Organisation Data Communications and Computer Networking

Fundamentals Of Programming Numerica Systems Binary Arithmetic Boolean Algebra abd Logic Circuits Algorithms Flowcharts Arrays - single and multidimensional File Orgranisations

C Programming Introductory Concepts C Fundamentals Operator  and Expressions  Data Input and Output Operator  and Expressions  Statements (control, conditional, looping) Functions Arrays Pointers Structures and Unions  Trees Stack Queues Linked Lists 

Object Oriented Programming Classes Objects Inheritance Polymorphism Abstract Classes Reusability

Syllabus for Common Entrance Test (CET)

Section I :Computing Fundamentals (25 marks)Evolutions of computers, Computer generations, Computer organization, Primary and Secondary storage, Input-

Page 4: c-dac

output devices, Computer software, Operating systems, Data communications and computer networking, Multimedia, Classification of computers, etc.

Section II : Fundamentals of Programming (10 marks)Algorithms, Flowcharts, Computer languages, System implementation and operation, File organizations and Data processing, etc.

Section III :Programming in C (50 marks)Introductory concepts, C Fundamentals, Operators and Expressions, Data Input and Output, Control statement, Functions, Arrays, Pointers, Structures and Unions, Arrays, Stacks, Queues and Linked Lists (Single, double, Circular), etc.

Section IV :Object Oriented Programming Concepts  (15 marks)Understanding of the object oriented concepts, such as Classes and Objects, Generalizations, Polymorphism, Abstract Classes and Re-usability, etc.

Section V :General Apptitude  (50 marks)Questions shall be modeled on GMAT pattern  

Sr.

No.Question

Option1

Option2 Option3 Option4Answer

01

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

ALU Control Unit RAMMain Memory

2

02All of the following are input devices EXCEPT

Touch screen

Punch Cards MouseNone of these options

4

03Magnetic disk is a ________ storage device

Direct access

Indirect access

Random access

None of these options

1

04Which of the following are not Hard disk

Zip disk Disk packsFloppy disk

Winchester Disk

3

05Which of these keys belong to QWERTY keyboard

Numeric Keypad

nullAlphanumeric Keys

All of these options

4

06 Collection of Programs isSoftware

InstructionsHardware

Procedure 1

07 _______is a program execution.Procedure

ProcessAlgorithm

All of these options

2

08 _______ is an operating system MS-DOS

WINDOWS LINUX All of these

4

Page 5: c-dac

options

09The conversion of digital data to analog form is _______

Modulation

DemodulationSampling

Modem 1

10The first generation machines used _________

Vaccum Tube

Transistors IC`sNone 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 includeSystem 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

RouterCable modem

Bridge 4

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

Identifiers

Constants Objects Operators 2

17Algorithms can be represented in various ways EXCEPT

PROGRAMS

FLOWCHARTS

DECISION CHARTS

SPREADSHEET

4

18_________ symbol is used for Processing of data.

Oval ParallelogramRectangle

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

3

23 The errors that occur in computer program is________

Syntax error

Logical error Syntax error and Logical

None of these options

3

Page 6: c-dac

error

24 Program errors are known as ________ Virus Bugs ErrorsAll 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:

DirectIndexed 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__ 2nddayNone 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; 

   } 

   else 

1 0 0 0 0 1 1 1 3

Page 7: c-dac

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

100Garbage value

3

34 What is the output of the following code? 

#include<stdio.h>

0 1 Compile Time error

Runtime Error

4

Page 8: c-dac

void main() 

{

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

String constant

Null value Error None of these options

1

Page 9: c-dac

   char *temp = "String constant"; 

   return temp; 

main() 

   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 ErrorNone 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 10: c-dac

is equivalent to

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

0an 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 3Compile 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; 

Program will not compile

25 Garbage value

Address of I

2

Page 11: c-dac

void *p2; 

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 kDon`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+jnone 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]; 

8 8 8 9 9 8 8 , unpredictable

2

Page 12: c-dac

}; 

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?

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

None of the above

1

52 Stack can be represented using ArraysArrays or linked list

Only linked list

None of the above

2

53 Stack is not used inRecursion

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

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

O(log2n)

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

3

Page 13: c-dac

some pointer?

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 replacement

conditional inclusion

file inclusion

All of the above.

4

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 HelloHelloWorld

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

61 Which of the following are correctly formed #define statements

#define INCH PER FEET

#define SQR (X * X) (X)

#define SQR (X* X * X)

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

4

Page 14: c-dac

12

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

Front=rear-1Front=rear+1

Front=rear+1

1

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

Class StructureAbstract Data type

User Define Data type

3

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

Association

Aggregation LinkNone of these options

3

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

4

66 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

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

Object creation is not possible

All Objects data will

Default constructor will be

4

Page 15: c-dac

compile the class

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

provided

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

wolf : sly 3

75 EXPLOSION : DEBRIS ::flood : water

famine : foodfire : ashes

disease : germ

1

76 DOCUMENTS : ARCHIVE ::artifacts : museum

actors : stagetools : worker

instruments : musicians

1

78 TENACITY : WEAK ::apathy : caring

pity : strongimmorality : wrong

frequency : known

1

79 BANDAGE : WOUND ::stamp : envelope

gloves : handsdiaper : baby

cast : fracture

4

80 RESOLVED : DOUBT ::

confirmed : suspicion

announced : candidacy

included : guest

suggested : idea

1

81 PROHIBITED : REFRAIN ::innocuous : forbid

deleterious : embark

required : decide

compulsory : comply

4

82 ASSUAGE :humiliate

intensify convert solidify 2

83 COURT : reject uncover infect subject 1

84 In 1950, transylyvania earned $ 1 The average Average the 4

Page 16: c-dac

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:

number of tourists has increased from 1950 to 1980

expenditure per tourist has increased

stay per tourist has increased

number of total hotel rooms has increased.

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

4 5 6 8 2

86

sushil 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 truecannot 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 32 47 metres east 42 27 metres 1

Page 17: c-dac

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?

metres south

metres north

south

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

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 = 4xx2 = 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

97

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

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

Page 18: c-dac

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

 

Sample Question Paper 02Sr.

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.

ALUControl Unit

RAMMain Memory

2

02 ______Gate is the Universal gate NAND OR AND NOR 2

03 Magnetic disk is a ________ storage deviceDirect access

Indirect access

Random access

None of these options

1

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

EBCDIC BCD ASCIIAll of these options

1

05 SCSI Interface helps in Extends the computer`s Bus outside the computer

Analog to Digital and Digital to Analog Conversi

Projects information from a computer on a large screen

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

1

Page 19: c-dac

ons

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

Firmware

Fireware CasetoolAbstraction

1

07 Different types of user interfaces includeSystem 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

SJFRound Robin

Relocation

FCFS 2

09The interface that enables similar networks to communicate is called

Bus network

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

PhaseFrequency

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

SoftwareUser software

None of these options

1

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

Mini computers

Micro computers

Main frame Computers

Super computer

1

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.

IndexSubscript

Array File 1

17The programming language that was designed for specifying algorithm

Address ASCII ALGOLNone of these options

3

18 Connector is used as a substitute forProcessing

DecisionFlow Lines

Input Output

3

19 Advantages of using flow charts is Effective Analysis

Efficient Coding

Time consumin

Effective Analysis

4

Page 20: c-dac

gand Efficient Coding

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:

DirectIndexed 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 21: c-dac

#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 89None 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,--

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

Page 22: c-dac

a,a);

}

33

The statement which reproduces the following output, is 

22 

333 

4444 

55555

a = 1; 

while(a <= 5){

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

;a = a + 1;}

a = 1; 

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

while(b <= a){

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

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

a = 1; 

while(a <= 5){

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

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

a = 1; 

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

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

a = a + 1;}

2

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 Passing Choosing A 1

Page 23: c-dac

a copy of a variable into a function

a pointer to a variable into a function

a random value for a variable

function that does not return any values

36

What is the output of the following code? 

#include <stdio.h> 

main() 

char string[] = "Hello World"; 

display(string); 

void display(char *string) 

printf("%s", string); 

}

Hello World

Garbage value

Compile time error

None of the above

3

37 What is the output of the following code? 

#include<stdio.h> 

func(a,b) 

int a,b; 

   return (a= (a==b)); 

main() 

Error Garbage value

The value of process is 0

Null Value

3

Page 24: c-dac

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

}

38

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

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; 

No output

1 2 3 garbage garbage

1 2 3 0 0 There is a run time error

3

Page 25: c-dac

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

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

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

}

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

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 300None of the above

2

43 void main() 

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

1.1 2.3 2.1 2.2 3

Page 26: c-dac

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

What does the printf statement is the above code print

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

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

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

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

What is the output of this program?

what happened Tulka

what happened

what happened happened Tulika

Error:Invalid pointer assignment

3

45 Interpret the following statement : 

void(*b)(int *);

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

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

Page 27: c-dac

returns a void

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 

int marks; 

char grade; 

} res; 

res.marks = 90; 

res.grade = `A`; 

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

90 A garbage A

Error garbage garbage

2

Page 28: c-dac

}

48The 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 QueueLinked 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 MemoryLinked 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()

{

   int i=5,j=0;

   while ( i-- && ++j)

   {

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

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 29: c-dac

   }

}

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 88 , unpredictable

2

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

Error 6 5 4 3 2 0 garbage garbage garbage garbage

4 3 2 1 0 4

Page 30: c-dac

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.ttt->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 _____. StateBehaviour

Identity.All of these options.

4

64 A derived class Inherits data members and member functions from base

Inherits constructors and destructor.

Object can access protected members with the dot operator.

Inherits data members and member functions from base class as

1

Page 31: c-dac

class.

well as Inherits constructors and destructor.

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

Bank. Athlete. Sport. Team. 3

66Complex object composing of other object is called_____?

Aggregation.

Assosiation.

Composition.

None of these options

1

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

1

73 CONE : PINE :: fruit : bulb : acorn : needle : 3

Page 32: c-dac

berry flower oak fir

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

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

Most people who received the questionnaire

Most people in the district live in homes.

the questionnaire method of data collection is

A large, absolute number of replies is synonymous with accuracy

4

Page 33: c-dac

not done scientifically"have replied

unscientific

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 these chemicals from damaging the ozone layer further. Which of the following, if true, most seriously weakens the argument above?

It is impossible to measure with accuracy the quantity of ozone-destroying chemicals that exist as coolants in refrigerators.

In modern societies, refrigeration of food is necessary to prevent unhealthy and potentially life-threatening conditions.

Even if people should give up the use of refrigerators, the coolants already in existing refrigerators are a threat to atmospheric ozone.

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

4

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

3

Page 34: c-dac

halls.

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 but is decreased by emigration annually to the extent of 1/2%. What will be the increase percent in three years?

10 9.8 10.8 10.5 3

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

Page 35: c-dac

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 36: c-dac

Sample Qestion Paper 03

Sr.

No.Question Option1 Option2 Option3 Option4

Answer

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 MemoryProcessor and Memory

None of these options

2

04The connectivity channel between CPU and Memory is________

BUSCache Memory

Control UnitNone 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 LinuxNone 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 communication subnet from the session layer.

Data-Link Physical Transport Presentation 3

Page 37: c-dac

11Which of these keys belong to QWERTY keyboard

Numeric Keypad

nullAlphanumeric Keys

All of these options

4

12

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

Data Database ComputerMain 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 ProcedureNone of these options

2

18

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

AnnotationOffline Storage

MergeCommunication Link

4

19__________ is the analysis tool used for planning program logic

ProtocolNone 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

Page 38: c-dac

23During system evolution __________ is to be considered

Time analysisEase of maintenance

Failure rateAll of these options

4

24The errors that occur in computer program is________

Syntax error Logical errorSyntax 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 

1 0 0 0 0 1 1 1 3

Page 39: c-dac

      if(A==1) C=2; 

   } 

   else 

      C=3; 

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

      D=1; 

What are the final values of C and D?

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? 

Both the string are same

Both the string are not

Compile Time error

Runtime Error

2

Page 40: c-dac

#include<stdio.h>

void main()

{

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

   if(str1==str2)

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

   else

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

}

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 1Compile Time error

Runtime Error

4

34 What is the output of the following code? 

#include<stdio.h>

void main()

{

   int s=0;

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

Page 41: c-dac

   while(s++<10)

   {

      if(s<4 && s<9)

         continue;

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

   }

}

35The break statement is used to exit from:

an if statement a for loop a programthe main() function

2

36

I have a function 

extern int f(int *); 

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

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

int five = 5; f(five);

f(5); 1

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) 

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

Page 42: c-dac

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

}

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},{7,8},{3,4},}, {{2,2},{2,3},{3,4}, }}; 

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

}

16 7 11 Error 1

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

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

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

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

array1[i] = (int

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

array2[0] = (int *)malloc(nro

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

Any of the above.

1

Page 43: c-dac

*)malloc(ncolumns * sizeof(int));

ws * ncolumns * sizeof(int));

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

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

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

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

44 This pointer for any class int *this; X *thid; const X X *const 4

Page 44: c-dac

internally declared as *this; this;

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; 

return (x); 

What is the output of this program?

10 20 50None of these

3

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

1. #include<stdio.h> 

2. int y; 

3. void main() 

10 1000 20 None of these options

3

Page 45: c-dac

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:

47 Consider the declaration : 

struct sample 

unsigned int a; 

unsigned int b; 

}; 

struct sample v; 

1 bit 6 bits 5 bits None of the above

4

Page 46: c-dac

The size of v.b is

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 listAll of the above

1

52 Stack is not used in Recursion Quick SortPostfix Notation

Simulation 4

53When is linear queue said to be empty ?

Front==rear Front=rear-1Front=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 string? I tried \%, but it didn`t work.

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

2

58 #include<stdio.h> 

void prg(int); 

main() 

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

10 20 50 None of these options

3

Page 47: c-dac

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?

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?

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

ptr = &x; *ptr *=2; 

ptr = &y; *ptr *=3; 

ptr = &z; *ptr *=4; 

printf("\n %d\t %d\t %d\

Error 50 150 600 50 150 300 50 75 100 3

Page 48: c-dac

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 errorCompile time error

100Garbage 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 isInformation hiding

Data Binding

Information hiding and Data Binding

None of these options

3

64 If constructor is not provided then

Compiler will not compile the

Object creation is

All Objects data will be

Default constructor

4

Page 49: c-dac

class not possible

stored in same memory area so overwriting of data will happen

will be provided

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

Inherits constructors and

Object can access protected

Inherits data members and member

1

Page 50: c-dac

functions from base class.

destructor.members with the dot operator.

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

73IGNOMINY : DISLOYALTY ::

fame : heroismdeath : victory

derelict : fool

martyr : man 1

74 RAIN : DELUGE :: pond : oceandesert : 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 : relevantcharlatan : genuine

slavish : servile

terse : serious

2

78 OPEN : SECRETIVE ::mystery : detective

tunnel : toilforthright : 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 trueprobably false

3

86 sushil is the son of the teacher. mohan is the

definitely true probably true cannot say probably false

2

Page 51: c-dac

teacher and he has a son and daughter therefore 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 G H J L 3

Page 52: c-dac

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

92

An employment questionnaire asks the prospective employee, "If XYZ company hires you, will you continue to use drug?" The prospective employee may not wish to indicate "yes" or "no" because

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.

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

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

23 527 529 623 2

94

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

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

Page 53: c-dac

sq.inches. What is the area of the trapezoid in square inches?

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

8 6 4 3 1

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

500 480 300 240 3

Page 54: c-dac

him back two metres. If he needs to cross a 200-metre plot, how many metres will he actually walk?

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

02 The Calculations & decision making is done in

Control Unit ALU RAMControl Unit and ALU

2

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

EBCDIC BCD ASCII All of these options 1

04 Magnetic disk is a ________ storage device

Direct accessIndirect access

Random access

None of these options 1

05 Which of the following are of type Optical Disk:

CD-ROM WORMCD-ROM and WORM

Zip disk 3

06 Collection of Programs is

Software Instructions Hardware Procedure 1

Page 55: c-dac

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

09 The OSI model has ________ layers

5 6 7 83

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

Intelligent terminal

X terminalDumb terminal

Smart terminal 2

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

nullAlphanumeric Keys

All of these options 4

12

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

It is a powerful desktop computer designed to meet greater processing power, large storage etc.

It is not used for computer aided design

They can be used by several personnel at a time

All of these options 1

13 Rules that govern transmission of data over communication network is__________

Router Topology Prototype Protocol 4

14 The periodic refreshing of ____________ RAM is required

STATIC DRAMSTATIC and DRAM

None of these options 2

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

Identifiers Constants Objects Operators 2

16 _____ contains the Index Subscript Array File 1

Page 56: c-dac

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

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

System flowcharts

Program flowcharts

Activity flowcharts

None of these options 2

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

Tracking Tracing Executing Tracking and Tracing 2

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

Assembly Language

Object oriented programming Language

Pascal language

Cobol 2

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

23 Program errors are known as ________

Virus Bugs Errors All of these options 2

24

Standard methods of organizing data are:

File-oriented approach

Database-oriented approach

File-oriented approach and Database-oriented approach

Object Oriented approach

3

25 The component of data base management system is ________

Data definition Language

Data manipulation Language

Data definition Language and Data manipulation

None of these options 3

Page 57: c-dac

Language

26 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

27 Every C program requires :

char statementarithmetic operator

main () function 4

28 void 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 codeexecutable object code

all of the above 4

30 A continue usually associated with __________.

goto Else If None 4

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

1

32 C language came into existence in the year

1971 1958 1972 1983 3

33 A max width of c variable name can be

6 Char 8 Char 31 char 32 char 3

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

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

Hi HelloHello Hi Infinite no of times

Hello Hi still stack overflow

4

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

1 1 1 2 2 2 Error 2

37 which of the following statement is wrong

mes = 123.56;con = `T` * `A`

this = `T` * 20;

3 + a = b; 4

Page 58: c-dac

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

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

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

42 Stack is constantly changing

element objectmemory location

set of integers 3

43 Consider the program segment given below. (The numbers represent program line numbers) :1. #include

2. int y;

3. void main()

4.{

5. int x,*px,**px;

6. x = 10;

10 100 1000 20 3

Page 59: c-dac

7. y = 1000;

8. px = &x;

9. ppx = &px;

10. f3(ppx);

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

12.}

13.void f3(int **pp)

14.{

15. *pp = &y;

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

17.}

The printf() at line 11 prints the value :

44 A linked list can have member node, which has

An elementary data item

A next pointer A list All of the above 4

45 Consider the program segment given below. (The numbers represent program line numbers) :1.#include

2. int y;

3. void main()

4. {

5. int x,*px,**ppx;

6. x = 10;

7. y = 1000;

8. px = &x;

9. ppx = &px;

10 1000 20 None of the above 3

Page 60: c-dac

10. f1(px);

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

12. }

13. void f1(int *p)

14. {

15. *p = 20;

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

17. }

The printf() at line 11 prints the value:

46 If there are no element in stack empty(s) returns as the 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

48 Consider the following statements.i. stack is a LIFO

ii. stack is a FIFO

iii. queue is a LIFO

iv. queue is a FIFO

only i and iii are true

only ii and iii are true

only i and iv are true

only ii and iv are true 3

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

Null stack Empty stackWaste 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

will be initialized to 0 if not initialized.

All of the above. 4

Page 61: c-dac

with it when declared with in a function

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

3 4 5 Garbage 2

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

C DCompilation Err

None 3

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

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

The file "sample" could not be created for writing

ftp is not declared as a FILE pointer

the file "sample" is read only.

4

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

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

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

1 Infinite loop 2 1Declarations syntax err

2

58 Consider the functionint my(int n){if(n!=1) return (n* my(n-1));}

20 24 16 2 2

Page 62: c-dac

Call it with my(4). What is the return value of this function?

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

45 56 54 65 1

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

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

Abstraction ModularityEncapsulation

Modelling 3

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

64

What is inheritance?It is same as encapsulation.

Aggregation of information.

Generalization and specialization.

All of these options. 3

65

Which of the following is not false?

In interface methods do not have any implementation.

Any class that implements an interface must provide the implementation.

Both are true.

Both are false. 1

66 Complex object composing of other object is called_____

Aggregation AssosiationComposition

None of these options 1

Page 63: c-dac

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

function association link activity 2

68 Which 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 : victoryderelict : 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

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

75Bland : Piquant ::

inane : relevant

charlatan : genuine

slavish : servile

terse : serious 2

76 LUBRICANT : FRICTION ::

balm : paineraser : correction

solvent : paint

reagent : chemical 1

77 GRACEFUL : MOVEMENT ::

articulate : speech

fastidious : grime

humorous : laughter

servile : rebellion 1

78 DISINTERESTED : biased violent complete humane 1

79 ACCOLADE : rejection separation negligence descent 1

Page 64: c-dac

80 TEMERITY : foolhardiness negligence timidity care 3

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

4 5 6 8 2

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

84 A politician wrote the following: "I realize there are shortcomings to the questionaire method. However, since I send a copy of the quetionnaire to every home in the

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

Page 65: c-dac

district, I believe the results are quite representative.... I think the numbers received are so large that it is quite accurate even though the survey is not done scientifically"

85 Farmers in the North have observed that heavy frost is usually preceded by a full moon. They are convinced that the full moon somehow generates the frost. Which of the following, if true, would weaken the farmers convection?

The temperature must fall below 10 degrees Celsius (50 degrees Fahrenheit) for frost to occur.

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

Farmers are superstitious.

No one has proven that the moon causes frost.

2

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

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

88 Looking at a potrait, A said "her mother`s only son is my cousin`s father". My cousin is

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

A`s mother 4

Page 66: c-dac

the daughter of my maternal uncle who has an only sister. whose potrait was "A" looking at?

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

L and O 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 be the colors of the balls under the cups, in order from 1

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 67: c-dac

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

92 0.000006 * 0.0000007 = ?

0.00000000420.000000000042

0.0000000000042

0.00000000000042 3

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

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

96 Rakesh 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,

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

Page 68: c-dac

how long will it be until the price of steak is Rs.81.00 of a pound?

98 A,B and C play cricket.Ratio of A`s runs to C`s runs and C`s runs to B`s runs are same 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

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

Sample Qestion Paper 05

Sr.No.

Question Option1 Option2 Option3 Option4Answer

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

ROM PROM EPROM ROM and PROM

1

Page 69: c-dac

once stored cannot be altered by programmer

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

EBCDIC BCD ASCIIAll 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 softwareOperating system

Utilites 2

07 Different types of user interfaces include

System calls Command languageJob 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 87

10 Standard multimedia compression technique is

JPEGMPEG 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

Parity Even Parity Odd Parity Error Checking 2

Page 70: c-dac

data, is referred to as

The shortcoming of Mark 1 computer is ___________

It is very slow

Very complex indesign and huge in size

Unreliable

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

4

12 Which of the following are not Hard disk

Zip disk Disk packs Floppy diskWinchester Disk

3

13 The unit of measurement of data transfer rate is ______

Maud Baud BandwidthNone 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

FLOWCHARTSDECISION 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 caseNone of these options

2

19 Computer languages are classified as all of the following

Machine Language

Code language Assembly language

High level Language

2

Page 71: c-dac

EXCEPT:

20 Limitation of Machine language are, EXCEPT:

Executed fast by Computer

Difficult to program

Error proneMachine 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 ErrorsAll of these options

2

24 Commonly used file organization are:

Sequential Direct and RandomIndexed 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 ( c> d ? printf(" Hi") : printf(" Hello"));

Hi Hello HiHello None of these 2

28 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

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

20 10 Error None 1

Page 72: c-dac

printf("%d", sizeof(arr)); getch(); }

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

34Consider 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 HelloHello 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

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

C to it that C servies infinitely

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

4

Page 73: c-dac

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

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

42Interpret 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. #include

10 100 1000 20 3

Page 74: c-dac

2. int y;

3. void main()

4.{

5. int x,*px,**px;

6. x = 10;

7. y = 1000;

8. px = &x;

9. ppx = &px;

10. f3(ppx);

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

12.}

13.void f3(int **pp)

14.{

15. *pp = &y;

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

17.}

The printf() at line 11 prints the value :

45 A stack in c is declared as a ____ containing two objects

array structure groupcollection of element

2

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

2 4 3 1 3

Page 75: c-dac

be deleted between two nodes, how many links of the existing list have to be modified?

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 300None 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 anywherenone 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

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

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

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

None of the above

4

Page 76: c-dac

(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

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

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 formhexadecimal 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 AttributeConstructor and Attribute

None of these options

1

63 Which of the is-a Part-of relationship. Use-a All of these 4

Page 77: c-dac

following are class relationships?

relationship. relationship. options.

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 CompositionNone 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 BehaviorNone of these options

1

71 SATURINE : MERCURIAL ::

redundant : wordy

saturn : venus heavenly : starry wolf : sly 3

72 KIND : 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 : ornatechaste : celibate

2

76 BLUEPRINT : itinerary : signal : light tenant : premises volume : 1

Page 78: c-dac

CONSTRUCTION ::

trip library

77 CELEBRATE : MARRIAGE ::

window : bedroom

lament : bereavement

pot : pan face : penalty 2

78 PROHIBITED : REFRAIN ::

innocuous : forbid

deleterious : embark

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

Advertising effectiveness increased

Canned food price decreased relative to substitutes

Canned food products were avaible in more stores

Canned opener production doubled

4

Page 79: c-dac

of the following, if true, could help explain the increase in food consumption except

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

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

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

Page 80: c-dac

losing companies.All the following statements, if true, provide support for the claim above except:

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

32 metres south

47 metres east 42 metres north 27 metres south

1

Page 81: c-dac

walked 12 metres how far is 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

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

Page 82: c-dac

in two successive years?

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 copies can be had for same sum for cash payment. What is the rate of interest per year?

6 % 8 % 10 % 12 % 2

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

960 900 840 800 1

Page 83: c-dac

sum of money in the same number of years but at 4% per annum of simple interest.

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

halved unchanged doubledincreased 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 : 1None of the above.

1

Page 84: c-dac

Sample Question Paper 06

Sr.No.

Question Option1 Option2 Option3 Option4Answer

01 The decimal equivalent of 1011 is

21 11 10 12 2

02 The _______ 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 MemoryProcessor 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

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

Generate source code from design given

3

Page 85: c-dac

______________

unreachable lines of code

07 The 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 AlgorithmAll 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 computersMain 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 ROMCache Memory

None of these options

3

12 Which of the following are of type Optical Disk:

CD-ROM WORMCD-ROM and WORM

Zip disk 3

13 The transistor technology was introduced in ___________ generation

First generation Third generationSecond generation

Fourth generation

3

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

15 Pictorial flowchart algorithm graphics procedure 1

Page 86: c-dac

representation of an Algorithm is _________

16 The programming language that was designed for specifying algorithm

Address ASCII ALGOLNone of these options

3

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

Design table DecoderDecision Table

Debugging 3

18 The flow lines are represented by the symbol of

Arrows Oval Circle Rectangle 1

19 Language Primarily used for internet-based applications

ADA C++ JAVA FORTRAN 3

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

OPCODE,OPERAND

OPERAND,OPCODE

DATA CODE,OPERAND

OPERAND,CODEOP

1

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

23 The errors that occur in computer program is________

Syntax error Logical errorSyntax error and Logical error

None of these options

3

Page 87: c-dac

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

Query Manipulation DDL DML 1

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

Direct SequentialIndexed Sequential

None of these options

2

26 Which of the following are keywords of the "C" language?i.ifii.elseiii.theniv.elseif

All are keywordsonly i,ii and iii are keywords

only i,ii and iv are keywords

only i and ii are keywords

2

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

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

8.28 6.28 3.14 0 4

29 The Output of the following code is:#includevoid main( ){float a = 1, b;int m = 3, n = 5;b = (a ? m : n)/2.0;printf ("%3.1f ", b);}

5.0 3.0 1.5 1.0 3

30 Which statement ^3; x|(~3); x&(~3); x&3; 4

Page 88: c-dac

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

31 What 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 ErrorNone of these options

1

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

Error 20 90 garbage value 3

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

if( sum < "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

34 What is the output of the following code?#includevoid main(){

203 203 207 212 203 204 205 None of these options

3

Page 89: c-dac

   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:      printf("\n %d\t",score + 5);   }}

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

hi hello bye error 4

36 When a function reference value address None of these 2

Page 90: c-dac

is called in C and parameters are passed into the routine, the variables passed by

options

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

RecursionPassing a reference

Passing a value

None 3

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

39 The statementint 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 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?

NothingPossible system malfunction

Error message from the compiler

Other data may be overwritten

3

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

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

2

42 Which of these are reasons for using pointers?1.To manipulate parts of an array2.To refer to keywords such as for and if3.To return more than one value

1 & 3 Only 1 Only 3 All of the above 1

Page 91: c-dac

from a function4.To refer to particular programs more conveniently

43

The purpose of declaringfloat (*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

44 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])();}fun1(){ printf("what");fun2();}fun2(){printf("happened");}fun3{printf("Tulika");}What is the output of this program?

what happened Tulika

what happenedwhat happened happened Tulika

Error:Invalid pointer assighnment

3

45 What is the output of the following code?#includevoid main(){

30 20 30 10 20 30 30 30 2

Page 92: c-dac

int arr[] = {10,20,30,40,50};int *ptr = arr;printf("\n %d\t %d\t",*++ptr, *ptr++);}

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

47 Individual structure member can be initialized in the structure itself

True FalseCompiler dependent

None of these options

2

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

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

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

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

None of the above

4

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

Add Append Insert Push 4

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

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

Linear list Queue Tree Stack 4

Page 93: c-dac

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

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

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

0 1Compile Time error

Runtime Error 4

56 Text file end with?

`\n` Null value `\r` EOF 4

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

0an undetermined value

a floating point number

the character constant `\0`

1

58 12.34f is a ________ constant.

string literal float literal double literal character literal 2

59 What is the output of the following code if user enters "This is a test"?#include#include

This is a test This is a This Error 3

Page 94: c-dac

void main(){   char str[8];   scanf("%s",&str);   printf("\n%s",str);}

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

123Compile time error

Run time ErrorNone of these options

2

61Encapsulation is

Information hiding

Data BindingInformation hiding and Data Binding

None of these options

3

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

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

Inheritance Polymorphism. OverloadingBoth Inheritance & Overloading

2

65 Abstract class cannot have ________-.

Zero instance. Multiple instance.

Both Zero instance & Multiple

None of these options.

2

Page 95: c-dac

instance.

66 An object containing other object is called_____.

Containing CompositionContaining and Composition

None of these options

2

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

Bank Namespace Library Schema 3

68Which 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 Peer-to-peer relationship is a type of _________.

Association Aggregation LinkNone of these options

3

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

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

Page 96: c-dac

SWIFT ::

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

75 LUBRICANT : FRICTION ::

balm : paineraser : correction

solvent : paintreagent : chemical

1

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

77 DISINTERESTED :

biased violent complete humane 1

78 GRACEFUL : MOVEMENT ::

articulate : speech

fastidious : grimehumorous : laughter

servile : rebellion 1

79 DORMANT : authoritative elastic active uninteresting 3

80 SALIENT : insignificant climactic worrisome awesome 1

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

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

Page 97: c-dac

trend in tourist revenue except:

83 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

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

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

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

The Nuggets have fewer points than the Bullets.

The Pistons have more points than the Bullets.

The Nuggets have fewer points than the Lakers.

The Lakers have more points than the Pistons.

1

86 During 1985, advertising expenditures on

Advertising effectiveness increased.

Canned food prices decreased relative to

Canned food products are available in

Can opener production doubled.

1

Page 98: c-dac

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:

substitutes. more stores.

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

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

G H J K 3

Page 99: c-dac

between K and M, which guest must sit directly opposite M?

91 0.000006 * 0.0000007 = ?

0.0000000042 0.0000000000420.0000000000042

0.00000000000042

3

92 The 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 6none of the above

2

93 The price of 4 rolls, 6 muffins, and 3 loaves of bread at a certain bakery is $9.10. The price of 2 rolls, 3 muffins, and 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

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

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

Rs 49.30 Rs 50.00 Rs 39.20 Rs 49.20 1

Page 100: c-dac

buys after the first 1000 sheets, how much will it costs to buy 5000 sheets of paper?

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

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

2

97 How 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 30None of the above

3

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

99 A grain merchant bought 50kg of wheat at the rate of Rs. 7 per kg. And 20 kg of wheat at the rate of Rs. 8 per kg. After mixing the two, he sold at the rate of Rs.10 per

190 510 290 none of the above

1

Page 101: c-dac

kg. What was his total profit in this transaction?

100 If m = 121 - 5 k is divisible by 3, which of the following may be true?1. 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

Sample Qestion Paper 07

Sr.No.

Question Option1 Option2 Option3 Option4Answer

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 EPROMROM and PROM

1

Page 102: c-dac

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

EBCDIC BCD ASCIIAll 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 softwareOperating system

Utilites 2

07 Different types of user interfaces include

System calls Command languageJob 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 1

10 Standard multimedia compression technique is

JPEGMPEG 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 computer is ___________

It is very slow

Very complex indesign and huge in size

Unreliable

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

4

12 Which of the following are not

Zip disk Disk packs Floppy disk Winchester Disk

3

Page 103: c-dac

Hard disk

13 The unit of measurement of data transfer rate is ______

Maud Baud BandwidthNone 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

FLOWCHARTSDECISION 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 caseNone of these options

2

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

Machine Language

Code languageAssembly language

High level Language

2

20 Limitation of Machine language are, EXCEPT:

Executed fast by Computer

Difficult to program

Error proneMachine 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 ErrorsAll of these options

2

Page 104: c-dac

24 Commonly used file organization are:

Sequential Direct and RandomIndexed 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 ( c> d ? printf(" Hi") : printf(" Hello"));

Hi Hello HiHello None of these 2

28 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

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

break exit both a and b None 1

Page 105: c-dac

loop.

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

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

C to it that C servies infinitely

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

4

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

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

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

Page 106: c-dac

*p; int i; p=(char*) &a; for(i=0;i<=3;i++) printf("%02x",(unsigned char)p[i] ) ; }

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. #include

2. int y;

3. void main()

4.{

5. int x,*px,**px;

6. x = 10;

7. y = 1000;

8. px = &x;

9. ppx = &px;

10. f3(ppx);

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

12.}

13.void f3(int **pp)

14.{

10 100 1000 20 3

Page 107: c-dac

15. *pp = &y;

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

17.}

The printf() at line 11 prints the value :

45 A stack in c is declared as a ____ containing two objects

array structure groupcollection of element

2

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 300None 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 before main after main anywhere none of the 3

Page 108: c-dac

constant is defined above

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

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

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

return (1 (ps->top=+1) else return 0;

return (ps->top==-1);

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

3

Page 109: c-dac

more efficient method

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

text form binary formhexadecimal 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 AttributeConstructor 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 CompositionNone 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 Function Attribute Behavior None of these 1

Page 110: c-dac

name of____ options

71 SATURINE : MERCURIAL ::

redundant : wordy

saturn : venus heavenly : starry wolf : sly 3

72 KIND : 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 : ornatechaste : celibate

2

76 BLUEPRINT : CONSTRUCTION ::

itinerary : trip

signal : light tenant : premisesvolume : library

1

77 CELEBRATE : MARRIAGE ::

window : bedroom

lament : bereavement

pot : pan face : penalty 2

78 PROHIBITED : REFRAIN ::

innocuous : forbid

deleterious : embark

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

Advertising effectiveness increased

Canned food price decreased relative to substitutes

Canned food products were avaible in more

Canned opener production doubled

4

Page 111: c-dac

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

stores

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

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

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

Page 112: c-dac

statements, if true, provide support for the claim above except:

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 jayant from the point x and in which direction?

32 metres south

47 metres east 42 metres north27 metres south

1

89 If P and N are done on Thursday and Friday, then which of

L is done on Tuesday

L is done on Wednesday

M is done on Monday

O is done on Tuesday

2

Page 113: c-dac

the following is true?

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

36 24 14 12 1

Page 114: c-dac

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?

95 50 copies of a book can be purchased for a sum payable 3 months hence while 51 copies can be had for same sum for cash payment. What is the rate of interest per year?

6 % 8 % 10 % 12 % 2

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

30% 40% 45% 50% 4

Page 115: c-dac

came from people who gave Rs.40?

99 A is 8 miles east of B. C is 10 miles north of B. D is 13 miles east of C and E 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 : 1None of the above.

1