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 is the sequence of event(s) when deallocating memory using delete operator?
Choose an answer
Only block of memory is deallocated for objects
Only destructor is called for objects
Memory is deallocated first before calling destructor
Destructor is called first before deallocating memory
Previous
Skip
Next
Question # 2
A pointer variable can be,
Choose an answer
Decremented
Incremented
Multiplied
Both Iecremented and Decremented
Previous
Skip
Next
Question # 3
For which array, the size of the array should be one more than the number of elements in an array?
Choose an answer
int
double
float
char
Previous
Skip
Next
Question # 4
UNIX has been developed in ________ language
Choose an answer
JAVA
B
C
FORTRAN
Previous
Skip
Next
Question # 5
When we define an array of objects then
Choose an answer
Destructor will call once for whole array
Destructor will call for each object of the array
Destructor will never call
Depends on the size of array
Previous
Skip
Next
Question # 6
Which of the following function do NOT initialize the chunk of memory to all zero?
Choose an answer
calloc() function
Both malloc() and calloc()
None of the above
malloc() function
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
When we use manipulators in our program then which header file should be included?
Choose an answer
iostream.h
stdlib.h
stdio.h
iomanip.h
Previous
Skip
Next
Question # 9
Unary operator implemented as member function takes ____ arguments whereas non-member function takes _____ arguments.
Choose an answer
One, zero
Zero, one
One, two
Two, one
Previous
Skip
Next
Question # 10
_______ is used to trace the logic of the program and correct the logical errors.
Choose an answer
Compiler
Editor
Linker
Debugger
Previous
Skip
Next
Question # 11
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
Back