Order PDF of any content from our website with a little minor Fee to donate for hard work. Online MCQs are fully free but PDF books are paid. For details: contact whatsapp +923028700085 Important notes based PDF Books are available in very little price, starting from 500/-PKR; Order Now: contact whatsapp +923028700085

VU Past Papers CS201-Programming Concepts Most Repeated MCQs

Q#1: The string in the array is terminated by a
(A) zero
(B) nil
(C) null *
(D) one
Answer: (C) null

Q#2: We can define a matrix as ___ array.
(A) Sorted
(B) Unsorted
(C) Single dimensional
(D) Multi dimensional *
Answer: (D) Multi dimensional

Q#3: ___ character is used to indicate the end of the string.
(A) string
(B) New line *
(C) Blank space
(D) Null
Answer: (B) New line

Q#4: In call by reference, ___ of a variable is passed to the called function.
(A) Name
(B) Data type *
(C) Value
(D) Address
Answer: (D) Address

Q#5: A function’s prototype is written ___ the function call.
(A) After
(B) Before *
(C) With
(D) At the end of
Answer: (B) Before

Q#6: Characters of a string stored in an array can be accessed directly using array ___
(A) Manipulation *
(B) Superscript
(C) Postscript
(D) Subscript
Answer: (D) Subscript

Q#7: Null character is used to indicate the ___ of string.
(A) start
(B) end *
(C) begin
(D) middle
Answer: (B) end

Q#8: If an array has 50 elements, what is the allowable range of subscripts?
(A) 0 – 49

(B) 1 – 49
(C) 0 – 50
(D) 1 – 50
Answer: (A) 0 – 49

Q#9: Return type of a function that does not return any value must be ___
(A) char
(B) int
(C) void *
(D) double
Answer: (C) void

Q#10: What is the output of the following code if the 3rd case is true?

(A) mango
(B) mango any fruit *
(C) apple
(D) any fruit
Answer: (B) mango any fruit

Contents Copyrights Reserved By T4Tutorials