C Programming MCQ's - Set 1

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 Deepchawla
D
Deepchawla
Community Contributor
Quizzes Created: 2 | Total Attempts: 2,429
Questions: 10 | Attempts: 1,753

SettingsSettingsSettings
C Programming MCQs - Set 1 - Quiz

This quiz provides you the multiple choice questions of C language


Questions and Answers
  • 1. 

    C language was developed by ?

    • A.

      Ken Thompson

    • B.

      Peter Norton

    • C.

      Von Newman

    • D.

      Dennis Ritchie

    Correct Answer
    D. Dennis Ritchie
    Explanation
    Dennis Ritchie is the correct answer because he was one of the key developers of the C programming language. Along with Brian Kernighan, Ritchie created C at Bell Labs in the early 1970s. C became widely used and influential, serving as the foundation for many other programming languages. Ritchie's contributions to the development of C and his work on other projects, such as the Unix operating system, solidified his reputation as a pioneering computer scientist.

    Rate this question:

  • 2. 

    C language is a language of  ?

    • A.

      High level

    • B.

      Low level

    • C.

      Middle level

    • D.

      None of these

    Correct Answer
    C. Middle level
    Explanation
    The C language is considered a middle-level language because it combines features of both high-level and low-level languages. It provides low-level access to memory and hardware, which allows for efficient programming, but it also includes high-level constructs like functions and data structures, making it easier to write and read code compared to low-level languages. Therefore, C is often referred to as a middle-level language.

    Rate this question:

  • 3. 

    In C which character is used to terminate the instruction ?

    • A.

      .

    • B.

      ;

    • C.

      :

    • D.

      ,

    Correct Answer
    B. ;
    Explanation
    In the C programming language, the character ";" is used to terminate an instruction. This character is known as a semicolon and it is placed at the end of each statement to indicate the end of that particular instruction. The semicolon is essential in C because it helps the compiler understand where one instruction ends and the next one begins. Without the semicolon, the compiler would not be able to parse the code correctly and errors would occur. Therefore, the semicolon is necessary to properly terminate instructions in C.

    Rate this question:

  • 4. 

    C Programs cab be written in ... ?

    • A.

      Lower case letters

    • B.

      Upper case letters

    • C.

      Mixed letters

    • D.

      None of these

    Correct Answer
    A. Lower case letters
    Explanation
    C programs can be written in lower case letters because the C programming language is case-sensitive. This means that lowercase and uppercase letters are treated as distinct and separate. Therefore, programmers have the flexibility to use lowercase letters when writing C programs without any restrictions. However, it is important to note that while lowercase letters are allowed, it is common practice to use a combination of lowercase and uppercase letters for better readability and understanding of the code.

    Rate this question:

  • 5. 

    Which of these is not a version of C language ?

    • A.

      Microsoft C

    • B.

      Quick C

    • C.

      Turbo C

    • D.

      Fast C

    Correct Answer
    D. Fast C
    Explanation
    Fast C is not a version of the C language. Microsoft C, Quick C, and Turbo C are all well-known versions of the C language that have been developed by different companies. However, Fast C is not a recognized version of the C language.

    Rate this question:

  • 6. 

    C Programming Follows ....?

    • A.

      Non structured approach

    • B.

      Structured approach

    • C.

      Object oriented approach

    • D.

      None of these

    Correct Answer
    B. Structured approach
    Explanation
    C programming follows a structured approach. This means that the code is organized into logical blocks or functions that perform specific tasks. It emphasizes the use of control structures like loops and conditionals to control the flow of the program. This approach helps in writing modular and maintainable code, making it easier to understand and debug.

    Rate this question:

  • 7. 

    C Programs are converted into machine language with the helop of ..... ?

    • A.

      Compiler

    • B.

      Interpreter

    • C.

      Operating system

    • D.

      Assembler

    Correct Answer
    A. 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 source code written in a programming language like C into machine code that can be executed by the computer's processor. It performs various tasks such as lexical analysis, syntax analysis, semantic analysis, and code generation to convert the program into machine language instructions.

    Rate this question:

  • 8. 

    C was primarily developed as a ?

    • A.

      Systems Programing Language

    • B.

      General Purpose Language

    • C.

      Data Processing Language

    • D.

      D. None of the above

    Correct Answer
    A. Systems Programing Language
    Explanation
    C was primarily developed as a systems programming language. It was designed to provide low-level access to memory and hardware, making it suitable for developing operating systems, device drivers, and other system-level software. C's syntax and features also make it a general-purpose language, allowing it to be used for a wide range of applications. However, its initial development and intended use were focused on system programming tasks.

    Rate this question:

  • 9. 

    A character variable can at a time score ?

    • A.

      1 character

    • B.

      8 characters

    • C.

      254 characters

    • D.

      None of these

    Correct Answer
    A. 1 character
    Explanation
    A character variable can only store and represent one character at a time. It is designed to hold a single character value, such as a letter, number, or symbol. Therefore, the correct answer is "1 character".

    Rate this question:

  • 10. 

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

    • A.

      Fractional form only

    • B.

      Exponential form only

    • C.

      ASCII form only

    • D.

      Both fractional and Exponential form

    Correct Answer
    D. Both fractional and Exponential form
    Explanation
    The real constant in C can be expressed in both fractional and exponential form. In fractional form, a real constant can be written as a fraction with a numerator and a denominator. In exponential form, a real constant can be written as a base raised to an exponent. Both forms allow for the representation of real constants in C.

    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
  • Mar 20, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 14, 2012
    Quiz Created by
    Deepchawla
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.