1) Designer of C++ programming language. a) Dennis Ritchie b) Brain Kernighan c) Charles Babbage d) Bjarne Stroustrup 2) A single line comment in C++ language source code can begin with _____ a) ; b) : c) /* d) // 3) What is the output of the following program? a) 5 b) Compile Error c) 6 d) Runtime error 4) What is the output of the following program? a) 4 b) 12 c) 8 d) Compile error 5) By default the members of the structure are a) Private b) Protected c) Public d) Access specifiers not applicable for structures. 6) What is the output of the following program? a) Compile error b) Runtime error c) 1 d) 2 7) Special symbol permitted with in the identifier name. a) $ b) @ c) . d) _ 8) The programs machine instructions are store in __ memory segment. a) Stack b) Data c) Heap d) Code 9) Pick up the valid declaration for overloading ++ in postfix form where T is the class name. a) T operator++(int); b) T operator++(); c) T& operator++(); d) T& operator++(int); 10) What is the output of the following program? a) Compile error b) 1 c) 0 d) 2

排行榜

视觉风格

选项

切换模板

恢复自动保存: