Section H PC Quiz 1

70 Questions | Total Attempts: 92

SettingsSettingsSettings
Computer Quizzes & Trivia

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

  • 11. 
    An operator used to check a condition and select a value depending on the value of the condition is called
    • A. 

      Logical operator

    • B. 

      Decrement operator

    • C. 

      Conditional or Ternary operator

    • D. 

      Bitwise operator

  • 12. 
    Which of the follwing symbol is format specifier?
    • A. 

      &

    • B. 

      :

    • C. 

      %d

    • D. 

      ;

  • 13. 
    Which constant can be expressed both in fractional and exponential forms?
    • A. 

      Char

    • B. 

      Void

    • C. 

      Int

    • D. 

      Float

  • 14. 
    ? and : are called
    • A. 

      Relational Operators

    • B. 

      Conditional Operators

    • C. 

      Logical Operators

    • D. 

      Arithmetic Operators

  • 15. 
    Which of the following is the valid variable name?
    • A. 

      Dot.

    • B. 

      Number

    • C. 

      Stack-queue

    • D. 

      #hash

  • 16. 
    Which of the following is invalid C constant?
    • A. 

      35,550

    • B. 

      325.00E+325.00

    • C. 

      0.00E+0.00

    • D. 

      2

  • 17. 
    Size of the interger that is supported by gcc compiler is:
    • A. 

      4-bits

    • B. 

      2-bits

    • C. 

      2 Bytes

    • D. 

      4 Bytes

  • 18. 
    How many keywords are there in C Language?
    • A. 

      23

    • B. 

      32

    • C. 

      31

    • D. 

      None of the above

  • 19. 
    Associativity of = operator is.
    • A. 

      Left to right

    • B. 

      Right to left

    • C. 

      Assignement

    • D. 

      All of the above

  • 20. 
    Which of the follwing is a ternary operator
    • A. 

      :?

    • B. 

      ?:

    • C. 

      ??

    • D. 

      ?::

  • 21. 
    C language programs are converted into machine language by
    • A. 

      Interpreter

    • B. 

      Assembler

    • C. 

      Compiler

    • D. 

      All of the above

  • 22. 
    Operator & is used for
    • A. 

      Bitwise AND

    • B. 

      Bitwise OR

    • C. 

      Bitwise NOT

    • D. 

      None of the above

  • 23. 
    In the passage of text, individual words and punctuation marks are known as
    • A. 

      Constant

    • B. 

      Keywords

    • C. 

      Delimiter

    • D. 

      Operators

  • 24. 
    The result of a relational operator is always
    • A. 

      Greater than or Less than

    • B. 

      Greater Than or Equal to

    • C. 

      True OR False

    • D. 

      False OR False

  • 25. 
    Which of the following is not a valid declaration in C?
    • A. 

      Short int x

    • B. 

      Signed short x

    • C. 

      Short x

    • D. 

      Unsigned short x

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.