CDAC Sample Questions Answers
CDAC Sample Questions Answers
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CDAC Questions For Practice With
Answers
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
Sr.
Question
Option1
Option2
Option3
Option4
Ans
wer
_______ computers
perform the
complex processing
by directly
measuring the
discrete physical
quantities.
_______ is a nonvolatile memory
chip in which data
once stored cannot
be altered by
programmer
Modern magnetic
tapes use 8 bit
________code
format for data
recording
The tape of
magnetic tape
storage is divided
into Vertical
columns
called_________
and horizontal rows
is called________
Which of these is an
electronic card.
Analog
Digital
Hybrid
Personal
ROM
PROM
EPROM
ROM and
PROM
EBCDIC
BCD
ASCII
All of
these
options
Channels
and
Frames
Frames
and
Channels
Tracks
and
Frames
Channels
and
Tracks
Magnetic
Strip
Card
Applicati
on
software
Smart
Card
ATM Card
Punch
Card
System
software
Operating
system
Utilites
System
calls
Comman
d
language
File
Administ
ration
Table
6
Job
control
language
File
Available
Table
All of
these
options
File
Allotment
Transfer
MPEG
FOR
VIDEO
MPEG FOR
AUDIO
All of
these
options
No.
1
9
10
________ is a set
of control
statements and
extends processing
capability of
Computer system
Different types of
user interfaces
include
FAT stands for
File
Allocatio
n Table
5
JPEG
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
11
12
13
14
15
16
17
18
19
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
The shortcoming of
Mark 1 computer is
___________
Parity
Even
Parity
Odd Parity
Error
Checking
It is very
slow
Very
complex
indesign
and
huge in
size
Unreliable
Which of the
following are not
Hard disk
The unit of
measurement of
data transfer rate is
______
______is collection
of the facts or
informational raw
material and
become information
after processing.
Algorithms can be
represented in
various ways
EXCEPT
_____ contains the
addresses of all the
records according to
the contents of the
field designed as
the record key.
Advantages of using
flow charts is
Zip disk
Disk
packs
Floppy
disk
It is very
slow and
also very
complex
indesign
and huge
in size
Wincheste
r Disk
Maud
Baud
Bandwidth
None of
these
options
Data
Databas
e
Computer
Main
Memory
PROGRA
MS
FLOWCH
ARTS
DECISION
CHARTS
SPREADS
HEET
Index
Subscrip
t
Array
File
Effective
Analysis
Efficient
Coding
Time
consumin
g
Selection
logic
Sequenc
e logic
End case
Effective
Analysis
and
Efficient
Coding
None of
these
options
Machine
Languag
e
Code
language
Assembly
language
High level
Language
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
20
Limitation of
Machine language
are, EXCEPT:
21
________ is true
for Syntax error.
23
Virus
24
Sequenti
al
25
_________languag
e that enables users
to define there
requirements for
extracting required
information.
3.2 % 3
Query
26
27
28
Executed
fast by
Compute
r
It is
easier to
detect
Syntax
error
compare
d to
logical
error
Difficult
to
program
Error
prone
Machine
dependen
t
The
program
cannot
be
compiled
and
executed
until all
syntax
errors
are
correcte
d
Bugs
These
program
error
typically
involve
incorrect
Punctuatio
n,
undefined
terms, no
parenthesi
s etc.
All of
these
options
Errors
Direct
and
Random
Manipula
tion
Indexed
Sequentia
l
DDL
All of
these
options
All of
these
options
DML
0.2
Err
Hi
Hello
HiHello
None of
these
All are
keyword
s
only i,ii
and iii
are
keyword
s
only i,ii
and iv are
keywords
only i and
ii are
keywords
`Thank
You`
`23.56e03`
all of the
above
20
`enter
values of
p n r`
10
Error
None
Upperca
se case
letters
Should
not start
with a
Any letter
with - + =
sign
Letter
starting
with
ii)else
iii)then
iv)elseif
29
30
31
which of the
following is NOT a
character constant
void main() { int
arr[10];
printf("%d",
sizeof(arr));
getch(); }
Following are the
rules for naming an
identifier except:
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
are not
equivale
nt to
lowercas
e letters
32
33
34
35
36
37
38
39
digit but
can have
digits in
between
the
name
8
break
The
compiler
will
search
only the
standard
libraries
for the
file
myfile.h
main() { printf(" \n
Hello"); disp(); }
disp() { printf(" \n
Hi"); main(); }
C() { printf("C"); }
B() { C();
printf("B"); } A() {
printf(" A"); B(); }
main() {
printf("M"); A(); }
which of the
following shows the
correct hierarchy of
arithmetic
operations in C
main() { printf(" C
to it that C
servies"); main(); }
None
exit
both a
and b
None
The
compiler
will search
only the
user`s
default/w
orking
directory
None of
the
above.
Hi
The
compiler
will
search
first the
user`s
default/
working
directory
and then
the
standard
libraries
for the
file
myfile.h
Hello
Hello Hi
Infinite no
of times
Hello Hi
still stack
overflow
CAMB
MABC
MCAB
MACB
(), **, *
or /, +
or ?
(), **,
*, /, +, -
(), **, /,
*, +, -
(), / or *,
- or +
C to it
that C
servies
infinitely
Compilat
ion Error
Linker
Error
array of
pointer
to five
functions
an
integer
function
taking 5
arrays
array of 5
pointer to
integers
C to it
that C
servies
still stack
overflow
None of
above
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
40
Missing
parenthe
ses in
return
stateme
nt
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",(unsi
gned char)p[i] ) ; }
Interpret the
following statement
:
void(*b)(int *);
40 AC
00 00
42
43
44
From an ascending
priority queue only
the_________item
can be removed
Consider the
program segment
given below. (The
numbers represent
program line
numbers) :
1. #include
and
returnin
g an
char
The
function
should
be
defined
as int f (
int a ,
int b)
00 CA
00 40
Redeclara
tion of a
None of
the above
00 00 AC
40
00 00 CA
04
b is a
pointer
to a
function
which
takes a
pointer
to an int
and
returns a
void
Largest
invalid
stateme
nt
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
Smallest
Rear
Top
10
100
1000
20
2. int y;
3. void main()
4.{
5. int x,*px,**px;
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
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.}
45
46
47
48
49
array
structure
group
collection
of
element
empty
non
empty
overloade
d
underflow
element
object
4
set of
integers
1
memory
location
3
100
200
300
None of
the above
-1
Garbage
None
{
int i = 100, j =
200;
const int *p=&i;
p = &j;
printf("%d",*p);
}
50
The value of
automatic variable
that is declared but
not initialized will
be
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
51
52
53
54
55
56
57
58
59
In a'C' program
constant is defined
What does the term
'call-by-reference'
refer to?
Consider the
following
declaration ::enum color
{black=-1, blue,
green }; This
represents
The macro FILE is
defined in which of
the following files;
A function called
total(), totals the
sum of an integer
array passed to it
(as the first
parameter) and
returns the total of
all the elements as
an integer. Let the
second parameter
to the function be
an integer which
contains the
number of elements
of the array. The
correct code is
What does the term
call-by-value refer
to?
Associativity of
unary minus is
void main() { int
I=0; for(;I= =2;) {
printf("%d", I);
I++; } }
If ( ps->top=-1)
return (true); else
return (false); For
this group of
statements
suggested shorter
and more efficient
method
before
main
Passing
a copy
of a
variable
into a
function.
black= 1,blue=2
,
green=3
after
main
Passing
a pointer
to a
variable
into a
function.
black= 1 ,blue
= -2,
green= 3
anywhere
Choosing
a random
value for
a
variable.
none of
the above
A function
that does
not return
any
values.
black= -1
,blue = 0,
green= 1
an illegal
declaratio
n
stdlib.h
stdio.h
io.h
stdio.c
int total(
int
numbers
[], int
elements
){
int total(
int
numbers
[], int
elements
){
int total(
int
numbers[
], int
elements
){
None of
the above
Passing
a copy
of a
variable
into a
function
right to
left
0
Passing
a pointer
to a
variable
into a
function
left to
right
012
Choosing
a random
value for
a variable
A function
that does
not return
any
values
from
center
01
None
No output
return (1
(ps>top=+
1) else
return 0;
return
(ps>top==1);
return(top
+1);
it can not
be made
shorter
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
60
text
form
binary
form
hexadeci
mal form
octal form
Extensibl
e
Encapsul
ation
Overloadi
ng
Overriding
Construc
tor
Attribute
Construct
or and
Attribute
None of
these
options
is-a
relations
hip.
Data
member
s.
Part-of
relations
hip.
Member
function.
Use-a
relationshi
p.
Construct
or &
destructor
.
65
A contract is
implemented
through.
Class
Interface
.
Abstract
Class.
66
Complex object
composing of other
object is
called_____
A relationship that
can be identified
between two object
entities (classes or
individuals) is called
a ___________.
Which are the main
three features of
OOP language?
Aggregat
ion
Assosiati
on
Compositi
on
All of
these
options.
Both Data
members
and
Member
function.
Interface
and
Abstract
Class
None of
these
options
function
associati
on
link
activity
Data
Encapsul
ation,
Inherita
nce &
Exceptio
n
handling
1?.n,
where n
represen
ts an
unlimite
d value.
Inherita
nce,
Polymor
phism &
Exceptio
n
handling
Data
Encapsula
tion,
Inheritanc
e&
Polymorp
hism
Overloadi
ng,
Inheritanc
e&
Polymorp
hism
Only
with a
line
between
base
class &
derived
classes
Cannot be
represent
ed in
UML.
Function
Attribute
A line with
an arrowhead
pointing
in
direction
of parent
or
superclass
.
Behavior
None of
these
61
62
63
64
67
68
69
Cardinality can be
represented as:
70
Method is another
name of____
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
options
71
SATURINE :
MERCURIAL ::
72
KIND :
BENEVOLENT ::
73
Horse : colt ::
74
CONE : PINE ::
75
MANDATORY :
OPTIONAL ::
76
BLUEPRINT :
CONSTRUCTION ::
CELEBRATE :
MARRIAGE ::
redunda
nt :
wordy
Requital
:reverbe
rate
bird :
eaglet
fruit :
berry
pious :
indignan
t
itinerary
: trip
window :
bedroom
78
PROHIBITED :
REFRAIN ::
innocuou
s : forbid
79
ASSUAGE :
80
DORMANT :
81
humiliat
e
authorita
tive
There
have
been
instance
s in
which
drugaddicted
babies
have
been
born to
addicted
fathers
and nonaddicted
mothers.
77
saturn :
venus
heavenly
: starry
wolf : sly
Reverent
ral:impr
udent
child :
adult
bulb :
flower
compete
nt :
inept
signal :
light
lament :
bereave
ment
deleterio
us :
embark
intensify
Circumspe
ct:shortsighted
seed :
fruit
acorn :
oak
opaque :
ornate
Muddy:un
clear
sheep :
lamb
needle :
fir
chaste :
celibate
tenant :
premises
pot : pan
volume :
library
face :
penalty
required :
decide
compulsor
y:
comply
solidify
elastic
active
Although
some
biologica
l
condition
s have
been
shown to
be
genetical
ly based,
drug
addiction
is not
among
them
Drug
addiction
is an
acquired
condition
which
cannot be
passed on
from a
mother to
her
children
uninterest
ing
Prior to
the recent
developm
ent of
DNA
testing,
which
maternity
was
unquestio
nable,
paternity
could not
be
positively
determine
d
convert
3
2
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
82
83
84
85
86
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
The gateway of
india is in mumbai
mumbai is in
maharashtra
therefore the
gateway of india is
in maharashtra
Ravi is the younger
than sachin sachin
is younger than
tarun therefore ravi
is the youngest
among them
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:
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.
Advertisi
ng
effective
ness
increase
d
Canned
food
price
decrease
d
relative
to
substitut
es
Canned
food
products
were
avaible in
more
stores
Canned
opener
productio
n doubled
FALSE
cannot
say
TRUE
probably
false
TRUE
FALSE
cannot
say
probably
true
Advertisi
ng
effective
ness
increase
d.
Canned
food
prices
decrease
d
relative
to
substitut
es.
Canned
food
products
are
available
in more
stores.
Can
opener
productio
n
doubled.
Employe
e-owned
compani
es
generall
y have
higher
producti
vity.
Employe
e
participa
tion in
manage
ment
raises
morale.
Employee
union
ownership
drives up
salaries
and
wages.
Employee
union
ownership
enables
workers
to share
in the
profits.
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
87
88
89
Social
psycholo
gist
must
have a
strong
backgro
und in
other
sciences
as will as
their
own
A study
of social
psycholo
gy
should
be part
of the
curriculi
m of
governm
ent
officials.
The social
scientist
has an
obligation
to provide
the means
by which
social
phenomen
a may be
understoo
d by
others
Social
phenomen
a are little
understoo
d by those
outside
the field
of social
psycholog
y.
32
metres
south
47
metres
east
42 metres
north
27 metres
south
L is done
on
Tuesday
L is done
on
Wednesd
ay
M is done
on
Monday
O is done
on
Tuesday
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
90
91
92
93
94
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?
If x + 49 =8.2,
then the value of x
is equal to
If a = -1 and b = 2, what is the value
of (2 - ab2)3?
If z = 1, y =
2.......a = 26. Find
the value of z + y +
x + .......+a.
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
Beans,
corn,
kale,
corn,
peas,
squash
Beans,
corn,
peas,
beans,
corn,
squash
Beans,
peas,
squash,
beans,
corn, kale
Corn,
peas,
squash,
beans,
kale, peas
1.2
1.4
1.44
1.89
343
216
125
64
351
221
400
200
36
24
14
12
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
the two clocks when
a third clock
correctly shows
noon?
95
96
97
98
99
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?
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.
If the radius of a
cylinder is tripled
while its height is
halved, its volume
will be
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?
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.
6%
8%
10%
12%
960
900
840
800
halved
unchang
ed
doubled
increased
by 350%
30%
40%
45%
50%
5 miles
6 miles
13 miles
18 miles
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.
http://www.CrazyEngineers.com
Uniting Engineers Across The World
CrazyEngineers
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:01
6:02
5:01
None of
the
above.
Disclaimer: Author(s) of this document are the copyright holders of the content distributed through
CrazyEngineers Resources (http://www.crazyengineers.com/resources/). CrazyEngineers.com & its owners
are not responsible for any type of dispute arising due to content published via this document.