Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 18

 

JUN

21

Sample Qestion Paper 03

Sr
. Answ
Question Option1 Option2 Option3 Option4
er
No
.
The input interfaces
01 transforms the data into hexa binary octal decimal 2
_________code
The following is not a type
02 Analog Digital Hybrid Logical 4
of computers
______ holds data as the Processor None of
03 Processor Memory 2
CPU works with it. and Memory these options
The connectivity channel
Cache None of
04 between CPU and Memory BUS Control Unit 1
Memory these options
is________
Which of these is an Magnetic Strip
05 Smart Card ATM Card Punch Card 2
electronic card. Card
The branch that deals with
systematic application of the computer software IT None of
06 2
principles of computer engineering engineering engineering these options
science is________
___________ is a multi None of
07 MS-DOS Unix Linux 3
tasking system. these options
________ is used by
operating system to map file
names to their corresponding
08 file attributes and file data, Directories Diary Paging File 1
and also to provide greater
flexibility to users in file
naming
______ is the smallest unit of
09 Frame Header Byte Bit 4
data
10 The job of the _____ layer in Data-Link Physical Transport Presentation 3
OSI model is to provide
node-to-node communication
and to hide all the details of
the communication subnet
from the session layer.
Which of these keys belong Numeric Alphanumeri All of these
11 null 4
to QWERTY keyboard Keypad c Keys options
______is collection of the
facts or informational raw Main
12 Data Database Computer 1
material and become Memory
information after processing.
Projects
Analog to It is an
Extends the information
Digital and Interface
computer`s Bus from a
13 SCSI Interface helps in Digital to unit between 1
outside the computer on
Analog I/O device
computer a large
Conversions and Ports
screen
Which of these is not a
14 Monitor Plotter Keyboard COM 3
output device.
_______ is not a network
15 DAN WAN LAN MAN 1
type
_____ contains the addresses
of all the records according
16 Index Subscript Array File 1
to the contents of the field
designed as the record key.
A sequence of precise and un
ambiguous instructions for
None of
17 solving a problem in a finite ALGOL Algorithm Procedure 2
these options
number of operation
is___________
___________ symbol is used
Offline Communicat
18 to show data transmission Annotation Merge 4
Storage ion Link
from one location to other.
__________ is the analysis
None of these
19 tool used for planning Protocol PROLOG Pseudocode 4
options
program logic
A language which allows
instructions to be represented Machine Assembly Scientific Programmin
20 2
by letters (i.e abbrevation) language Language Language g language
is_______
Language wherein Object
Encapsulation and Assembly oriented Pascal
21 Cobol 2
Abstraction of data is done is Language programming language
called as: Language
During system evolution
Ease of All of these
23 __________ is to be Time analysis Failure rate 4
maintenance options
considered
24 The errors that occur in Syntax error Logical error Syntax error None of 3
computer program and Logical
these options
is________ error
File-oriented
approach
Database- Object
Standard methods of File-oriented and
25 oriented Oriented 3
organizing data are: approach Database-
approach approach
oriented
approach
A file management system
typically supports the
26 Transaction file Storage file Master file Backup file 2
following types of files,
EXCEPT:
Which of the following are
keywords of the "C"
language? 

i.if  only i,ii and only i,ii and only i and ii


All are
27 iii are iv are are 2
keywords
ii.else  keywords keywords keywords

iii.then 

iv.elseif
All of the following are C
28 int float char Union 4
basic data types except:
29 void main()  10 00 01 11 3

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

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

   { 

      if(D==1) C=1; 

      else 

      if(A==1) C=2; 

   } 

   else 
      C=3; 

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

      D=1; 

What are the final values of


C and D?
Which statement sets the 3rd
lowermost bit of an unsigned
30 ^3; x|(~3); x&(~3); x&3; 4
integer x to 0, leaving other
bits unchanged?
What is the output of the
following code? 

void main() 

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


31 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 4
   printf("\n%d\t,",(a==b)); 

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

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

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

}
32 What is the output of the Both the string Both the Compile Runtime 2
following code?  are same string are not Time error Error
same
#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");

}
What is the output of the
following code? 

#include<stdio.h>

void main() 
Compile Runtime
33 { 0 1 4
Time error Error
   int a = 0; 

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

}
34 What is the output of the 1 2 3 4 5 6 7 8 1 2 3 10 456789 456789 3
following code?  9 10

#include<stdio.h>

void main()

   int s=0;

   while(s++<10)

   {

      if(s<4 && s<9)

         continue;

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

}
The break statement is used the main()
35 an if statement a for loop a program 2
to exit from: function
I have a function 

extern int f(int *); 


int five = 5; int five = 5;
36 f(&5); f(5); 1
f(&five); f(five);
which accepts a pointer to an
int. How can I pass a
constant by reference?
What is the output of the
following code? 

#include <stdio.h> 

main() 

   void swap(); 

   int x=10, y=8; 

37    swap(&x, &y);  x=8 y=10 x=10 y=8 Null value Error 1

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

void swap(int *a, int *b) 

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


*b; 

}
Are
Are necessary
Take less executable
to solve a
38 Recursive Functions main storage faster than None 1
certain class of
space iterative
problems
ones
39 What is the output of the 16 7 11 Error 1
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); 

}
What is the difference
between the 5`s in these two first is
first is first is array
expressions?  particular
particular size, second both specify
40 element, 2
element, is particular array size
int num[5]; second is
second is type element
array size
num[5];
int **array2
= (int
**)malloc(nr
ows *
int **array1 =
sizeof(int
(int
*)); 
**)malloc(nro
ws * sizeof(int
array2[0] = int *array3 =
*)); 
(int (int
How can I dynamically
*)malloc(nro *)malloc(nro Any of the
41 allocate a two-dimensional for(i = 0; i < 1
ws * ws * above.
array? nrows; i++)
ncolumns * ncolumns *
sizeof(int)); sizeof(int));
array1[i] = (int
*)malloc(ncolu
for(i = 1; i <
mns *
nrows; i++)
sizeof(int));
array2[i] =
array2[0] + i
* ncolumns;
42 #include<stdio.h>  value of p is address of p value of I is address of I 3
printed is printed printed is printed
void main() 

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

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

What is the output of this


program?
What is the output of the
following code? 

#include<stdio.h> 

void main() 


0 garbage
garbage
43 int arr[]={0,1,2,3,4,5,6};  Error 65432 43210 4
garbage
garbage
int i,*ptr; 

for(ptr=arr+4,i =0; i<=4; i+


+)

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

}
This pointer for any class const X X *const
44 int *this; X *thid; 4
internally declared as *this; this;
45 #include<stdio.h>  10 20 50 None of 3
these
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?
46 Consider the program 10 1000 20 None of 3
segment given below. (The these options
italicized numbers represent
program line numbers) : 

1. #include<stdio.h> 

2. int y; 

3. void main() 

4. { 

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

6. x = 10; 

7. y = 1000; 

8. px = &x; 

9. ppx = &px; 

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

12. } 

13. void f1(int *p) 

14. { 

15. *p = 20; 

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

17. } 

The printf() at line 11 prints


the value:
Consider the declaration : 

struct sample 

unsigned int a; 


None of the
47 1 bit 6 bits 5 bits 4
above
unsigned int b; 

}; 

struct sample v; 

The size of v.b is


struct node
typedef struct { { char *item;
The correct way for a char *item; struct node
Both are None of
48 structure in C to contain a NODEPTR *next; }; 2
correct. above.
pointer to itself is next; } typedef struct
*NODEPTR; node
*NODEPTR;
49 The main purpose of To allow the To use it To allow the None of the 1
declaring a union. same storage instead of same storage above
location to structure location to
store data of store data of
different data different
types at data types at
different times. the same
time.
The operation for adding an
50 entry to a stack is Add Append Insert Push 4
traditionally called:
All of the
51 Pushdown list means: Stack Queue Linked list 1
above
Postfix
52 Stack is not used in Recursion Quick Sort Simulation 4
Notation
When is linear queue said to Front=rear+ Front=rear+
53 Front==rear Front=rear-1 1
be empty ? 1 1
55 Queue has ------indices 0ne two three none 2
Every link node Links have
Arrays are
has a pointer to arrays of All of the
56 In case of a linked list used to hold 1
the next link pointer to above
the list
code next link
How can I print a `%`
character in a printf format None of
57 Try \% Try %% Try $% 2
string? I tried \%, but it these options
didn`t work.
58 #include<stdio.h>  10 20 50 None of 3
these options
void prg(int); 

main() 

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

prg(a); 

a*=( i + j ); 

printf("%d",a); 

void prg(int x) 

int k=2; 

x*=k; 
return (x); 

What is the output of this


program?
What will happen if you try
Error
to put so many values into an Possible Other data
message
59 array when you initialize it Nothing system may be 3
from the
that the size of the array is malfunction overwritten
compiler
exceeded?
What is the output of the
following code? 

#include<stdio.h> 

void main() 

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


60 Error 50 150 600 50 150 300 50 75 100 3
ptr = &x; *ptr *=2; 

ptr = &y; *ptr *=3; 

ptr = &z; *ptr *=4; 

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


y ,z); 

}
61 What is the output of the Run time error Compile time 100 Garbage 3
following code :  error value

#include<stdio.h>

void main()

   extern int out;

   printf("%d",out);

}
int out=100;
What is the output of the
following code? 

#include<stdio.h>

void main() 

   int a = 20,b=100;
62 21, 21 20, 21 21, 22 Error 4
   int &n = a;

   n=a++;

   n = &b;

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

}
Information
Information hiding and None of
63 Encapsulation is Data Binding 3
hiding Data these options
Binding
All Objects
data will be
stored in
Default
Compiler will Object same
If constructor is not provided constructor
64 not compile the creation is memory area 4
then will be
class not possible so
provided
overwriting
of data will
happen
To initialize
the objects
to allocate of it`s class
to initialize the None of
The use of constructor is memory for as well as to
65 objects of it`s these 1
______. the objects of allocate
class. options.
it`s class only memory for
the objects
of it`s class
66 __________ is the capability Polymorphism. Inheritance. Abstraction. Both 2
to share and extent the Polymorphis
functionality of an existing m and
class. Inheritance
Interface
Inheritance through interface Implementation Definition Delegation
67 inheritance 2
is called ________. inheritance. inheritance. inheritance.
model.
Complex object composing
None of
68 of other object is Aggregation Assosiation Composition 1
these options
called_____
Whether the
Whether the Whether the Used only
methods &
The (+) sign and (-) sign to methods & methods & with
attributes are
69 the left of the attributes & attributes are attributes are attributes not 1
overloaded
methods signify: public or global or with
or
private. local. methods..
overridden.
Data
Data Inheritance, Encapsulatio Overloading,
Encapsulation, Polymorphis n, Inheritance
Which are the main three
70 Inheritance & m & Inheritance & 3
features of OOP language?
Exception Exception & Polymorphis
handling handling Polymorphis m
m
Which of the following Object
Procedural Object based Structural
71 programming technique oriented 1
language language language
focuses on the algorithm. language
Inherits data
members
Object can and member
Inherits data
Inherits access functions
members and
constructors protected from base
72 A derived class member 1
and members class as well
functions from
destructor. with the dot as Inherits
base class.
operator. constructors
and
destructor.
IGNOMINY : death : derelict :
73 fame : heroism martyr : man 1
DISLOYALTY :: victory fool
74 RAIN : DELUGE :: pond : ocean desert : camel ore : iron street : road 1
75 CONE : PINE :: fruit : berry bulb : flower acorn : oak needle : fir 3
76 Horse : colt :: bird : eaglet child : adult seed : fruit sheep : lamb 4
charlatan : slavish : terse :
77 Bland : Piquant :: inane : relevant 2
genuine servile serious
mystery : forthright :
78 OPEN : SECRETIVE :: tunnel : toil better : best 3
detective snide
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
During 1985, advertising
expensing expenditure on
canned food products
Canned food Canned food
increased by 20 percent, Canned
Advertising price products
while canned food opener
83 effectiveness decreased were avaible 4
consumption rose by 25 production
increased relative to in more
percent. Each of the doubled
substitutes stores
following, if true, could help
explain the increase in food
consumption except
Each of the following could
be the number of white
84 4 5 6 8 2
puppies in the shelter
EXCEPT
The gateway of india is in
mumbai mumbai is in
probably
85 maharashtra therefore the false cannot say true 3
false
gateway of india is in
maharashtra
sushil is the son of the
teacher. mohan is the teacher
probably
86 and he has a son and definitely true probably true cannot say 2
false
daughter therefore mohan is
the father of sushil
Prof. Tembel told his class
that the method of student
evaluation of teachers is not
Students
valid measure of teaching Teachers are
Prof. Tembel filled up the Students are
quality. Students should fill not obligated
received low questionnaire interested in
87 out questionnaires at the end to use the 2
rating from his after the teachers
of the semester when courses survey
students. midterm evaluation.
have been completed. Which results.
exam.
of the following, if true,
provides support for Prof.
Tembel`s proposal ?
88 The Pistons have more The Nuggets The Pistons The Nuggets The Lakers 1
points than the Nuggets. The have fewer have more have fewer have more
Bullets have less points than points than the points than points than points than
the Lakers. The Nuggets and Bullets. the Bullets. the Lakers. the Pistons.
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?
being unhappiness
being
overweight is and
overweight is unhappiness
the only unattractiven
always caused necessarily
A person hearing this cause of ess can
89 by unhappiness leads to 2
advertisement countered, unhappiness cause
and being
and someone to
unattractivenes overweight
unattractiven be
s
ess overweight
If the 2nd and 4th saturdays
and all sundays are declared
holidays ,what would be the
90 24 25 23 22 4
minimum no of working
days of any month of any
year
If G sits at the head of the
table, and F in the middle
seat on one side of the table
91 G H J L 3
and immediately on K`s left,
the guest seated directly
opposite F must be
An employment
questionnaire asks the
prospective employee, "If
XYZ company hires you,
will you continue to use
drug?" The prospective
employee may not wish to
indicate "yes" or "no"
because 

92 1. a simple "yes" or "no" 1 only 2 only 1 and 2 only 2 and 3 only 3


answer could indict the
applicant. 

2. The question contains an


implication to which the
applicant may not wish to
lend credence. 

3. The question presents a


moral judgment.
93 If the operation * is defined 23 527 529 623 2
by *a = a2 - 2, then *(*5) is
On the number line shown,
94 which point corresponds to I H G F 3
the number 2.27?
It is between 10 and 11 that
the hour and minute hands of 54 6/11 mts. 35 6/11 mts. 57 6/11 past
95 56 mts. past 10 2
a watch are exactly past 10 past 10 10
coincident. What is the time?
A trapezium ABCD is
formed by adding the
rectangle ABEF whose area
is 6 sqr. inches and two right
96 2t + 6 5t + 25 2.5t + 12.5 (t + 5)2 1
triangles AFD and BEC
equal in area of t sq.inches.
What is the area of the
trapezoid in square inches?
A manufacturer of jam wants
to make a profit of Rs.75
when he sells 300 jars of
jam. It costs 65 paise each to
97 make the first 100 jars of jam Rs.175 Rs.225 Rs.240 Rs.250 4
and 55 paise each to make
each jar after the first 100.
What price should he charge
for the 300 jars of jam ?
By selling 12 marbles for a
rupee, a shopkeeper loses
20%. In order to gain 20% in
98 the transaction he should sell 8 6 4 3 1
the marbles at the rate of
how many marbles for a
rupee?
To a sugar solution of 3 liters
containing 40% sugar one
None of the
99 liter of water is added. The 33 30 15 2
above.
percentage of sugar in the
new solution is
If the length of a rectangle is
10 increased by 20% and the decreases by decreased by stays the increases by
2
0 width is decreased by 20%, 20% 4% same 10%
then the area
10 A car traveled 75% of the 10 20 33.34 37.5 3
1 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?
For every six metres forward
a man walks, a gale force
10 wind pushes him back two
500 480 300 240 3
2 metres. If he needs to cross a
200-metre plot, how many
metres will he actually walk?

You might also like