C Pfrogramming
C Pfrogramming
a.
An Editor
b.
A compiler
c.
An operating system
d.
None of these
Q57.
Which of the following is not an example of looping statement ?
a.
for
b.
do-while
c.
while
d.
switch
The _________ is a computer program that translates the source code into
corresponding object code
a.
Compiler
b.
Assembler
c.
COBOL
d.
Interpreter
.
An _______ is a fixed size sequence collection of elements of the same data
type
a.
integer
b.
function
c.
array
d.
pointer
1. for
2. while
3. switch
4. do while
1. Compiler
2. Computer
3. Compiler library
4. Users
1. String
2. char
3. Integer
4. Float
1. @
2. #
3. &
4. %
The programming language that has the ability to create new data types is called___.
1. Overloaded
2. Encapsulated
3. Reprehensible
4. Extensible
1. High-level Language
2. Low-level language
3. Middle-level language
4. None of the above
Which of the following refers to the wrapping of data and its functionality into a
single individual entity?
1. Modularity
2. Abstraction
3. Encapsulation
4. None of the above
1. Copy constructor
2. Destructor
3. Parameterized constructor
4. None of the above
A. Unary
B. Binary
C. Ternary
D. None of the above
A. for
B. if
C. do...while
D. while
A. structure
B. string
C. array
D. All of the above
A. int
B. union
C. char
D. All of these
A. Call by value
B. Call by reference
C. Call by pointer
D. All of these
Which is the correct syntax to declare a file pointer in C?
A. File *file_pointer;
B. FILE *file_pointer;
C. File file_pointer;
D. FILE *file_pointer;
What is stderr ?
F. A. standard error
B. standard error types
C. standard error streams
D. standard error definitions
G. A. data
B. function
C. data and functions
D. none
A. Polymorphism
B. Single Inheritance
C. Multilevel Inheritance
D. Message Passing
A. friend function
B. virtual function
C. operator overloading
D. function overloading
A. A constant.
B. A variable.
C. A structure.
D. A header file.
A. Run-time error
B. Compile time error
C. Logical error
D. All of the above.
An exception is caused by
A. a hardware problem
B. a problem in the operating system
C. a syntax error
D. a run-time error
A. Nested class
B. Inheritance
C. Containership
D. Encapsulation
What is the time complexity to print all N elements of any integer array
in C++?
(A) O(LogN)
(B) O(1)
(C) O(N)
(D) O(N longN)