(A) Arithmetic
(B) Logical
(C) Relational
(D) Conational
Category: Introduction to Programming Mcqs
Introduction to Programming Mcqs for Screening tests, Interviews, Viva and Other competitive exams. Programming Mcqs section will help users to prepare mcqs of programming languages for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their computer programming portion from here.
__ Keyword is used to return some value from a function.
(A) break
(B) return
(C) continue
(D) goto
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
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