C++ Programming Test By Kishor Raut - August 21, 2021 FacebookTwitterPinterestWhatsApp Welcome to your C++ Programming Test 1. The body of a C++ function is surrounded by _______ .A. Parentheses ()B. Angle bracketsC. Curly brackets {}D. Square brackets [] 2. Which of the following type casts will convert an Integer variable named 'amount' to a Double type?A. (Double)amountB. (Int to double)amountC. Int to double(amount)D. Int (amount) to double 3. The loosest type of coupling is _______ ?A. Data couplingB. Control couplingC. External couplingD. Pathological coupling 4. Which of the following is a string literal constant?A. "Visual C++"B. "137.45"C. "A"D. "2,365"E. All of above. 5. Which of the following, if any, are valid names for variables?A. ClassB. FriendC. #OnHandD. VoidE. variable 6. You have assigned the address of variable 'Value' to the pointer P, Which statement will display the value stored in 'Value'?A. cout << P;B. cout << *Value;C. cout << &P;D. cout << * 7. The void specifier is used if a function does not have return type.A. TrueB. False 8. You must specify void in parameters if a function does not have any arguments.A. TrueB. False 9. Type specifier is optional when declaring a function.A. TrueB. False 10. A pointer to a block of memory is effectively same as an array.A. TrueB. False 11 What is cfront?A. cfront is the front end of a C compilerB. cfront is the pre-processor of a C compilerC. cfront is a tool that translates a C++ code to its equivalent C codeD. None of the above 12. The following program fragment __________. #include using namespace std; int i = 10; int main() { int i = 20; { int i = 30; cout << i << ::i; } return 0; }A. prints 3010B. prints 3020C. will results in a runtime errorD. None of the above 13. Which of the following are procedural languages?A. PascalB. SmalltalkC. C++D. C 14. For the below defined function abc, Which of the following function calls is/are illegal? (Assume h,g are declared as integers). void abc(int x=0, int y=0) { cout << x<< y; }A. abc();B. abc(h);C. abc(h, h)D. None of the above 15. The following C++ code results in : #include "iostream" void main(void) { cout << (int i=5) << (int j=6); }A. Compilation errorB. Runtime errorC. Linktime errorD. None of the above Time is Up!