Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

Interview Questions on C++ 11 Features : (10) Questions

You are here : Home » Interview Questions on C++ 11 Features


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}

[Posted by: Admin | Location: Chicago, USA]



Question: 2

(A) Yes
(B) No

[Posted by: Admin | Location: 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

[Posted by: | Location: Chicago, USA]



Question: 4

(A) long
(B) long int
(C) longs long
(D) long long

[Posted by: | Location: Chicago, USA]



Question: 5

(A) final
(B) static
(C) stop
(D) friend

[Posted by: | Location: Chicago, USA]



Question: 6

(A) pragma
(B) override
(C) wchar_t
(D) mutable

[Posted by: Admin | Location: 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

[Posted by: Admin | Location: Chicago, USA]



Question: 8

(A) Yes
(B) No
(C) Depends on Compiler

[Posted by: Admin | Location: Chicago, USA]



Question: 9

(A) Yes
(B) No

[Posted by: Admin | Location: 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());

[Posted by: Admin | Location: Chicago, USA]