Constants and Variables

 

1. A process of translation of program text into object or assembly text is known as :

  • Code Generation
  • Constant
  • Code
  • None of these

2. Which data items never change their value during a program run?

  • Keyword
  • Operator
  •  Literal
  • None of these

3. Every executable statement in C ++ must be terminated by a –

4. In CD Symbol is used to :

  • Comment
  • Execute
  • Compile
  •  None of these

5. Which error occurs during the execution of a program?

  •  Execution error
  • Run-time error
  •  Both a and b
  • Logical error

6. Tokens that trigger some computation when applied to variables and other objects in an expression is known as :

  • Operator
  •  Identifier
  •  Punctuator
  •  None of these

7. A word having special meaning reserved by a programming language is a :

  • Keyword
  • Literals
  • Identifier
  • None of these

8. The extension of CH is :

9. How many ways to insert comments in C # programming?

10. In C ++ programming execution of the program start and end at :

  •  chscr
  •  getch
  •  main
  • None of these

11. All header files and with-

  •  n
  •  h
  •   .
  •  None of these

12. When statements are not meaningful than which error is occurring?

  • Semantics error
  •  Syntax error
  • Type error
  • None of these

13. Cout << is used to :

  •  Execute
  •  Result
  • Print
  •  None of these

14. A sequence of bytes is called a :

  • Ostream
  • istream
  •  Stream
  •  None of these

15. The smallest individual unit in a program is :

  • Appendix
  • Token
  • Both a and b
  • None of these

16. Which symbol is used for pointer declaration?

17. Those characters that cannot be typed directly from a keyboard is –

  •  Graphic Sequence
  •  Non – graphic Sequence
  • Nongraphic character
  • Graphic character

Answer

Nongraphic character

18. C ++ allows how many types of integer constants?

19. Bitwise complement is a :

  • Binary operator
  •  Arithmetic operator
  • Unary operator
  • None of these

20. Another name of the token is :

  •  lexical element
  •  lexical unit
  • both a and b
  • None of these

21. Floating constant is also known as :

  • Real constant 
  •  Exponent constant
  • Fractional constant
  • All of these

22. A character constant in C ++ must contain :

  • Must be enclosed in single quotation marks
  • One character
  •  Both a and b
  •  None of the above

23. A sequence of digits starting with 0 ( zero ) is taken to be an :

  • Hexadecimal Integer
  • Decimal Integer
  • Octal Integer
  • None of these

24. Underscore ( – ) counts as a :

  • Letter
  •  Symbol
  • Both a and b
  • None of these

25. Symbol of Ellipsis is :

26. ….. …….. are data items that never change their values during a program run :

  • Punctuation
  •  Operator
  • Literals
  •  None of these

27. How many character constants are treated as-

  • Double character
  • Multi character
  • Single character
  •  None of these

28. Symbol of block comment is :

  • * /
  • .
  •  //
  •  None of these

Leave a Comment

Your email address will not be published.