Data Types In C

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 Ewkeducation
E
Ewkeducation
Community Contributor
Quizzes Created: 1 | Total Attempts: 447
Questions: 6 | Attempts: 448

SettingsSettingsSettings
Data Type Quizzes & Trivia

Questions and Answers
  • 1. 

    The characters in C are grouped into ____ categories.

    • A.

      1

    • B.

      2

    • C.

      3

    • D.

      4

    Correct Answer
    D. 4
    Explanation
    The characters in C are grouped into four categories.

    Rate this question:

  • 2. 

    We can create tilde sign with the use of which trigraph sequence?

    • A.

      ??-

    • B.

      ??/

    • C.

      ??!

    • D.

      ??>

    Correct Answer
    A. ??-
    Explanation
    The correct answer is ??-. The tilde sign can be created using the trigraph sequence ??-.

    Rate this question:

  • 3. 

    From below which Backslash character constant give meaning 'audible alert(bell)' ?

    • A.

      '\a'

    • B.

      '\b'

    • C.

      '\c'

    • D.

      '\ab'

    Correct Answer
    A. '\a'
    Explanation
    The backslash character constant '\a' gives the meaning of an audible alert or bell. This character is used to produce a sound or alert in various programming languages and is commonly used in situations where an attention-grabbing signal is required, such as in error messages or notifications.

    Rate this question:

  • 4. 

    Choose exactly right range for float data type.

    • A.

      3.8e-38 to 3.8e+38

    • B.

      3.8e-34 to 3.8e+34

    • C.

      3.4e-38 to 3.4e+38

    • D.

      3.4e-34 to 3.4e+34

    Correct Answer
    C. 3.4e-38 to 3.4e+38
    Explanation
    The correct answer is 3.4e-38 to 3.4e+38. This range represents the minimum and maximum values that can be stored in a float data type in most programming languages. The "e" notation represents scientific notation, where the number before "e" is multiplied by 10 raised to the power of the number after "e". In this case, the range starts at 3.4 multiplied by 10 raised to the power of -38, and ends at 3.4 multiplied by 10 raised to the power of +38. This range allows for a wide range of decimal values to be stored, but it is important to note that float data types have limited precision and may not be able to accurately represent very small or very large numbers.

    Rate this question:

  • 5. 

    Choose exact size of 'signed long int' data type.

    • A.

      8

    • B.

      16

    • C.

      32

    • D.

      64

    Correct Answer
    C. 32
    Explanation
    The correct answer is 32 because a signed long int data type typically occupies 32 bits of memory, allowing it to store integer values ranging from -2,147,483,648 to 2,147,483,647.

    Rate this question:

  • 6. 

    Choose valid #define statement from below.

    • A.

      #define N 5,M 10

    • B.

      #define array 11

    • C.

      # define max 10

    • D.

      #define PRICE$ 100

    Correct Answer
    B. #define array 11
    Explanation
    The given #define statement "#define array 11" is a valid statement. It defines the identifier "array" to have the value 11. This means that whenever "array" is used in the code, it will be replaced with the value 11 during the preprocessing stage.

    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
  • May 15, 2011
    Quiz Created by
    Ewkeducation
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.