Beruflich Dokumente
Kultur Dokumente
(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
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
(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
(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
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?
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) 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 _________