CS201 MID TERM SOLVED MCQs || PAST PAPERS || GROUP-2 || INTRODUCTION TO
PROGRAMMING || VuTech
Visit Website For More Solutions www.vutechofficial.blogspot.com
CS201
Introduction to Programming
Solved Mid Term Past Papers
______________________________
MCQs
______________________________
Question No: 1
Call by reference mechanism should be used in a program when there is
_______ .
i) large amount of data to be passed
ii) small amount of data to be passed
iii) need to change the passed data
iv) no need to change the passed data
Choose the appropriate option for the above case.
a) (i) and (ii) only
b) (i) and (iii) only
c) (ii) and (iii) only
d) (ii) and (iv) only
Correct Answer:
The correct answer is 'b'.
Question No: 2
Which of the following is the starting index of an array in C++?
a) 0
b) 1
c) -1
d) any number
Correct Answer:
The correct answer is 'a'.
Question No: 3
The return type of a function that do not return any value must be _______
.
a) int
b) void
c) double
d) float
Correct Answer:
The correct answer is 'b'.
Visit Website For More Solutions www.vutechofficial.blogspot.com
Question No: 4
Which of the following is an extension of header file?
a) .exe
b) .txt
c) .h
d) .c
Correct Answer:
The correct answer is 'c'.
Question No: 5
We want to access array in random order which approach is better?
a) Pointers
b) Array Index
c) Both pointers and array index are better
d) None of the given options
Correct Answer:
The correct answer is 'c'.
Visit Website For More Solutions www.vutechofficial.blogspot.com
Question No: 6
When we declare a multidimensional array the compiler store the elements of
multidimensional array in the form of ________ .
a) Columns
b) Rows
c) Contiguous memory location
d) Matrix
Correct Answer:
The correct answer is 'c'.
Question No: 7
How many bytes will the pointer intPtr of type int move in the following
statement?
intPtr += 3 ;
a) 3 Bytes
b) 6 Bytes
c) 12 Bytes
d) 24 Bytes
Correct Answer:
The correct answer is 'c'.
Question No: 8
If there are 2(n+1) elements in an array then what would be the number of
iterations required to search a number using binary search algorithm?
a) n elements
b) (n+1) elements
c) 2(n+1) elements
d) 2(n+1) elements
Correct Answer:
The correct answer is 'b'.
Visit Website For More Solutions www.vutechofficial.blogspot.com
Question No: 9
Which of the following operator is used to access the value of variable
pointed to by a pointer?
a) * operator
b) -> Operator
c) && Operator
d) & Operator
Correct Answer:
The correct answer is 'a'.
Question No: 10
The _________ statement interrupts
the flow of control.
a) Switch
b) Continue
c) Goto
d) Break
Correct Answer:
The correct answer is 'd'.
Visit Website For More Solutions www.vutechofficial.blogspot.com
VIDEO