Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

18051.

Expand IDE and GNU.

Answer»

IDE stands for Integrated Development Environment and GNU stands for General Public License.

18052.

Match the following1. Steam extractioni. Type promotion2. Streamii. Type casting3. Automatic conversioniii. get from4. Explicit conversioniv. put to(a) 1 – (i) 2 – (ii) 3 – (iii) 4 – (iv) (b) 1 – (ii) 2 – (iv) 3 – (i) 4 – (iii) (c) 1 – (i) 2 – (iii) 3 – (ii) 4 – (iv) (d) 1 – (i) 2 – (ii) 3 – (iv) 4 – (iii)

Answer»

(d) 1 – (i) 2 – (ii) 3 – (iv) 4 – (iii)

18053.

Using a dictionary, find out the synonyms and the antonyms of the words given below. One has been done for you.WordParts of speechSynonymAntonymHardAdjective..................FloodNoun..................InterruptVerb..................ScaredAdjective..................IrritationNoun..................OrganizeVerb..................SeriousAdjective..................SnappyAdjective..................EmergencyNoun..................RescueVerb..................

Answer»
WordParts of speechSynonymAntonym
HardAdjectiveDifficultEasy
FloodNounoutpouring, overflowtrickle
InterruptVerbbreak upabstain
ScaredAdjectivefrightenedConfident, bold
IrritationNounannoyance, vexationCalm, delight
OrganizeVerbsystemizedisorganize
SeriousAdjectivesignificant, graveunimportant, playful
SnappyAdjectiveirritablePleasant
EmergencyNouncrisis, urgencyclam, normalcy
RescueVerbliberate, savedanger, peril

18054.

Line printers can print how many lines per minute? (a) 1500 (b) 1520 (c) 1000 (d) 1020

Answer»

Line printers can print 1000 lines per minute

18055.

Line printers are capable of printing much ……………………… lines per minute.(a) more than 500 (b) more than 800 (c) more than 100 (d) more than 1000

Answer»

(d) more than 1000

18056.

The speed of inkjet printers generally range from ………(a) 1 – 20 PPM(b) 1 – 22 PPM(c) 10 – 20 PPM(d) 11 – 20 PPM

Answer»

(a) 1 – 20 PPM

18057.

IDE stands for ………..(a) Integrated Development Environment(b) International Development Environment(c) Integrated Digital Environment(d) None of the above

Answer»

(a) Integrated Development Environment

18058.

The printing speed of Impact printers varies from ………(a) 40 to 1540 CPS(b) 50 to 150 CPS(c) 90 to 1500 CPS(d) 30 to 1550 CPS

Answer»

(d) 30 to 1550 CPS

18059.

In programming language ….. are referred as variables and the values are referred to as data.(a) constant(b) integer(c) fields(d) files

Answer»

In programming language fields are referred as variables and the values are referred to as data.

18060.

What is the function of the bitwise operator?

Answer»

Bit manipulation operators manipulate individual bits within a variable. Bitwise operators modify variables considering the bit patterns that represent the values they store.

18061.

Explain shorthand operators with an example.

Answer»

In C++ shorthand operators mean writing certain type of assignment statements in a simplified manner.

For example, if x = 5 and x + = 10 means x = x +10 i.e., x = 5 + 10 = 15.

18062.

Who is the creator of the C++ programming language?

Answer»

The creator of C++ is Bjarne Stroustrup.

18063.

Mention different bitwise operators.

Answer»
OperatorDescription
&Bitwise AND
|Bitwise Inclusive OR
^Bitwise Exclusive OR
~Unary complement (bit inversion)
<<Shift Left
>>Shift Right
18064.

Mention any two special operators and their meaning.

Answer»

Sizeof() – it returns the size of a variable.

. (dot) – member operator used to reference member of a structure.

18065.

The smallest individual unit in a program is:(a) Program(b) Algorithm(c) Flowchart(d) Tokens

Answer»

The smallest individual unit in a program is Tokens

18066.

What is meant by a character set? Give an example.

Answer»

Character set is a set of valid characters that a language can recognize.

  • Letters A – Z, a – z
  • Digits 0 – 9
  • Special Characters + – * / ˆ \ () [] {} = != <> ‘ “ $ , ; : % ! & ? _ # = @
18067.

What was the earlier name of C++?

Answer»

The earlier name of C++ was ‘C with classes’.

18068.

The smallest individual unit in a program is known as ……..(a) token(b) lexical unit c) lexical element(d) all the above

Answer»

(d) all the above

18069.

What are the different tokens available in C++?

Answer»

A token is a group of characters that logically belong together. C++ uses the following types of tokens. Keywords, Identifiers, Literals, Punctuators, and Operators.

18070.

Mention a few tokens.

Answer»

A few tokens are keywords, identifiers, constants, strings, and operators.

18071.

Is C++ case sensitive? What is meant by the term “case sensitive”?

Answer»

C++ is a case sensitive programming language so, all the keywords must be in lowercase. Case sensitive means that the uppercase and lowercase letters are considered differently.

18072.

Name any two characteristics of C++.

Answer»

Object-oriented programming and portability are two characteristics of C++.

18073.

What is meant by a token? Name the token available in C++.

Answer»

C++ program statements are constructed by many different small elelments such as commands, variables, constants and many more symbols called as operators and punctuators. Individual elements are collectively called as Lexical units or Lexical elements or Tokens.

C++ has the following tokens:

1. Keywords

2. Identifiers

3. Literals

4. Operators

5. Punctuators

18074.

Differentiate “ = ” and “ == ”.

Answer»
==
‘ = ’ is an assignment operator‘ = = ’ is an equal to operator and it is a relational operator.
It is used to assign the value of variable or expressionIt is used for comparison of both left and right side operands.
18075.

A program written in high level language is called as …….(a) Object code(b) Source code(c) Executable code(d) All the above

Answer»

(b) Source code

18076.

Which of the following is called as compile time operators?(a) sizeof(b) pointer(c) virtual(d) this

Answer»

size of is called as compile time operators

18077.

Assume a = 5, b = 6; what will be result of a &amp; b?(a) 4 (b) 5(c) 1(d) 0

Answer»

Answer is (a) 4

18078.

Assume a = 10, b = 15; What will be the value of a^b?

Answer»
OperatorOperationResult
^a^b00001010  a
0000111 b
000000101 a^b 
a^b = (000000101)2 = 510
18079.

Assume a = 15, b = 20; What will be the result of the following operations?(a) a&amp;b (b) a|b (c) a^b (d) a&gt;&gt;3 (e) (~b)

Answer»
operatoroperationResult
&a&b00001111  a
00010100  b
a&b = (00000100)2 = 410
|a|b00001111  a
00010100  b
a|b = (00011111)2 = 3I10
^a^b00001111  a
00010100  b
a^b = (00011011)2 = 272
>>a>>300001111    a
00000001
a>>3 = 1
~~bb = 00010100    a
~b = -21
18080.

The latest standard version published in December 2017 as ISO/IEC ……. which is informally known as C++ 17.(a) 14882 : 1998 (b) 14883 : 2017 (c) 14882 : 2017 (d) 14882 : 2000

Answer»

(c) 14882 : 2017

18081.

Match the following: ABa. Modulus1. Tokensb. Separators2. Remainder of a divisionc. Stream extraction3. Punctuatorsd. Lexical Units4. get from

Answer»
 AB
a. Modulus2. Remainder of a division
b. Separators3. Punctuators
c. Stream extraction4. get from
d. Lexical Units1. Tokens
18082.

What is an integer constant?

Answer»

Integer constants are whole numbers without any fractional part.

18083.

Assume n = 10; what will be result of n&gt;&gt;2;?

Answer»
OperatorOperationResult
>>n>>200001010 n = 10
00001000 n>>2
00000010
n>>2 = (00000010)2 = 210
18084.

Evaluate the following C++ expressions where x, y, z are integers and m, n are floating point numbers. The value of x = 5, y = 4 and m = 2.5;1. n = x + y / x; 2. z = m * x + y; 3. z = (x++) * m + x;

Answer»

1. n = x + y / x;

= 5 + 4/5

= 5 + 0 (both x and y are int type. Therefore only integer part of quotient is considered)

= 5

2. z = m * x + y;

= 2.5 * 5 + 4 (m is float type, so x value is promoted to float [implicit conversion])

= 12.5 + 4 ‘

= 16 (2 is int type. So ‘.2’ , the fractional part is discarded)

3. z = (x++) * m + x;

= 5*2.5 + x

= 12.5 + 5

= 18 (z is int type, therefore the fractional part is removed, x is incremented after the addition)

18085.

Write the following real constants into the exponent form:1. 23.197 00 2. 7.2143. 0.00005 4. 0.319

Answer»

1. 23.197 = 0.23197 x 102 = 0.23197E2

2. 00 7.214 = 0.7214 x 101 = 0.7214E1

3. 0.00005 = 0.5 x 10-4 = 0.5E – 4

4. 0.319 = 3.19 x 10-1 = 3.19E – 1

18086.

What are the arithmetic operators?

Answer»

The symbols that perform addition, subtraction, multiplication, modulus, and division are called arithmetic operators.

18087.

What is the operator?

Answer»

An operator is a symbol that tells the compiler to performs specific operations and give a value as the result.

18088.

What are the character constants?

Answer»

A character constant in C++ must contain one or more characters and must be enclosed in single quotation marks.

18089.

Define string constants.

Answer»

A sequence of characters enclosed within double quotes is called a string constant or literal.

18090.

What are punctuators?

Answer»

Punctuators are symbols other than alphabets and numbers that are used in C++.

18091.

Mention any two benefits of C++.

Answer»

1. C++ is a highly portable language and is often the language of choice for multi – device, multi – platform app development.

2. C++ is an object – oriented programming language and includes classes, inheritance, polymorphism, data abstraction and encapsulation.

18092.

Write any four punctuators of C++.

Answer»

Four punctuator of C++are (),{}, ; , and :

18093.

What is call/pass by value method of function call?

Answer»

Pass by value or Call by value is the method where a copy of the value of the actual argument are passed to the called function to do a specific operation to return the result.

18094.

What is the use of Boolean literals?

Answer»

Boolean literals are used to represent one of the Boolean values (True or false). Internally true has value 1 and false has value 0.

18095.

Mention different types of literals available in C++.

Answer»

The following types of literals are available in C++.

  • Integer-constants
  • Character-constants
  • Floating-constants
  • Strings-constants
18096.

Write a short note const keyword with an example.

Answer»

const is the keyword used to declare a constant, const keyword modifies / restricts the accessibility of a variable. So, it is known as Access modifier.

18097.

Write the rules to be followed, while naming the identifier.

Answer»

The identifier is a sequence of characters taken from the C++ character set.

The rules for the formation of an identifier are:

  • It can consist of alphabets, digits and/or underscores. 
  • It must not start with a digit
  • C++ is case sensitive, that is upper and lower case letters are considered as different from each other.
  • It should not be a reserved keyword.
18098.

What is the use of constant argument?

Answer»

The value of a constant argument cannot be modified or changed during the execution of the function.

18099.

Write a short note on literals.

Answer»

The five arithmetical operations supported by the C++ language are:

+ addition – subtraction

* multiplication

/ division

% modulus Operations of addition, subtraction, multiplication, and division literally correspond with their respective mathematical operators.

For example,

sum = 5 + 10;

difference = 10 – 5;

product = 2 * 5;

quotient = 10 / 2;

remainder = 11 % 3;

18100.

What are constant arguments?

Answer»

The arguments which are declared using a const keyword are called constant arguments.