Computer Concepts and C Programming July 2014
Computer Concepts and C Programming July 2014
com
t0ccPt3t23
USN
une/July 2014
rammrng
Max. Marks:t.O,O
3 hrs.
"Time:
,,::
ri!
ttr,. ,:r,
g.
co
N'gi{ll;,.\. Answer any FIVE full questions, choosing at least two from each part. ,',..
l_.,Answer all obiective type questions only in OMR sheet page_ 5 o{lhe ays.welbooklet.
3. A"pqwer to objective type quesfions on sheets other than OMR will not b$rvalued+'
" t .w
!;,;L::
'fr-'l
*
.g
ff
-S
'd
'.\I6
PART - A
?"r". *
th- r'
(04 Marks)
following
for
the
answers
I
a.
Choosetb"correct
E
D A cd r.converts data into this _
1
C
B) charts
C) softwary.;,'* D) input oroutput
A) infifrffiion
p".g
ii) A device tlme4rolds
a disk
' ,
-:a is called
-,;
;EH=
;
i,,.rit"o
^-^.
D) memory
C) Rqlyl
A) drive
B) RAM
pEr,rqcn
rvrvrD
relers
ro
LL,
ttt)
ttt)
llle
l
ne
[ertns
LsllllD
ools
uutD
(opu
PEr irllv.. \"Pll
o0"J
::"'i;
a's
printer output D) printer size
printer
printer
B)
speed
speed
C)
C)'I
A)
resolutioh,,.B)
resolutioh,p
resolution
i
.!
.=NI
.
.:|:(n$
=
iv) The earliest computei;er *S9.f -sysffiq
ES
paperd;/
paper$t#
D) slide rule
D)
*'if"3(-{5
A) digital B)
J) anpl+Far E
r; ,,+-/
(06 Marks)
qnd
Differentiate
Differentiate
irpplication
software.
b.
between
system
softvgfu{
soit@_ffindffilication
: fi
(10 Marks)
c. Explain with example, different typeffiffiters.
e
Eq7
-t 2 a. Choose the correct answers for*fi&fdtowir$ i..,-.
(04 Marks)
8
lo
x*:*.
ik
ib
u'
.p
ed
ia
E=
trEr
i)
:E Ib
E";
ooc
a
r)
iD
.g
;L14
ii\
E
-2" B
;
E
i? H
EE
3F
F
lEE
iii)
iv)
xc
A
n list
llDL ul
choiws *ti
!r 4u
an OS
v9 is
ro q#+.8!*
dal{ed
of vulrulr4llu
command wllvlslp
A) command line B) check box
C) drop down list
D) menu
ic one
nne nG*hp
hpnefifc rrcitro
using neturnrL
network.
is
gffi'benefits
A;
A) rile
File security',;,"
secr
t:*:
C) Protectig
Protecti
ffm
"t^' virus
FTP sitespis"bften
called
-'"T:^-^L:.,^^
^La.^:,;
B) archives
archives
A)
chflql"Ieh
^\ chmnbld
DASffi
DOS and Linux are examples
fashion
tashron
of _
GUI
GUI
B) te*ipheral sharing
D) Fol@{',creation
.,t
"'*i",,... D) domain
--^,,^^":'=&
C) groups
interface.
patatLel
B)
lJ)
C) command lin6i-,.e"'D)
U)
llne:r..r ,,,D) parallel
,CffqTU
Ad'ffi
;4" ,,,,,",.
l-*Jd:;r:;,{^+^.:l
,,^-:^,,.
+-^^.
+^*^l^^;-.
tt Marks)
(10
ExpJain,in detail, various types of
^f-o+,',a*1.
network
w
b.
c.
; 6
l E
HE
g
E
mQ{,9
,4'
topologies.
i)
Thrashing
ii) Buffering
iii)
{,';::ff'
Spooling
(06 Marks)
ts;.
(OdM",grks)
ou-ii
D)
"?"
,1,
"
r\\o,/Ll
D) %hd
I of3
D) 32 bits
D) fgets( )
(06 Marks)
(10 Marks)
ficcP13l23
4 a.
manipulated.
B) keyword
A) string
C) reserved
The _
data type does not occupy any space in the memory.
A) long int
B) float
C) void
An operator which acts on 3 operands
B) Key operator
A) Unary operator
D) Ternary operator
C) Binary operator
What is the output of the following
4,.d'd
"-*""
code?
flk)
;'*d.,,,^.*main
c.
Evahaffipxpressions wheri o:
D z.((aYi$y,$+Lb-
b:
c:4.
15,
,',llH:,-'
(06Marks)
coefficients. '"".
(l0Marks)
.-n:;,'.'
*ART _ B
ik
.p
ed
ia
A) main( )
B) sqtf4"6',-,
A function that calls itse
Parameters
'
C) clrscr(
,,.L-
i::j
D) gets( )
.,*1,*" called as
B) Mhal parameters
to the functbn
,*
agcffi#cl?
::tor:
ii)
;u,,.
7='=t
paramdbfs'
w
w
,**,,)t
qj!-
D) void
C) no
D) non@f,these
Design and de$ahp a function rightrot (x, n) in C that itffifp Jhe value of the integer x
rotated to t$F{hfit by n bit positions as an unsigned intege*{ffq..k the tunction from the
main withdlifferent values for x and n and print the results with siii$able headings. (08 Marks)
How auff', irctions categorized based on the value returned by thiltfufierion and parameter
^^^a."s.(;lr,
(08Marks)
a. 6ffiose
-3
(04 Marks)
A) actual
q.
'J :
u *.rrfopqt. fotto*i"!-it,* ,
i) The default return type 6f hhg{ion is, ,"\Lh
A) int
B) flo#"1,.,,. * 1** C) char
ii) Which is the user defined fu
Choose the correct
iv)
c.
* mD) Error
.f', .
Write a C progr&ult find and output all the roots of a guadratic equation for non zero
iiD
b.
65.0
{r**
5 a.
8,
3)/(c+2)))
C)
,*"*
ib
b.
i.ffi*rintfO
("%d", 'A');)
*'&f5
B) A
D) double
g.
co
iiD
lo
'.t ;=
D) variable
word
ii)
break
continue
'
'
(04 Marks)
exit
D) goto " *
,.. #
Several statements grouped together in braces is called
A) compound B) equivalent C) complex
D) simple *,..."
iW,_=
ii, In C language,"x?y:2" is equivalent to
A) if (x : : 0)y; else z;
B) if (x : - l)z; else y;
C) if (x ::0)y; z;
D) if (x : : 1)y; else z;
A)
B)
C)
.".
.t,
iv)
A)1
b.
c.
8)6
C) zero
Write a C program to find the sum ofN natural numbers.
What is the purpose of a switch case statement? Explain with syntax.
2 of3
D) infinite
(08 Marks)
(08
Marks)
7 a.
D
ii)
(04 Marks)
A)8
If A[4]
B)
D) none of these
12
A) 1,4
lL
g.
co
.
iil)
1'.,,-1r;
""'"
' ;' . iv)
.{-
10ccP13/23
1:;,,,:r.
-"'
sort.
*,_
'.
(04 Marks)
Chooseffi,mrrect answers for the following :
-*{*=
t.r-'"-^-.^^..r:^:\
;^^+^,^+:^:a
na'-arrfa;^
oo
'*;',,
-LhA+..
-^o^*^A
^r an
^^ instruction in a computermfft&fn is referred
as parallel
i)
ecution of
^o-ollol
*"
:"
computatibt _
d%"r"
. d'%
O) Simultaneous
C) Agppptte
B) Serial
lo
8 a.
ii)
pafuffism
ring
lar.=j:
ik
iir)
ib
;:
.p
ed
ia
A)
b.
c.
,:"'..,..".
:F***:f
q-*-''*
,-*".,b
""
=,.,,.,."j.u
!
":
:.j
..:\.w. #
hI
;-
tl'
1,.
1.*.:,4' 1g"i
4,-'b,'
;.''tl:'
*-F',/
"
of3