Section H PC Quiz 1

10 Questions | Total Attempts: 81

SettingsSettingsSettings
Please wait...
Section H PC Quiz 1

There is no negative marking


Questions and Answers
  • 1. 
    A name start with letters or underscore is called
    • A. 

      Keywords

    • B. 

      Reserved keywords

    • C. 

      Tokens

    • D. 

      Identifiers

  • 2. 
    The words if, else, auto, float etc. have predefined meaning and users cannot use them as variables. These words are called
    • A. 

      Constant

    • B. 

      Identifier

    • C. 

      Keywords

    • D. 

      Data types

  • 3. 
    An expression contains relational, assignment and arithmetic operators. If parenthesis are not specified, the order of evaluation of the operators would be:
    • A. 

      Assignment, arithmetic, relational

    • B. 

      Arithmetic, relational, assignment

    • C. 

      Assignment, relational, arithmetic

    • D. 

      Relational, assignment, arithmetic

  • 4. 
    In an assignment statement a=b; which of the following statement is true ?
    • A. 

      The variable a and the variable b are same.

    • B. 

      The value of b is assigned to variable a but if b changes later, it will not effect the value of variable a.

    • C. 

      The value of b is assigned to variable a but if b changes later, it will effect the value of variable a

    • D. 

      The value of variable a is assigned to variable b, and the value of variable b is asssigned to variable a.

  • 5. 
    Which is an incorrect variable name?
    • A. 

      Id_No

    • B. 

      ID_NO_23

    • C. 

      Id No

    • D. 

      IdNo12

  • 6. 
    If 'a' is an integer variable, then a=5/2 will return a value
    • A. 

      2.5

    • B. 

      2

    • C. 

      3

    • D. 

      2.5

  • 7. 
    Which of the following is not a premitive data type in 'C' language?
    • A. 

      Double

    • B. 

      Array

    • C. 

      Char

    • D. 

      Float

  • 8. 
    Which of the following cannot be used as identifiers independely ?
    • A. 

      Letters

    • B. 

      Numbers

    • C. 

      Spaces

    • D. 

      Underscores

  • 9. 
    Identify the correct sequence of steps to run a program
    • A. 

      Code, compile, link, load and execute

    • B. 

      Link, load, code, compile and execute

    • C. 

      Code, compile, link, execute and load

    • D. 

      Compile, code, link, load and execute

  • 10. 
    Which operators are used to compare the values of operands to produce logical value in C language?
    • A. 

      Logical operator

    • B. 

      Relational operator

    • C. 

      Assignment operator

    • D. 

      None of the above

Back to Top Back to top