Get the FREE certificate on C, C++, Java, Python, Perl, PHP, SQL, Linux, Javascript!  

  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux

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

You are here : Home » Interview Questions and Answer on Functions in C++


Question: 1

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

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



Question: 2

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

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



Question: 3

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

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



Question: 4

(A) Yes
(B) No

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

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



Question: 6

(A) Yes
(B) No

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

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

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



Question: 9

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

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



Question: 10

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

Practitioner function[Posted by: Andrew| Location: New Jersey]



Compile C++ code here  |  Upload your Questions

C++ Objective Questions By Different Categories:-
Loops | Conditional | Functions | Operators | Structure | Enum | Storage Classes | Union | FileHandling | Data Types | Inheritance | Pointers | Classes & Objects | Vtable | Type Casting | New & Delete | Namespaces | Reference Variables | Static Cast | Dynamic Cast | Reinterpret Cast | Const Cast | Virtual Functions | Abstract Class | STL | Singleton Class | C++ 11 | C++ 14 | C++ 17 | C++ 20 | gcc/g++ | others

Switch to C Questions