(A) allocate memory
(B) allocate memory
(C) create objects
(D) allocate static memory
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.
char name *+ = “Hello World” ; In the above statement, a memory of __ characters will be allocated.
(A) 13
(B) 12
(C) 11
(D) 10
If an array has 50 elements, what is allowable range of subscripts?
(A) 0 – 49
(B) 1 – 49
(C) 0 – 50
(D) 1 – 50
The function will return a reference to the global variable that exists throughout the program and thus there will be no danger of__.
(A) garbage collection
(B) dangling reference.
(C) wastage of memory
(D) system crash
C++ provides member functions, which control the formatting to be performed during stream I/O operations?
(A) True
(B) False
(C) Both
(D) None
Look at the statement given below int & a; and tell what will happen ?
(A) Compiler will compile successfully
(B) Compiler will show a warning to you
(C) Null value will be assigned to a
(D) Compiler will generate an error: ‘a’ declared as reference but not initialized
The stream insertion and extraction operators are not already overloaded for __.
(A) Built-in data types
(B) User-defined data types
(C) Both built-in and user-defined types
(D) None of the given options
Constructor is itself a __ of C++ and __.
(A) class , can be overloaded
(B) function , cannot be overloaded
(C) function, can be overloaded
(D) object, can not be initialized