MCQ Bank
The statement z=x+y shows
- A) The sum of X and Y be assigned to the variable Z
- B)
- C)
- D)
The Turing test result of program DOCTOR developed by Joseph Weizenbaum was:
- A) Ambiguous
- B)
- C)
- D)
A process which is used by the software industry to design, develop and test high quality software is known as:
- A) Software life cycle
- B)
- C)
- D)
Shortcut key to select the whole text in a document
- A) Ctrl+A
- B)
- C)
- D)
In the case of the incremental model these prototypes evolve into the complete, final system, a process known as ________.
- A) Evolutionary prototyping
- B)
- C)
- D)
Design ribbon can have:
- A) Page border
- B)
- C)
- D)
Design phase is followed by ________
- A) Implementation
- B)
- C)
- D)
The point at which all the steps in a transaction have been recorded in the log is called the ________.
- A) Commit point
- B)
- C)
- D)
Command that can immediately go to a page or any marked location within your document:
- A) Go to
- B)
- C)
- D)
Ctrl+y is used for:
- A) Redo
- B)
- C)
- D)
Name the function whose definition can be substituted at a place where its function call is made _________.
- A) friend function
- B) inline function
- C) volatile function
- D) static function
Which is not true regarding structures?
- A) d) Both b & c
- B) b) We can take the size of structure
- C) c) We can’t declare pointers to structure
- D) a) We can declare arrays of structure
We cannot declare a function as a friend of ________ classes
- A)
- B)
- C)
- D)
By writing aFile.seekg(15L, ios::cur) we are moving ______________.
- A) 15 bits in the backward direction starting from the current position
- B) 15 bytes in the forward direction starting from the current position
- C) 15 bits in the backward direction starting from the previous position
- D) 15 bytes in the backward direction starting from the current position
Automatic variable are created constantly and destroyed
- A)
- B)
- C)
- D)
Default constructor generated by ______________does ______________for us.
- A) main program, memory management
- B) compiler, no initialization
- C) classes , initialization
- D) compiler , initialization
________ are a conditional compilation process that is used to replace a piece of code by its definition in a program
- A)
- B)
- C)
- D)
The dynamic memory allocation uses ___________ whereas static memory allocation uses _________.
- A) classes , array
- B) array , stack
- C) stack , lists
- D) heap , stack
calloc() function allocates multiple blocks of memory and each block have ________ ?
- A)
- B)
- C)
- D)
What is the main purpose of the C preprocessor?
- A) Translate object code into machine code
- B) Execute the program
- C) Enhance the C language by preprocessing code before compilation
- D) Optimize the executable file