Online Quiz For +1 Vocational Computer Science Sub.-programming In C Gsss Badal

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 Amanpreet Kaur
A
Amanpreet Kaur
Community Contributor
Quizzes Created: 1 | Total Attempts: 75
Questions: 10 | Attempts: 75

SettingsSettingsSettings
Online Quiz For +1 Vocational Computer Science Sub.-programming In C Gsss Badal - Quiz


Questions and Answers
  • 1. 

    How many main functions are in C program?

    • A.

      2

    • B.

      3

    • C.

      1

    • D.

      Any number

    Correct Answer
    C. 1
    Explanation
    A C program can only have one main function. The main function is the entry point of the program and is required for the program to execute. It is where the program starts and where the execution begins. Having more than one main function in a C program would result in a compilation error. Therefore, the correct answer is 1.

    Rate this question:

  • 2. 

    Which keyword is not used in C language?

    • A.

      Const.

    • B.

      Main

    • C.

      Size of

    • D.

      Void

    • E.

      Enum

    Correct Answer
    B. Main
    Explanation
    The keyword "main" is used in C language to indicate the starting point of the program. It is a mandatory keyword and every C program must have a main function. Therefore, "main" is not the keyword that is not used in C language.

    Rate this question:

  • 3. 

    How null character is shown in C language?

    • A.

      \n

    • B.

      \o

    • C.

      \0

    • D.

      \t

    Correct Answer
    C. \0
    Explanation
    In C language, the null character is represented by "\0". It is used to indicate the end of a string and is often used to initialize character arrays. This character has a value of zero and is different from the character '0'.

    Rate this question:

  • 4. 

    C is _______level language?

    • A.

      Low level

    • B.

      High level

    • C.

      Middle level

    • D.

      All

    Correct Answer
    C. Middle level
    Explanation
    The correct answer is "Middle level". This is because a middle-level language combines features of both low-level and high-level languages. It provides a higher level of abstraction compared to low-level languages like assembly language, making it easier to write and understand code. However, it also allows for more direct control over hardware and memory compared to high-level languages, making it more efficient and suitable for systems programming. Therefore, C is considered a middle-level language.

    Rate this question:

  • 5. 

    A statement is ended using which of the following?

    • A.

      ,comma

    • B.

      :colon

    • C.

      ;semicolon

    • D.

      .period

    Correct Answer
    C. ;semicolon
    Explanation
    A statement is typically ended using a semicolon (;). A semicolon is used to separate two closely related independent clauses that could stand alone as separate sentences but are connected in meaning. It is an alternative to using a period to end a sentence. The other punctuation marks listed, such as comma, colon, and period, are used for different purposes in sentence structure.

    Rate this question:

  • 6. 

    Range of integer in C ?

    • A.

      0 to 32767

    • B.

      0 to 65535

    • C.

      -32768 to 32767

    • D.

      -32767 to 32768

    Correct Answer
    C. -32768 to 32767
    Explanation
    The range of integers in C is from -32768 to 32767. This is because C uses a 16-bit representation for integers, where the most significant bit is reserved for the sign of the number. Therefore, the range of possible values is divided equally between positive and negative numbers, giving a range of -32768 to 32767.

    Rate this question:

  • 7. 

    Printf( ) is  output function ?

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    The given answer is true because the printf() function in programming is commonly used to display output on the screen. It is a standard library function in many programming languages, including C and C++. The printf() function allows the programmer to format and print data to the console or other output devices. Therefore, it is considered an output function.

    Rate this question:

  • 8. 

    Blank space is called white space character in C language?

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    In the C language, a blank space is indeed referred to as a white space character. This term is used to describe any empty space, such as a space, tab, or newline, in a program's source code. These white space characters are typically ignored by the compiler and do not affect the program's execution. Therefore, the statement "Blank space is called white space character in C language" is true.

    Rate this question:

  • 9. 

    Extension of header file in C is ______

    Correct Answer
    .h
    Explanation
    The extension of a header file in C is ".h". Header files in C typically contain function prototypes, type definitions, and macro definitions that are used by multiple source files in a program. Including a header file in a source file allows the source file to access the declarations and definitions present in the header file. The ".h" extension is a convention used to indicate that a file is a header file and should be included in C programs for proper compilation and linking.

    Rate this question:

  • 10. 

    Integer data type has ____ bytes

    Correct Answer
    2
    Explanation
    The integer data type typically has a size of 2 bytes. This means that it can hold values ranging from -32,768 to 32,767 (assuming a signed integer). The size of an integer can vary depending on the programming language and the system architecture, but 2 bytes is a common size for many programming languages.

    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 30, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jun 07, 2020
    Quiz Created by
    Amanpreet Kaur
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.