(A) break
(B) return
(C) continue
(D) goto
Tag: Digital Logic Design Mcqs
Deleting an array of objects without specifying [] brackets may lead to memory leak?
(A) True
(B) False
(C) Both
(D) None
What is the sequence of event(s) when allocating memory using new operator?
(A) Only block of memory is allocated for objects
(B) Only constructor is called for objects
(C) Memory is allocated first before calling constructor
(D) Constructor is called first before allocating memory
What is the functionality of the following statement? String str[5] = ,String(“Programming”), String(“CS201”)-;?
(A) Default constructor will call for all objects of array
(B) Parameterized constructor will call for all objects of array
(C) Parameterized constructor will call for first 2 objects and default constructor for remaining objects
(D) Default constructor will call for first 3 objects and Parameterized constructor for remaining objects
The keyword that is used that the variable can not change state?
(A) static
(B) const
(C) friend
(D) private
When x = 7; then the expression x%= 2; will calculate the value of x as,?
(A) 1
(B) 3
(C) 7
(D) 2
A pointer variable can be,?
(A) Decremented only
(B) Incremented only
(C) Multiplied only
(D) Both 1 and 2
set precision is a parameter less manipulator.
(A) True
(B) False
(C) Both
(D) None