C++ Interview Questions and Answers - Types

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

C++ Interview Questions and Answers - Types

http://www.sanfoundry.com/c-plus-plus-interview-questions-answers-t...

Home

About

Courses Calender & Fees


1000 C++ MCQs 1000 Linux MCQs

Testimonials
1000 SAN MCQs

Internship

Contact

Miscellenous
Best Books

1000 C MCQs

1000 C Programs

Sanfoundry
Like 26,466 people like Sanfoundry.

Facebook social plugin

We're on

+114

Testimonials
The presentation was really Advanced excellent. Alan Wipro Technologies It was course, a a wonderful thorough C good. was

study through the bits and pieces of Storage

1 of 7

7/8/2013 2:39 PM

C++ Interview Questions and Answers - Types

http://www.sanfoundry.com/c-plus-plus-interview-questions-answers-t...

C++ Programming Questions and Answers Types


This section on C++ interview questions and answers focuses on Types. One shall practice these interview questions to improve their C++ programming skills needed for various interviews (campus interviews, walkin interviews, company interviews), placements, entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering graduate or an experienced IT professional. Our C++ interview questions come with detailed explanation of the answers which helps in better understanding of C++ concepts. Here is a listing of C++ interview questions on Types along with answers, explanations and/or solutions: 1. What is the size of wchar_t in C++? a) 2 b) 4 c) 2 or 4 d) based on the number of bits in the system View Answer Answer:d Explanation:Compiler wants to make CPU as more efficient in accessing the next value. 2. Pick the odd one out a) array type b) character type c) boolean type d) integer type View Answer Answer:a Explanation:array type is not the basic type and it is constructed using the basic type. 3. which datatype is used to represent the absence of paramaters? a) int b) short c) void d) float View Answer Answer:c Explanation:void will not return anything. 4. What does a escape code represent? a) alert

Devices and the other advancements in the SAN technology which was very informative for me. Well prepared slides, thoughts practical and fully

interactive class. Milind - Microsoft The way of teaching is excellent. have systems programming. Javeed - TCS The training I got was very helpful. The most important thing, which i liked the most is way of training based on "Show me the code". It has made in my Unix knowledge knowledge Now in we good linux very

deeper and cleared the doubts I had and also made me to do lots of coding in very exciting ways during sessions. Thanks a million Bhojasia. Harsh Wipro Technologies The SAN training was excellent. hands on conceptually learning excellent. Manish!! Amit - Ericsson India Best Training class I ever had on Linux. Swati - Aricent curve Good and I was to Manish

understood a lot, the Thanks

2 of 7

7/8/2013 2:39 PM

C++ Interview Questions and Answers - Types

http://www.sanfoundry.com/c-plus-plus-interview-questions-answers-t...

b) backslash c) tab d) form feed View Answer Answer:a Explanation:Because a is used to produce a beep sound. 5. Which type is best suited to represent the logical values? a) integer b) boolean c) character d) all of the mentioned View Answer Answer:b Explanation:Logical values can be either true or false, so the boolean type is suited for it. 6. Identify the user-defined types from the following? a) enumeration b) classes c) both a and b d) int View Answer Answer:c Explanation:They must be defined by the users before use unlike the other types which are readily available.

Thank providing on Driver

you such

for an

awesome experience Linux Device Programming.

The real beauty in this training that I could witness practical was its exposures

and explanations on the same in a neat way. Roshan Oracle/Sun Lab sessions for SAN on Ubuntu was very useful. Ajit - Ericsson India Read Complete Testimonials here

We're on
7. Which of the following statements are true? int f(float) a) f is a function taking an argument of type int and retruning a floating point number b) f is a function taking an argument of type float and returning a integer. c) f is a function of type float d) none of the mentioned View Answer
Follow @sanfoundry

+114

Subscribe to Sanfoundry

Answer:b Explanation:The argument that is passed to a function f is of float type and the function finally retruns a value that id is of integer type. Join LinkedIn Group for 8. The value 132.54 can represented using which data type? a) double b) void c) int d) bool View Answer Answer:a Explanation:The given value is with decimal points, so float or double SAN and Kernel Training & Jobs

3 of 7

7/8/2013 2:39 PM

C++ Interview Questions and Answers - Types

http://www.sanfoundry.com/c-plus-plus-interview-questions-answers-t...

can be used. 9. When a language has the capability to produce new data type mean, it can be called as a) overloaded b) extensible c) encapsulated d) reprehensible View Answer
Sanfoundry

Answer:b Explanation:Extensible is used to add new features to C++.

Like 26,466 people like Sanfoundry.

10. Pick the odd one out. a) integer, character, boolean, floating b) enumeration, classes c) integer, enum, void d) arrays, pointer, classes View Answer Answer:c Explanation:Option a consists of all fundamental types, option b consists of user-definied types and option d consists of derived types but option c is a mixture. Sanfoundry Global Education & Learning Series C++ Programming Language. To practice all features of C++ programming language, here is complete set on 1000+ Multiple Choice Questions and Answers on C++. If you liked this C++ MCQ, kindly share, recommend or like below!
Like 2 Tweet Share 0 3 Like Send 26,466 people like this. to see what your friends like.
Facebook social plugin

Manish Bhojasia, a technology veteran with 17+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer and SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage

4 of 7

7/8/2013 2:39 PM

C++ Interview Questions and Answers - Types

http://www.sanfoundry.com/c-plus-plus-interview-questions-answers-t...

& Cluster Administration, Advanced C

Manish Bhojasia on Programming, SAN Storage Technologies,


SCSI Internals and Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him below.
Twitter | Facebook | LinkedIn | Google+

Sanfoundry on

Sanfoundry
Like 26,466 people like Sanfoundry.

Facebook social plugin

Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel & Device Driver Programming. Our Founder has trained employees of almost all Top Companies in India. Here are few of them: VMware, Citrix, Oracle, Motorola, Ericsson, Aricent, HP, Intuit, Microsoft, Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium Networks, ST Microelectronics, Samsung, LG-Soft, Wipro, TCS, HCL, IBM, Accenture, HSBC, Northwest Bank, Mphasis, Tata Elxsi, Tata Communications, Mindtree, Cognizant, mid size IT companies and many Startups. Students from top Universities and colleges such as NIT Trichy, BITS Pilani, University of California, Irvine, University of Texas, Austin & PESIT Bangalore have benefited a lot from these courses as well. The assignments and real time projects for our courses are of extremely high quality with excellent learning curve. Register for Expert Level Training Classes by our Founder & CTO. Alternatively, call us for your Corporate Training or College Training needs.

Subscribe Newsletter & Posts

5 of 7

7/8/2013 2:39 PM

C++ Interview Questions and Answers - Types

http://www.sanfoundry.com/c-plus-plus-interview-questions-answers-t...

Name

*
Email Address

Related posts:

6 of 7

7/8/2013 2:39 PM

C++ Interview Questions and Answers - Types

http://www.sanfoundry.com/c-plus-plus-interview-questions-answers-t...

1. C++ Programming Questions and Answers User Defined Types 2. C++ Programming Questions and Answers Integer Types 3. C++ Programming Questions and Answers Floating Point Types 4. C++ Programming Questions and Answers Character Types
C++ Programming Questions and Answers Booleans C++ Programming Questions and Answers Pointer to Function
Posted in C++ MCQs

TOS

License

Technology Groups

Interns

Jobs

2013 Sanfoundry

Responsive Theme powered by WordPress

7 of 7

7/8/2013 2:39 PM

You might also like