Sie sind auf Seite 1von 2

Qn 1: (813412345678)9 = (_______________)13

Qn 2: Which of the following is NOT a computer characteristic?

(a) Speed (b) Diligence (c) Artificial brain (d) Accuracy (e) None of these

Qn 3: Which type of loop can be used if the number of iterations is not known beforehand?

(a) for (b) while (c) do while (d) All of these (e) None of these

Qn 4: For a random list of numbers having 1024 elements, how many comparisons on average are
required to search an element using linear search

(a) 1024 (b) 512 (c) 256 (d) 128

Qn 5: A function is called with two integers as parameters; called by value at one instance and called
by reference at another instance; yield same results on the variables in the calling function
(a) True (b) False (c) Sometimes (d)None of these

Qn 6: If first element of an array A of size 10 has address (4F23) 16, then the address of A[8] is ______

Qn 7: In a recursive function, is it necessary to call itself multiple times from within the same
function?
(a) True (b) False (c) May be (d) None of these

Qn 8: Given the following characteristics of header files in C programming language


A - Header files are installed in computer during installation
B - User can add his own header files after installation
C - User cannot add his own header files after installation
Which of the following is correct?
(a) A and B
(b) A and C
(c) B and C
(d) A, B and C

Qn 9: Argument and Parameter in a function are:

(a) Same (b) Different (c) Sometimes Same (d) Sometimes Different (e) I don’t know

Qn 10: Maximum value that can be stored in a short int when using 32-bit compiler is _________
Qn 1: (243452345712)9 = (_______________)13

Qn 2: Which of the following is a computer characteristic?

(a) Common Sense (b) Can take decisions itself (c) Artificial brain (d) Diligence

Qn 3: Which type of loop can be used if the number of iterations is known beforehand?

(b) for (b) while (c) do while (d) All of these (e) None of these

Qn 4: For a sorted list of numbers having 1024 elements, how many comparisons on average are
required to search an element using binary search

(b) 1024 (b) 512 (c) 10 (d) None of these

Qn 5: A function is called with two parameters in the calling function; which is called by value at one
instance and call by reference at another instance; call by reference uses the original parameters in
the calling function?

(b) True (b) False (c) Sometimes (d) None of these

Qn 6: If first element of an array A of size 10 has address (4B23) 16, then the address of A[6] is
__________

Qn 7: In a recursive function, A() calls B() and B() calles (A); will it be called recursion or not?

(b) Yes (b) No (c) Don’t know (d) None of these

Qn 8: Given the following characteristics of header files in C programming language


A - Header files are NOT installed in computer during installation
B - User can NOT add his own header files after installation
C - User can add his own header files after installation
Which of the following is correct?
(e) A and B
(f) A and C
(g) Only C
(h) None of A,B and C

Qn 9: Function Prototype and Declaration are:

(b) Same (b) Different (c) Sometimes Same (d) Sometimes Different (e) I don’t know

Qn 10: Maximum value that can be stored in a long int when using 32-bit compiler is _________

Das könnte Ihnen auch gefallen