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
New operator is used to allocate memory from the free store during
Choose an answer
Compile Time
Run Time
Link Time
None of the given options
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
*.doc is _____________ by type.
Choose an answer
Sequential File
Random Access File
Data File
Record File
Previous
Skip
Next
Question # 4
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 # 5
"new" and "delete" keywords are _____________ in C++ language
Choose an answer
Built-in- Function
Operators
Memory Allocation Function
None of the given options
Previous
Skip
Next
Question # 6
What will be the correct syntax to access the value of fourth element of an array using pointer ptr?
Choose an answer
ptr[3]
(ptr+3)
*(ptr+3)
Both 1and 3
Previous
Skip
Next
Question # 7
Skill(s) that is/are needed by programmer’s _______________________.
Choose an answer
Paying attention to detail
Think about the reusability
Think about user interface
All of the given options
Previous
Skip
Next
Question # 8
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
Question # 9
Is used for ___________.
Choose an answer
calculation
reading
assigning value to variables
None of the given options.
Previous
Skip
Next
Question # 10
If we define an identifier with the statement #define PI 3.1415926 then during the execution of the program the value of PI __________.
Choose an answer
can not be replaced
None of the given options
Remain constant
can be changed by some operation
Previous
Skip
Next
Question # 11
If text is a pointer of class String then what is meant by the following statement? text = new String [5];
Choose an answer
Creates an array of 5 string objects statically
creates an array of 5 string objects dynamically
Creates an array of pointers to string
Creates a string Object
Previous
Skip
Next
Back