More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
CS-201 Final Term Exams Preparation Virtual University MCQs With Answers
Question # 1
The first parameter of operator function for << operator,
Choose an answer
Must be passed by value
Must be passed by reference
Can be passed by value or reference
Must be object of class
Previous
Skip
Next
Question # 2
New operator allocates memory from free store and return.
Choose an answer
A pointer
A reference
An integer
A float
Previous
Skip
Next
Question # 3
What will be the correct syntax to declare two-dimensional array of float data type?
Choose an answer
float arr{2}{2} ;
float arr[2][2] ;
float arr[2,2] ;
float[2][2] arr ;
Previous
Skip
Next
Question # 4
NULL value has been defined in ______ and _________ header files.
Choose an answer
strings.h and iostream.h
ctype.h and conio.c
conio.c and conio.h
stdlib.h and stddef.h
Previous
Skip
Next
Question # 5
Is used for ___________.
Choose an answer
calculation
reading
assigning value to variables
None of the given options.
Previous
Skip
Next
Question # 6
A Pointer is a special variable that contain.
Choose an answer
Data values
Memory Address
Both data and values
None of the given option
Previous
Skip
Next
Question # 7
Consider the following code segment. What will be the output of the following program? int func(int) ; int num = 10 ; int main(){ int num ; num = 5 ; cout << num ; cout << func(num) ; } int func(int x){ return num ; }
Choose an answer
5, 5
10, 5
5, 10
10, 10
Previous
Skip
Next
Question # 8
When an array is passed to a function then default way of passing this array is
Choose an answer
By data
By reference
By value
By data type
Previous
Skip
Next
Question # 9
The statement cin.get (); is used to,
Choose an answer
Read a string from keyboard
Read a character from keyboard
Read a string from file
Read a character from file
Previous
Skip
Next
Question # 10
Structure is a collection of ______________ under a single name.
Choose an answer
Only Functions
Only Variables
Both Functions and Variables
None of the given options
Previous
Skip
Next
Question # 11
All preprocessor directives are started with the symbol______.
Choose an answer
*
+
@
#
Previous
Skip
Next
Back