Interview Questions on C++ 11 Features : (10)
Question: 1
(A) [capture](parameters)->return-type {body}
(B) [parameters](capture)->return-type {body}
(C) [capture][parameters]->return-type {body}
(D) (capture)(parameters)->return-type {body}
Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]
Question: 2
(A) Yes
(B) No
Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]
Question: 3
(A) Checking the Grammar
(B) Finding the type of names and expressions
(C) Making up tokens from characters
(D) None of these
Compiler
Level: Beginner Category: cpp11
[Posted by: | Chicago, USA]
Question: 4
(A) long
(B) long int
(C) longs long
(D) long long
Compiler
Level: Beginner Category: cpp11
[Posted by: | Chicago, USA]
Question: 5
(A) final
(B) static
(C) stop
(D) friend
Compiler
Level: Beginner Category: cpp11
[Posted by: | Chicago, USA]
Question: 6
(A) pragma
(B) override
(C) wchar_t
(D) mutable
Compiler
Level: Practitioner Category: cpp11
[Posted by: Admin | Chicago, USA]
Question: 7
(A) g++ -std=c++-11 -o output.out source.cpp
(B) g++ -std=c++11 -o output.out source.cpp
(C) g++ -std=c++ 11 -o output.out source.cpp
(D) g++ -std=cpp11 -o output.out source.cpp
Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]
Question: 8
(A) Yes
(B) No
(C) Depends on Compiler
Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]
Question: 9
(A) Yes
(B) No
Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]
Question: 10
(A) std::thread threadObj(thread_function);
(B) std::thread threadObj(&thread_function);
(C) std::thread threadObj((void *)thread_function);
(D) std::thread threadObj(thread_function());
Compiler
Level: Expert Category: cpp11
[Posted by: Admin | Chicago, USA]
C++ Online Test
Compile C++ code here
Browse C++ Categories
Loops Conditional Functions Operators Structure Enum Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Virtual Functions Abstract Class STL Singleton Class Exceptions C++11 C++17 C++20 Time & Space Complexity othersSwitch to C Questions