Home | | Computer Science 11th std | Choose the correct answer

Introduction to C PlusPlus | Computer Science - Choose the correct answer | 11th Computer Science : Chapter 9 : Introduction to C PlusPlus

Chapter: 11th Computer Science : Chapter 9 : Introduction to C PlusPlus

Choose the correct answer

Data Types, Variables and Expressions - Multiple choice questions with answers / choose the correct answer with answers - Computer Science Book back 1 mark questions and answers

Introduction to C++

Evaluation

PART – I

 

Choose the correct answer.

 

1. Who developed C++?

(a) Charles Babbage

(b) Bjarne Stroustrup

(c) Bill Gates

(d) Sundar Pichai

 

2. What was the original name given to C++?

(a) CPP

(b) Advanced C

(c) C with Classes

(d) Class with C

 

3. Who coined C++?

(a) Rick Mascitti

(b) Rick Bjarne

(c) Bill Gates

(d) Dennis Ritchie

 

4. The smallest individual unit in a program is:

(a) Program

(b) Algorithm

(c) Flowchart

(d) Tokens

 

5. Which of the following operator is extraction operator of C++?

(a) >>

(b) <<

(c) <>

(d) ^^

 

6. Which of the following statements is not true?

(a) Keywords are the reserved words convey specific meaning to the C++ compiler.

(b) Reserved words or keywords can be used as an identifier name.

(c) An integer constant must have at least one digit without a decimal point.

(d) Exponent form of real constants consists of two parts

 

7. Which of the following is a valid string literal?

(a) ‘A’

(b) ‘Welcome’

(c) 1232

(d) “1232”

 

8. A program written in high level language is called as

(a) Object code

(b) Source code

(c) Executable code

(d) All the above

 

9. Assume a=5, b=6; what will be result of a&b?

(a) 4

(b) 5

(c) 1

(d) 0

 

10. Which of the following is called as compile time operators?

(a) sizeof

(b) pointer

(c) virtual

(d) this

 

Data Types, Variables and Expressions

 

1. How many categories of data types available in C++?

(a) 5

(b) 4

(c) 3

(d) 2

 

2. Which of the following data types is not a fundamental type?

(a) signed

(b) int

(c) float

(d) char

 

3. What will be the result of following statement?

char ch= ‘B’;

cout << (int) ch;

(a) B

(b) b

(c) 65

(d) 66

 

4. Which of the character is used as suffix to indicate a floating point value?

(a) F

(b) C

(c) L

(d) D

 

5. How many bytes of memory allocates for the following variable declaration if you are using Dev C++? short int x;

(a) 2

(b) 4

(c) 6

(d) 8

 

6. What is the output of the following snippet?

char ch = ‘A’;

ch = ch + 1;

(a) B

(b) A1

(c) F

(d) 1A

 

7. Which of the following is not a data type modifier?

(a) signed

(b) int

(c) long

(d) short

 

8. Which of the following operator returns the size of the data type?

(a) sizeof( )

(b) int ( )

(c) long ( )

(d) double ( )

 

9. Which operator to be used to access reference of a variable?

(a) $

(b) #

(c) &

(d) !

 

10. This can be used as alternate to endl command:

(a) \t

(b) \b

(c) \0

(d) \n

 

Tags : Introduction to C PlusPlus | Computer Science , 11th Computer Science : Chapter 9 : Introduction to C PlusPlus
Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
11th Computer Science : Chapter 9 : Introduction to C PlusPlus : Choose the correct answer | Introduction to C PlusPlus | Computer Science


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.