Interview questions

Computer interview questions – page 44

3,888 questions. Tap “Show answer” to check yourself.

  1. Which punctuator is used to group a set of C++ statements?

    1. A.{}
    2. B.[]
    3. C.()
    4. D./
    Show answer

    A. {}

  2. ____ refers to the process of changing the data type of the value stored in a variable.

    1. A.Type char
    2. B.Type int
    3. C.Type float
    4. D.Type cast
    Show answer

    D. Type cast

  3. ____ data types are structure, union, class and enumeration.

    1. A.Derived
    2. B.Integer
    3. C.Built-in
    4. D.User defined
    Show answer

    D. User defined

  4. Which operator is used to compare numerical values?

    1. A.Relational
    2. B.Conditional
    3. C.Assignment
    4. D.Arithmetic
    Show answer

    A. Relational

  5. ____ allocates memory, based on the data type of the variable.

    1. A.Interpreter
    2. B.Link
    3. C.Converter
    4. D.Compiler
    Show answer

    D. Compiler

  6. Every variable will be referred by its ___

    1. A.Data
    2. B.Int
    3. C.Name
    4. D.Address
    Show answer

    D. Address

  7. Which storage class defines local variable known to the block in which they are defined?

    1. A.Register
    2. B.Auto
    3. C.Extern
    4. D.Static
    Show answer

    B. Auto

  8. ____ allows users to define the user defined data type identifier.

    1. A.Class
    2. B.Data
    3. C.Identifier
    4. D.Type definition
    Show answer

    D. Type definition

  9. What is the length of long double data type?

    1. A.8
    2. B.16
    3. C.32
    4. D.80
    Show answer

    D. 80

  10. When a=6 and c=a++ what is the value of c?

    1. A.6
    2. B.7
    3. C.8
    4. D.9
    Show answer

    A. 6

  11. The statement int A; b; is invalid because ____

    1. A.Variables should be separated by Comma
    2. B.Capital A is not allowed
    3. C.Only one variable should be given
    4. D.All of these
    Show answer

    A. Variables should be separated by Comma

  12. What is the default file extension for all Word documents?

    1. A.FIL
    2. B.DOC
    3. C.WRD
    4. D.TXT
    Show answer

    B. DOC

  13. The ____ key and the ___ key can be used in combination with other keys to perform shortcuts and special tasks.

    1. A.Control, Alt
    2. B.Function, toggle
    3. C.Delete, Insert
    4. D.Caps Lock, Num Lock
    Show answer

    A. Control, Alt

  14. How many operators are classified in C++?

    1. A.11
    2. B.13
    3. C.14
    4. D.15
    Show answer

    B. 13

  15. ____ is the C increment Operator in C++.

    1. A.++
    2. B.+*
    3. C.*+
    4. D.--
    Show answer

    A. ++

  16. The special characters like tab, backspace, line feed, null, back slash are called ____ character constant

    1. A.Floating
    2. B.String
    3. C.Graphic
    4. D.Non-graphic
    Show answer

    D. Non-graphic

  17. What type of integer starts with 0X?

    1. A.Decimal
    2. B.Binary
    3. C.Hexadecimal
    4. D.Octal
    Show answer

    C. Hexadecimal

  18. The sequence of digits starting with 0 is treated as ___ constant.

    1. A.Penta
    2. B.Hexadecimal
    3. C.Binary
    4. D.Octal
    Show answer

    D. Octal

  19. The body of function contains ___

    1. A.Return statement
    2. B.A variable declaration part
    3. C.Processing part
    4. D.All the above
    Show answer

    D. All the above

  20. Which of the following is not a C++ keyword?

    1. A.This
    2. B.New
    3. C.Cont
    4. D.If
    Show answer

    C. Cont

  21. ____ is a variable that holds a memory address.

    1. A.Long double
    2. B.Float
    3. C.Char
    4. D.Pointer
    Show answer

    D. Pointer

  22. Addressing is done using ___ number system.

    1. A.Decimal
    2. B.Hexadecimal
    3. C.Octal
    4. D.Binary
    Show answer

    B. Hexadecimal

  23. Which one of the following is a membership operator?

    1. A.!
    2. B.&
    3. C.::
    4. D..
    Show answer

    C. ::

  24. ____ Operator requires two operands.

    1. A.Logical
    2. B.Binary
    3. C.Unary
    4. D.Ternary
    Show answer

    B. Binary

  25. Additive, Multiplicative, shift, Bitwise logical and assignment operators is ____ operator.

    1. A.Conditional
    2. B.Relational
    3. C.Unary
    4. D.Binary
    Show answer

    D. Binary

  26. Binary plus (+) and Binary minus (-) are ___ operator.

    1. A.Additive
    2. B.Multiplicative
    3. C.Shift
    4. D.Bitwise
    Show answer

    A. Additive

  27. What is the length of double data type?

    1. A.8
    2. B.16
    3. C.32
    4. D.64
    Show answer

    D. 64

  28. Which operator requires three operands?

    1. A.Unary
    2. B.Binary
    3. C.Ternary
    4. D.Bitwise
    Show answer

    D. Bitwise

  29. What are bitwise operators?

    1. A.&
    2. B.!
    3. C.^
    4. D.All (a, b and c)
    Show answer

    D. All (a, b and c)

  30. Auto variables get undefined values known as ___

    1. A.Garbage
    2. B.Auto
    3. C.Register
    4. D.Static
    Show answer

    A. Garbage

Companies that ask Computer questions