Interview questions
Computer interview questions – page 44
3,888 questions. Tap “Show answer” to check yourself.
-
Which punctuator is used to group a set of C++ statements?
- A.{}
- B.[]
- C.()
- D./
Show answer
A. {}
-
____ refers to the process of changing the data type of the value stored in a variable.
- A.Type char
- B.Type int
- C.Type float
- D.Type cast
Show answer
D. Type cast
-
____ data types are structure, union, class and enumeration.
- A.Derived
- B.Integer
- C.Built-in
- D.User defined
Show answer
D. User defined
-
Which operator is used to compare numerical values?
- A.Relational
- B.Conditional
- C.Assignment
- D.Arithmetic
Show answer
A. Relational
-
____ allocates memory, based on the data type of the variable.
- A.Interpreter
- B.Link
- C.Converter
- D.Compiler
Show answer
D. Compiler
-
Every variable will be referred by its ___
- A.Data
- B.Int
- C.Name
- D.Address
Show answer
D. Address
-
Which storage class defines local variable known to the block in which they are defined?
- A.Register
- B.Auto
- C.Extern
- D.Static
Show answer
B. Auto
-
____ allows users to define the user defined data type identifier.
- A.Class
- B.Data
- C.Identifier
- D.Type definition
Show answer
D. Type definition
-
What is the length of long double data type?
- A.8
- B.16
- C.32
- D.80
Show answer
D. 80
-
When a=6 and c=a++ what is the value of c?
- A.6
- B.7
- C.8
- D.9
Show answer
A. 6
-
The statement int A; b; is invalid because ____
- A.Variables should be separated by Comma
- B.Capital A is not allowed
- C.Only one variable should be given
- D.All of these
Show answer
A. Variables should be separated by Comma
-
What is the default file extension for all Word documents?
- A.FIL
- B.DOC
- C.WRD
- D.TXT
Show answer
B. DOC
-
The ____ key and the ___ key can be used in combination with other keys to perform shortcuts and special tasks.
- A.Control, Alt
- B.Function, toggle
- C.Delete, Insert
- D.Caps Lock, Num Lock
Show answer
A. Control, Alt
-
How many operators are classified in C++?
- A.11
- B.13
- C.14
- D.15
Show answer
B. 13
-
____ is the C increment Operator in C++.
- A.++
- B.+*
- C.*+
- D.--
Show answer
A. ++
-
The special characters like tab, backspace, line feed, null, back slash are called ____ character constant
- A.Floating
- B.String
- C.Graphic
- D.Non-graphic
Show answer
D. Non-graphic
-
What type of integer starts with 0X?
- A.Decimal
- B.Binary
- C.Hexadecimal
- D.Octal
Show answer
C. Hexadecimal
-
The sequence of digits starting with 0 is treated as ___ constant.
- A.Penta
- B.Hexadecimal
- C.Binary
- D.Octal
Show answer
D. Octal
-
The body of function contains ___
- A.Return statement
- B.A variable declaration part
- C.Processing part
- D.All the above
Show answer
D. All the above
-
Which of the following is not a C++ keyword?
- A.This
- B.New
- C.Cont
- D.If
Show answer
C. Cont
-
____ is a variable that holds a memory address.
- A.Long double
- B.Float
- C.Char
- D.Pointer
Show answer
D. Pointer
-
Addressing is done using ___ number system.
- A.Decimal
- B.Hexadecimal
- C.Octal
- D.Binary
Show answer
B. Hexadecimal
-
Which one of the following is a membership operator?
- A.!
- B.&
- C.::
- D..
Show answer
C. ::
-
____ Operator requires two operands.
- A.Logical
- B.Binary
- C.Unary
- D.Ternary
Show answer
B. Binary
-
Additive, Multiplicative, shift, Bitwise logical and assignment operators is ____ operator.
- A.Conditional
- B.Relational
- C.Unary
- D.Binary
Show answer
D. Binary
-
Binary plus (+) and Binary minus (-) are ___ operator.
- A.Additive
- B.Multiplicative
- C.Shift
- D.Bitwise
Show answer
A. Additive
-
What is the length of double data type?
- A.8
- B.16
- C.32
- D.64
Show answer
D. 64
-
Which operator requires three operands?
- A.Unary
- B.Binary
- C.Ternary
- D.Bitwise
Show answer
D. Bitwise
-
What are bitwise operators?
- A.&
- B.!
- C.^
- D.All (a, b and c)
Show answer
D. All (a, b and c)
-
Auto variables get undefined values known as ___
- A.Garbage
- B.Auto
- C.Register
- D.Static
Show answer
A. Garbage