How Well Can You Score In The Computer Programming Quiz?

82 Questions | Attempts: 229
Share

SettingsSettingsSettings
How Well Can You Score In The Computer Programming Quiz? - Quiz

How well can you score in the computer programming quiz? If you consider yourself that you know it all when it comes to programming and is looking for a challenge. The quiz will be exactly what you need, so be sure to check out each question and give the answer that’s right according to you. Be on the lookout for other programming quizzes.


Questions and Answers
  • 1. 

    Programming in c/c++ use "stdio.h" for standard libraly

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 2. 

    If the person is not a vegetarian than the person does not(not) eat meat.Is an example of what kind of statement?

    • A.

      Biconditional

    • B.

      Contrapositive

    • C.

      Inverse

    Correct Answer
    A. Biconditional
  • 3. 

    Example: p= A person is  a vegetarianq=the person does not each beerIf the person is not a vegetarian than the person does not(not) eat meat.In this situation not and not cancel each other out

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 4. 

    A contrapositive statement is represented with the symbols ______________

    Correct Answer
    ~P->~Q
  • 5. 

    Which of the following is the contrapositive of the statement If the shape is a rectangle (p) then the shape has four sides(q). 

    • A.

      If the shape does not have four side then the shape is not a rectangle

    • B.

      If the shape is a rectangle (p) then the shape has four sides(q)

    • C.

      If the shape has four sides the shape is a rectangle

    Correct Answer
    A. If the shape does not have four side then the shape is not a rectangle
  • 6. 

    Is the following an inverse statement of If the shape is a rectangle then the shapes has four sides.If a shape is not a rectangle then it does not have four sides,

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 7. 

    Which of the following is a converse conditional statement in symbols

    • A.

      P->q

    • B.

      QP

    • C.

      Q->p

    Correct Answer
    C. Q->p
  • 8. 

    The inverse of: If a shape is a rectangle then the shape has four sides.

    • A.

      If a shape is not a rectangle then it does not have four sides.

    • B.

      IF a shape is a rectangle if and only if it does not have four sides.

    • C.

      Penguin.

    Correct Answer
    A. If a shape is not a rectangle then it does not have four sides.
  • 9. 

    Choose correct Truth table for ~P and ~P->Q if the P column is  TTFF and if the Q  column is TFTF 

    • A.

      TFTT;TFTT

    • B.

      FFTT;TFTT

    • C.

      FFTT;TFTF

    Correct Answer
    C. FFTT;TFTF
  • 10. 

    Write a biconditional state for P=The shape is a rectangle q=The shape has four sides.

  • 11. 

    P<->q symbolizes which of the following?

    • A.

      Conditional

    • B.

      Biconditional

    • C.

      Inverse

    Correct Answer
    B. Biconditional
  • 12. 

    If the shape is a rectangle then the shape has four sides is and example of ___________ statement.

    Correct Answer
    Conditional
    Conditional statement
    conditional
    conditional statement
  • 13. 

    The Maximum width of a C variable name can be ________________.

    • A.

      20 Character

    • B.

      32 Character

    Correct Answer
    B. 32 Character
  • 14. 

    A flowchart is graphical representation of an algorithm.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 15. 

    An algorithm consists of a set of explicit and unambiguous finite steps.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 16. 

    The C programming language was developed by Charles Babbage.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 17. 

    The C complier runs a program called the C Processor.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 18. 

    Strcpy is used to copy the string.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 19. 

    Pointer is mainly used Point out the Function.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 20. 

    A Header File is a file that contains Definitions and Macros.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 21. 

    A link is a Complier.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 22. 

    Do while loop tests the condition at the End of the Loop.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 23. 

    The ___________________ loop executes at least once.

    • A.

      Break

    • B.

      Stop

    Correct Answer
    A. Break
  • 24. 

    In face “++” has a higher precendence than “*”.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 25. 

    Null will be defined as something else.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 26. 

    Scanf function is used to display information on the Monitor.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 27. 

    A for loop is used to execute a section of code a specific number of times.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 28. 

    A do while loop is very similar to a while loop.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 29. 

    The break key word allows you to jump out of any loop at any time.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 30. 

    The continue keyword is used in loops to skip right to the test condition.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 31. 

     The Return Statement is optional.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 32. 

    In C all function except main() can be called recursively.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 33. 

     In function two return statement should never occur.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 34. 

     C program is developed with the help of C++ language.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 35. 

    If Else statement is used when both the statements are False.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 36. 

    “C” language has been developed by “Dennis Ritchie”.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 37. 

    The maximum width of a “C” variable name can be 10 character.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 38. 

    “C” is a low level language.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 39. 

     ____________________ of the following is allowed in a C arithmetic instruction.

    • A.

      ()

    • B.

      []

    Correct Answer
    A. ()
  • 40. 

     ________________ are the ASCII values for number 0-9.

    • A.

      23-45

    • B.

      48-57

    Correct Answer
    B. 48-57
  • 41. 

     In the C Language ‘A’ represents ________________.

    • A.

      A Digit

    • B.

      A Character

    Correct Answer
    B. A Character
  • 42. 

    To find factorial of A by using while loop,  A will be ________________.

    • A.

      A

    • B.

      A>0

    Correct Answer
    B. A>0
  • 43. 

     ___________________ does not represent a valid storage class in “C”.

    • A.

      Automatic

    • B.

      Union

    Correct Answer
    B. Union
  • 44. 

     In ‘C’ logical AND operator is represented as ___________________.

    • A.

      Binary

    • B.

      DOS

    Correct Answer
    A. Binary
  • 45. 

    ___________________ keyword is used to exit loops at arbitrary spots.

    • A.

      Break

    • B.

      CLOSE

    Correct Answer
    A. Break
  • 46. 

    The Expression, A=30*1000+2768 evaluates to ________________.

    • A.

      -32768

    • B.

      32768

    Correct Answer
    A. -32768
  • 47. 

    Macros are defined using ___________________ statement.

    • A.

      #define

    • B.

      #include

    Correct Answer
    A. #define
  • 48. 

    C Language came into existence in the year ____________________. 

    • A.

      1971

    • B.

      1972

    Correct Answer
    B. 1972
  • 49. 

    The maximum value that an integer constant can have is ____________________.

    • A.

      -3276700%

    • B.

      3276700%

    Correct Answer
    B. 3276700%
  • 50. 

    The goto statement causes control to go to ___________________.

    • A.

      An operator

    • B.

      A label

    Correct Answer
    B. A label

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 16, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 05, 2013
    Quiz Created by
    Krootid
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.