C Programming Ultimate Test: Quiz!

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Vladasimovic
V
Vladasimovic
Community Contributor
Quizzes Created: 1 | Total Attempts: 3,276
Questions: 10 | Attempts: 3,296

SettingsSettingsSettings
C Programming Ultimate Test: Quiz! - Quiz


What do you know about C programming? C Programming Language is a strong and all-purpose procedural programming language that supports structured programming. It was developed in 1972 by Bell Telephone Laboratories to create the Unix operating system. It gives you a map to navigate typical machine instructions. C Programming can be used to develop software like operating systems and databases. This quiz will demonstrate your knowledge of C Programming Language and help you learn interetsing facts along the way.


Questions and Answers
  • 1. 

    C language has been developed by?

    • A.

      Ken Thompson

    • B.

      Dennis Ritchie

    • C.

      Peter Norton

    • D.

      Martin Richards

    Correct Answer
    B. Dennis Ritchie
    Explanation
    Dennis Ritchie is the correct answer because he is one of the creators of the C programming language. Along with Ken Thompson, Ritchie developed C at Bell Labs in the early 1970s. C became widely used and influential, serving as the basis for many other programming languages. Ritchie's contributions to the development of C and Unix have had a significant impact on the field of computer science.

    Rate this question:

  • 2. 

    C can be used on?

    • A.

      Only MS-DOS

    • B.

      Only Linux

    • C.

      Only window

    • D.

      All of the above

    Correct Answer
    D. All of the above
    Explanation
    The correct answer is "All of the above" because C is a programming language that can be used on multiple operating systems, including MS-DOS, Linux, and Windows. It is a versatile language that can be compiled and executed on different platforms, making it widely applicable and compatible.

    Rate this question:

  • 3. 

    C programs are convrted into the machine language with the help of?

    • A.

      An editor

    • B.

      Compiler

    • C.

      An operating system

    • D.

      None of the above

    Correct Answer
    B. Compiler
    Explanation
    C programs are converted into machine language with the help of a compiler. A compiler is a software tool that translates the high-level code written in a programming language like C into low-level machine code that can be understood and executed by the computer's hardware. The compiler performs various tasks such as lexical analysis, syntax analysis, semantic analysis, code optimization, and code generation to produce the final executable machine code. Therefore, a compiler is the correct tool for converting C programs into machine language.

    Rate this question:

  • 4. 

    The real constant in C can be expressed which of the following forms?

    • A.

      Fractional form only

    • B.

      Exponetial form only

    • C.

      ASCII form only

    • D.

      Both Fractional and Exponetial

    Correct Answer
    D. Both Fractional and Exponetial
    Explanation
    The real constant in C can be expressed in both fractional and exponential forms. This means that a real constant in C can be written as a fraction or in scientific notation with an exponent. This flexibility allows for more precise and efficient representation of real numbers in programming, as it allows for a wider range of values to be expressed accurately.

    Rate this question:

  • 5. 

    A character variable can at a time score?

    • A.

      1 character

    • B.

      8 characters

    • C.

      254 characters

    • D.

      None of the above

    Correct Answer
    A. 1 character
    Explanation
    A character variable can only store one character at a time. It is a data type that is used to represent a single character such as a letter, digit, or special character. Therefore, the correct answer is 1 character.

    Rate this question:

  • 6. 

    The statement char ch='z' would store in ch.

    • A.

      The character Z

    • B.

      ASCII value of Z

    • C.

      Z along with the single inverted commas

    • D.

      Both (1) and (2)

    Correct Answer
    B. ASCII value of Z
    Explanation
    The statement "char ch='z'" would store the ASCII value of the character 'z' in the variable ch. Since the question asks for the correct answer, which is the ASCII value of Z, it is implied that the correct answer is option (2).

    Rate this question:

  • 7. 

    Which of the following is not a character constant?

    • A.

      'Thank You'

    • B.

      'quest videos- IT Learning at its best'

    • C.

      '23.56e-03'

    • D.

      All of the above

    Correct Answer
    D. All of the above
    Explanation
    All of the options provided are examples of character constants. The first option 'Thank You' is a string constant enclosed in single quotes. The second option 'quest videos- IT Learning at its best' is also a string constant enclosed in single quotes. The third option '23.56e-03' is a floating-point constant. Therefore, none of the options are not character constants.

    Rate this question:

  • 8. 

    The maximun value that an integer constant can have is?

    • A.

      -32767

    • B.

      32767

    • C.

      1.7014e+38

    • D.

      -1.7014e+38

    Correct Answer
    B. 32767
    Explanation
    The maximum value that an integer constant can have is 32767. This is because the given options are all integer constants, and the value 32767 is the highest among them.

    Rate this question:

  • 9. 

    A C variable cannot start with?

    • A.

      An alphabet

    • B.

      A number

    • C.

      A special symbol other than underscore

    • D.

      Both (2) and (3)

    Correct Answer
    D. Both (2) and (3)
    Explanation
    In C programming, variable names must follow certain rules. According to the given options, a C variable cannot start with a number (option 2) or a special symbol other than underscore (option 3). Variable names in C must start with an alphabet or an underscore, and can be followed by any combination of alphabets, numbers, or underscores. Therefore, both option 2 and option 3 are correct, as they violate the rules for naming variables in C.

    Rate this question:

  • 10. 

    Which of the following statements is wrong ?

    • A.

      INT=123;

    • B.

      Val='A' * 'B';

    • C.

      Is=20 * 'T'

    • D.

      Count+5=res;

    Correct Answer
    D. Count+5=res;
    Explanation
    The statement "count+5=res;" is wrong because it is trying to assign the value of the expression "count+5" to the variable "res". However, "count" is not defined in the given code, so this statement will result in an error.

    Rate this question:

Quiz Review Timeline +

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

  • Current Version
  • Jun 17, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Sep 19, 2012
    Quiz Created by
    Vladasimovic
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.