July 7, 2021 in C and CPP
Which of the following loop cause the execution of the code at least once?
1.9 Which of the following loop cause the execution of the code at least once?
A) While
B) Do…While
C) While…. Do
D) For
July 7, 2021 in C and CPP
1.9 Which of the following loop cause the execution of the code at least once?
A) While
B) Do…While
C) While…. Do
D) For
July 7, 2021 in C and CPP
1.8 Which of the following is a method which belong to a string class?
A) Equals ( )
B) Compare ( )
C) Length ( )
D) Substring ( )
July 7, 2021 in C and CPP
1.7 Find out the function which describes special task to an operator
A) operate
B) operand
C) operator
D) opfun
July 7, 2021 in C and CPP
1.6 A process of a class can contain object of another class is called
A) Nesting
B) Friend
C) Data Abstraction
D) Encapsulation
July 7, 2021 in C and CPP
1.5 Operator overloading is called
A) Runtime polymorphism
B) Compile time polymorphism
C) Complex overloading
D) Abstract overloading
July 7, 2021 in C and CPP
1.4 Which of the following is not a visibility modifier?
A) private
B) public
C) Char
D) Protected
July 7, 2021 in C and CPP
1.3 Which of the following operator can’t be overloaded?
A) new
B) delete
C) +
D) ?:
July 7, 2021 in C and CPP
1.2 Which of the following contains overloaded insertion operator?
A) iostream
B) ostream
C) fstream
D) bufferstream
July 7, 2021 in C and CPP
1.1 Which of the following cannot be passed to a function?
A) Reference variables
B) Objects
C) Header files
D) Array
July 7, 2021 in C and CPP
c) Write a program to copy a file into another file.