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
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 # 2
Memory allocated at run time is a system resource and it is the responsibility of _____ to de-allocate the memory.
Choose an answer
System
Programmer
User of program
None of given options
Previous
Skip
Next
Question # 3
The endl and flush are _______
Choose an answer
Functions
Operators
Manipulators
Objects
Previous
Skip
Next
Question # 4
Friend functions are _____ of a class
Choose an answer
Member functions
Public member functions
Private member functions
Non-member functions
Previous
Skip
Next
Question # 5
If there is a symbol (& sign) used with the variable name followed by data type then it refers to _____ and if & is being used with variable name then it refers to _____.
Choose an answer
Address of variable, reference variable
Reference variable, value of variable
Reference variable, address of variable
Address of variable, value of variable
Previous
Skip
Next
Question # 6
What will be the correct syntax to assign an array named arr of 5 elements to a pointer ptr?
Choose an answer
*ptr = arr ;
ptr = arr ;
*ptr = arr[5] ;
ptr = arr[5] ;
Previous
Skip
Next
Question # 7
*.doc is _____________ by type.
Choose an answer
Sequential File
Random Access File
Data File
Record File
Previous
Skip
Next
Question # 8
What will be the value of ‘a’ and ‘b’ after executing the following statements?A = 3; b = a++;
Choose an answer
3, 4
4, 4
3, 3
4, 3
Previous
Skip
Next
Question # 9
UNIX has been developed in ________ language
Choose an answer
JAVA
B
C
FORTRAN
Previous
Skip
Next
Question # 10
Friend function of a class is ______________
Choose an answer
Member function
Non-member function
Private function
Public function
Previous
Skip
Next
Question # 11
Overloaded new operator function takes parameter of type size_t and returns
Choose an answer
void (nothing)
void pointer
object pointer
int pointer
Previous
Skip
Next
Back