Você está na página 1de 3

USN

10ccP13/23
First/Second Semester B.E. Degree Examination, Dec.2013 lJan.2ol4
Gomputer Goncepts and G Programming
Time: 3 hrs. Max. Marks:100
l$ote: l. Answer uny FIW
full
questions, choosing at leust twofrom each part.
,
2. Answer all objective type questions only in OMR sheet page 5 of the ans|eer,,booklet.
'
.,3. Answer to objective type questions on sheets other than OMR will not be valaed.
PART
_
A
ii)
iii)
b.
c.
d.
()
(f
o
(.)
(.)
te.
6e
-
o0
I
troa
.=N
d<f,
sT
og:
do
o>
o=
a:
oc)
(co
o0i
a6
oi=
p-
6.
orv
()j
o=
4tE
!(J
-c.=
>!
bov
tr oll
o=
so
F>
=o
o
rr<
:-
0.)
o
-7
f
o
a
la.
,,,,'
gj
Choose the correct answers for the following :
i)
Which
of the following is not a type of keyboard connector?
B) 6-pin conneetor
D) USB-conneCtor
(04 Marks)
D) Fourth
(06 Marks)
(05 Marks)
(05 Marks)
A) 5.pin connector
C) 8-pin connector
ii) Which of the following is not an output device of a computer?
iii) Who is called the father of the computer?
A) Balise Pascal
C) Joseph Jacquard
,,,,
iv) Which generation of computers is covered by the period 1964-197l?
A) First B) S-econd ,.. C) Third
Briefly explain about the various generatiorud of computers.
With a neat figure" explain how instructions are processed by the CPU.
Describe briefly about the various,keys
present
on a standard keyboard.
2 a. Choose the correct answers f,or the following : (04 Marks)
i) Which is a secondary memory device?
A) CPU
"
rB)
4I-LI C),FiBppy disk D) Mouse
If you want to exe-cute more than one program at a time, the systems software that you
must be capable of
A) wordpcessing B) virtual memory C)'compiling D) multitasking
A traaslatbr which reads an entire program written in d.high level language and
converts it into machine language code is
A) assembler B) translator C) compiler D) system software
,WhichofthefollowingisnotanApplicationSoftware?
C) VDU D) CRT screen
B) Charles Babbage
D) Dr. Hewrman Hollerith
A) Word processing
C) UNIX
,, b.
'
Explain in detail about the construction and operation of the hard disk drive.
,,
. Briefly write about various computer processing techniques to process data.
,,
'
d. List the different network components with examples.
3 a. Choose the correct answers for the following :
i) The flowcharting symbol Diamond Shaped Box indicates
A) Start B) Process step C) Decision
ii) Which of the following is not a keyword in C?
A) char B) break C) triangle
iii) Which of the following is an input function?
A) scanf B) printf C) puts(
)
iv) Which of the following is a valid integer?
B) Spreadsheet
:,,,,,,,,,,,
D) Desktop publishing
(05 Marks)
(07 Marks)
(04 Marks)
D) End
D) long
D) putchar(
D) +3,728.2
ctFd?5c&6_
L!&8{JtftY
A)
-2s0
B) 4,442
I nf ?
c)
-31.89
For More Question Papers Visit - www.pediawikiblog.com
For More Question Papers Visit - www.pediawikiblog.com
w
w
w
.
p
e
d
i
a
w
i
k
i
b
l
o
g
.
c
o
m
3b.
c.
d.
4a.
5a.
6a.
b.
c.
d.
What are the different built-in data types available with C?
With an example, explain the structure of a typical C program.
Briefly write what do you mean by the C tokens.
Choose the correct answers for the following :
i) which of the following is not a relational operator in c language?
A)<
B)>:
c)1:
ii) which of the following is a special operator in c language?
A) sizeof (
)
B) log (x)
C) exp (x)
iii) The unary operator in c are used to act upon only
- '
operand.
"
A) one B) two
C) three
iv) If b: 10 and d:3, what is the result for b%d operation?
.
p'<r.ne B) two
C) three
Exllain relaiional operators in C, with examples.
Jiit11 ?n."rldpl.: ..xplain
the Unary operatoi in C language.
Explain in detail ii.bout Bitwise operators in C languag.
-
10ccPt3t23
(06 Marks)
(06 Marks)
(04 Marks)
(04 Marks)
D) &
..,
D) sin (x)
D) four
D) 3.33
(06 Nlarks)
(04 Marks)
(06 Marks)
choose the correct
f;;r*
p.lh:. affi
(04 Marks)
i) The function that calls itself is called ai
A) forwarding function gf
conditional function
C) recursive function
D) backward function
ii) The main(
)
function work is defined,ih
'
library.
A) stdio.h
B) conio.fu
' c) string.h
D) math.h
iii) Parameters passed as arguments to the function call a1e called as
/
A) actual parameters
B) formalpuru.n"t.r,
f
C) return(expregsion)
D) none ofthese
\,in\**_
what is a function? Describe wirh declaration synrax.
. ,)fiffi,
?,::,^O:]l:,_tr.*?rr.ofpassing
parameters
to tunction with examples.
(08 Marks)
b.
c.
d.
b.
c.
d.
c) no parameters
,
' '
*D;;;;i,h;;;"'""
:i
iv) which of the rolio*ing return statements
#d##n"ij'r'".',io,
? ,;{
"T$l
.j} }$
A \'-^+,,-.^
'Y*\
LISI" 'i
t
l-<
A) return
B) return(0)
,*\
tno' '
l.:
-E)
$r
Write a prog-ram
to test whether or not a given integer number ir pri'"r. *ith functiJi.
, (04 Marks)
lhoo9e
the correct answers for the following :
(04 Marks)
i) which of the following looping construct is an entry controlled loop?,
A) while
B) do-while
C) foi
b; none of these
ii) which of the following is a conditional statement that tests a ril';;;i;ri^jin..",
iii) Which of the following is not a
jump
statement?
-
/ "
A) break
B) continue
C) go to
D) for
iv) Which of the following is an exit controlled loopl?
A) if
B) do-while
C) while
D) if_else
Write and explain the declaration syntax for while and do...while loop. (p4Marks)
write a program to compute the sum ofN numbers using the for loop. (06 Marks)
Write a program
to check whether the given alphabet is a vowel or not using switch
statement.
(06 Marks)
2 of3
For More Question Papers Visit - www.pediawikiblog.com
For More Question Papers Visit - www.pediawikiblog.com
w
w
w
.
p
e
d
i
a
w
i
k
i
b
l
o
g
.
c
o
m
t0ccPt3l23
7 a. Choose the correct answers for the following : (04 Marks)
i) In an array a[5]
:
{10,20,30,
40, 50}; the element 40 is designated as
A) afol B) a[1] c) a[3] D) a[a]
ii) In an array int a[2][3]
:
{10,
20,30,40, 50,60};the a[0][1] element is
A) 10 B) 40 c) 60 D) 20
iii) Which of the following string handling function is used to add two strings?
A) strcat(
)
B) strncat(
)
C) strcmp(
)
D) strlwr(
)
iv) Which of the following string handling function is used to compare two strings?
A) strlen(
)
B) strcmp(
)
C) strcpy(
)
D) strev(
)
(04 Marks) Define ar.array. How are they declared in C language?
A) zero B) single C) control D) none of these
ii) Open MP programrning model offers parallel directives for
A) Shared Memory Access B) Zero Memory Access
c. Write a program to read two matrices from keyboard and print the sum of two *u,r,r11:r--
(07 Marks)
d. Write a program to test whether the given string is a Palindrome or not. (05 Marks)
8 a. Choose the correct answers for the lollowing : (04 Marks)
i) Thread is defined as
_
stream of control flow
in
a program code.
C) Multiple Memory Access D) None of these
iii) execution of instructions in a computer system is referred to as parallel
computing.
A) Serial B) Sequeniial C) Accurate D) Simultaneous
iv) Open MP stands for
_.
.
A) Open Multi-Parallelism
C
) Open Multi-Processing
Bring out the scope for Pefallel computing.
Explain "Parallel
computing" in detail.
,
B) Organized Multi-Programming
, D) Organized Multi-Parallelism
b.
c.
d.
What are threads? Give thedvantages and disadvantages of multiple threads. (06 Marks)
(06 Marks)
(04 Marks)
CEF{TRAL
LIS&ARY
3 of3
For More Question Papers Visit - www.pediawikiblog.com
For More Question Papers Visit - www.pediawikiblog.com
w
w
w
.
p
e
d
i
a
w
i
k
i
b
l
o
g
.
c
o
m