Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » C++ » Interview Questions and Answer on Functions in C++

Interview Questions and Answer on Functions in C++ : (10)


Question: 1

(A) 5020--5020--
(B) 5020--7012020--12020--
(C) 5020--70120200--5020
(D) 5020--7050200--5020--

Compiler Forum
Practitioner function[Posted by: Admin | Chicago, USA]



Question: 2

(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error

Compiler Forum
Beginner function[Posted by: Admin | Chicago, USA]



Question: 3

(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error

Compiler Forum
Beginner function[Posted by: Admin | Chicago, USA]



Question: 4

(A) Yes
(B) No

Compiler Forum
Beginner function[Posted by: Admin | Chicago, USA]



Question: 5

(A) It is not possible
(B) It is possible only with C code
(C) By using extern "C" keyword
(D) By Converting C++ code to C

Compiler Forum
Practitioner function[Posted by: Admin | Chicago, USA]



Question: 6

(A) Yes
(B) No

Compiler Forum
Expert function[Posted by: Admin | Chicago, USA]



Question: 7

(A) char *intStr = itoa(a); string str = string(intStr);
(B) std::string s = std::to_string(42);
(C) char stringNum[20]; int num=100; sprintf(stringNum,"%d",num);
(D) None of the above

Compiler Forum
Expert function[Posted by: Admin | Chicago, USA]



Question: 8

(A) Arguments are placed in registers
(B) Arguments are placed in stack
(C) Arguments are placed in Heap
(D) None of the above

Compiler Forum
Expert function[Posted by: Admin | Chicago, USA]



Question: 9

(A) cdecl
(B) syscall
(C) pascal
(D) register

Compiler Forum
Expert function[Posted by: Admin | Chicago, USA]



Question: 10

(A) Static function
(B) constructor
(C) destructor
(D) friend

Compiler Forum
Practitioner function[Posted by: Andrew | New Jersey]



Compile C++ code here Upload your Questions

Browse C++ Categories

Loops Conditional Functions Operators Structure Enum FileHandling Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Reference Variables Virtual Functions Abstract Class STL Singleton Class Exceptions C++ 11 C++ 14 C++ 17 gcc/g++ others

Switch to C Questions