Interview Questions on C C++

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

Interview Questions on Structure in C++ : Total Questions (16)

You are here : Home » Interview Questions on Structure in C++


Question: 1

A. Yes

B. No

C. Compilation Error

D. Run






Question: 2

A. Structure which contains pointers

B. Structure which has pointer to itself

C. Structure which contains another structure

D. None of these






Question: 3

A. 4

B. 6

C. 8

D. 12






Question: 4

A. 4

B. 6

C. 8

D. 12






Question: 5

A. 4

B. 6

C. 8

D. 12






Question: 6

A. datas

B. members

C. objects

D. none of these






Question: 7

A. 128

B. 256

C. 1024

D. None of the above






Question: 8

A. Yes

B. No

C. Depends on Compiler






Question: 9

A. int

B. float

C. class

D. enum






Question: 10

A. Yes

B. No






Question: 11

A. Yes

B. No






Question: 12

A. TRUE

B. FALSE






Question: 13

A. TRUE

B. FALSE






Question: 14

A. a member

B. an array

C. a tag

D. None of these






Question: 15

A. employee[2] -> hourlyWage = 50.00;

B. employee2.hourlyWage = 7.50;

C. hourlyWage[2].employee = 29.75;

D. employee[2].hourlyWage = 75.00;






Question: 16

A. cout << student1.gpa;

B. cout << firstStudent.gpa;

C. cout << student[1].gpa;

D. cout << student1 ->gpa;







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