You are on page 1of 3

t

B
\.f I L
l=
L-
C o
1
\
USN
1occPt3t23
First/Second Semester B.E. Degree Examination, June/July 2013
Gomputer Goncepts and C Programming
Time:3 hrs. Max. Marks:100
Note: 1. Answer any FIVE
full
questions, choosing at least tteo
from
each parl
2. Answer all objective type questions only in OMR sheet page 5 of the answer booklet
3, Answer lo objective
gpe questions on sheets other thsn OMR will not be valued.
E
;h
.= il
0tr
.96
-ir
'i^
a3_
(Ji.
E=
()<
-i
..i
z
E
PART
_
A
1 a. Choose the correct answers fbr the following :
i) The term dots per inch (dpi) relers to printer's
A) resolution B) speed C) output
is used to identily produc{ and provide information such as
price. ii)
B) Ba.r code reader
D) Light sensitive detector
B) High level language
D) Machine level language
(04 Marks)
D) colours
(06 Marks)
(04 Marks)
(04 Marks)
(06lVlarks)
b.
c.
d.
A) Price check
C) Numeric digit
iii) is not a computer language.
A) Assembly language
C) Natural language
Convert the following:
i) (10101),
:(
?)ro:( ?)ro
iu) Which operating system first appeared with IBM PC?
A) Windows B) Linux C) Mac OS D) DOS
What is information processing cycle? Explain four steps with flow chart. (04 Marks)
With a neat diagram, explain lunctions of each units of basic model of computer. (06 Marks)
a. Choose the correct answers for the following :
D _
is two or more LAN's connected together across large geographical area.
A) GAN B) LAN C) WAN D) MLAN
ii) Temporary storage in main memory is called as
A) Buffer
C) Tirtary memory
B) Secondary memory
D) None ofthese
iiD Which of the following unit represents largest amount of data?
A) Kilobfe B) Terablte C) Gigable D) Megable
iv) Identif-rcation number of every computer connected to internet is
_.
A) Sub net mask B) Gate way
Explain basic components ofa network.
C) MAC address D) IP address
b.
c.
d.
3a.
Define operating system. Discuss functions of operating system.
Choose the correct answers for the following :
i) The number 0987 is
_
integer.
iD What kind of language is C?
A) Machine language
C) Assembly language
Explain working ofhard disk with a neat diagram. Give advantages and disadvantages.
A) octal B) decimal
(06 Marks)
(04 Marks)
C) hexadecimal D) invalid
B) Procedural language
D) Object oriented language
1 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
3 a. iir) The result after evaluating the expression 112
*
4 is
A) 0.2s B)2
Q)0
iv) What is the output if following program executed?
main (
)
{
print("%d", 'A');
)
A) 6s B)A c) "A"
b.. Explain software development and life cycle.
c.'- What are identifiers? Discuss the rules to be followed while
exampies.
data types.
4 a. Choose the coffect answers for the following :
i) An operator which acts on two operands to produce result is
A) ternary B) binary C) unary
ii) The modulus operator
(%) can be used only for
_
values.
d. Explain format specifiers used in scanf(
)
function to read unt, float, char, double and longint
A) floating
C) both integer and floating
iiil In C, TRUE is represented by
B) integer
D) all data type
C) non-zero D) 1
iii) i%: t/3
10ccP13i23
D) 0.12s
D) ElTor
(04 Marks)
naming ideirtifiers. Give
(06 Marks)
(06 Marks)
(04 Marks)
operator.
D) complex
+i
give flow
(06 Marks)
(10 Marks)
(04 Marks)
D) char
D) actual
D) blank space (.b)
b.
A) true B) zero
iv) Which of the following is not valid assignment statement?
A)i+j=23 B)j-23 C)j+:23 D)j=23
Write C program to swap values of twci integers without using third variable and
chan lor the same.
Find the result of each of the following expressions with i: 4,
j:2,k:
6, a- 2.
i) kx:i+j
iv) m-i+(i
:2+k)
ii)
j:i/:k
v, a= i*(11 =W2)
PART
-
B
5 a. Choose the-correct answers for the following :
i) In c,
.default
return type of function is
A) void B) int
Parameters used in function call are
A) formal B) local
Every C program must have
A) user defined function
C) main function
ii)
iii)
b.
c.
d.
C) float
parameters.
C) dummy
B) standard function
D) library function
ir) Arguments of a function are separated with
A)comma(,) B) semicolon(;) C) colon(:
)
Write C program to print n fibbonacci numbers using function. (08 Marks)
Differentiate call by value and call by address parameter passing mechanisms. (04 Marks)
Explain the scope of local and global variables with simple example. (04 Marks)
6 a. Choose the correct answers for the following :
i) break statement can be used in
-.
A) if B) if - else
2 of3
C) nested if D) while
(04 Marks)
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
6 a. ii) Which of the following is not comparator operator in C?
A)< B)> c):
iii) What is the output if following loop is executed?
lbr (i
:
1; i
<
5; i++); printf ("VTU");
A) syntax error
C) VTUVTUVTUVTU
A)1
C) depends in size of array
B) VTU
D) VTUVTUVTUVTUVTU
B)0
D) not fixed and assigned at run-time.
10ccP13/23
D) !-
D) none ofthese
i+
',.i
ir) while (0)
{printf
("CCP")}, how many times this loop will execute?
A)0 B)1 C1 error D) infinite times
b. Write C program to find roots of quadratic equation. Consider all possible cases of roots.
(06 Marks)
c.
Write C program to evaluate tbllowing expression:
7 a. Choose the corect answers for the following :
i) The subscript of hrst item olan array in C is always
_.
(04 Marks)
(04 Marks)
2tt
answer - l+x*I-+I-.,
x
+........ using function. (06 Marks)
2t 3t. 4l
"
d.
Dilferentiate pre-test and post-test loops. Illustrate your answer with a suitable example.
ii) ln a rariable length string. the string ends with delimiter.
A) \n B) \o c) \I
iii) Which of the fbllowing is correct declaration of anay in C?
A) int marks
[3
+
a];
C) int marks
[2
2];
iv) ASCII stands for
B) float marks
[5.5];
D) int marks
[5];
A) American Standard Code for International Information
B) American Standard Company for International Integration
C)American Standard Code lor lnternational lntegration
D) American Standard Code for Information Interchange.
b.
8a.
Write C program to search an element from unsorted list using binary search. (12 Marks)
What is the difl'erence between a character and a string containing a single character?
B) accurate C) complete
Single sequential llow ofcontrol within a program is
A) thread B) instruction C) program D) none ofthese
POSIX stands for
A) Preliminary Operating System Integration for extended system--
B) Portable Operating System Interface for Unix
C) Preliminary Operating System lnte.Ace ior Un;* .-.
,,
, r
D)Por1ableoperatingSystemIntegrationforUnix.
ir)
A) Application Programming Interface B) Application
C) Application Processing Interface D)Application
Explain motivating lactors for parallelism.
,, ":
..
-r'
,
What are Open MP directives which help in synchronization o;f task? Explain.
ii;
l':$r'
* * * x )F
,F].
3of3
:'
Choose the correct answers for the following :
i) Parallel computing is
A) serial
execution of instructions.
(04 Marks)
(04 Marks)
D) sequential
Information
(06 Marks)
(04 Marks)
(06 Marks)
ii)
iiD
b.
c.
d.
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

You might also like