1. Question: Which of the following is not a correct variable type?

    A
    float

    B
    real

    C
    int

    D
    double

    Note: Not available
    1. Report
  2. Question: Which type of language is C?

    A
    Object Oriented Language.

    B
    Procedure Oriented Language

    C
    Scripting Language

    D
    None

    Note: Not available
    1. Report
  3. Question: Which data type will you use to store numeric value which is always positive?

    A
    unsigned int

    B
    signed int

    C
    int

    D
    positive int

    Note: Not available
    1. Report
  4. Question: Which of the following special symbol allowed in a variable name?

    A
    * (asterisk)

    B
    | (pipeline)

    C
    - (hyphen)

    D
    _ (underscore)

    Note: Not available
    1. Report
  5. Question: By default a real number is treated as a

    A
    float

    B
    double

    C
    long double

    D
    far double

    Note: In computing, 'real number' often refers to non-complex floating-point numbers. It include both rational numbers, such as 42 and 3/4, and irrational numbers such as pi = 3.14159265... When the accuracy of the floating point number is insufficient, we can use the double to define the number. The double is same as float but with longer precision and takes double space (8 bytes) than float. To extend the precision further we can use long double which occupies 10 bytes of memory space.
    1. Report
  6. Question: Which of the following correctly represents a long double constant?

    A
    6.68

    B
    6.68L

    C
    6.68f

    D
    6.68LF

    Note: 6.68 is double. 6.68L is long double constant. 6.68f is float constant. 6.68LF is not allowed in c.
    1. Report
  7. Question: Which of the declaration is correct?

    A
    int length;

    B
    char int;

    C
    int long;

    D
    float double;

    Note: int length; denotes that variable length is int(integer) data type. char int; here int is a keyword cannot be used a variable name. int long; here long is a keyword cannot be used a variable name. float double; here double is a keyword cannot be used a variable name. So, the answer is int length;(Option A).
    1. Report
  8. Question: Which of the following operations are INCORRECT?

    A
    int i = 35; i = i%5;

    B
    short int j = 255; j = j;

    C
    long int k = 365L; k = k;

    D
    float a = 3.14; a = a%3;

    Note: float a = 3.14; a = a%3; gives "Illegal use of floating point" error. The modulus (%) operator can only be used on integer types. We have to use fmod() function in math.h for float values.
    1. Report
  9. Question: Which of the structure is incorrect?
    1 : struct aa
         {
           int a;
           float b;
         };
    2 : struct aa
        {
           int a;
           float b;
           struct aa var;
        };
    3 : struct aa
        {
           int a;
           float b;
           struct aa *var;
        }

    A
    1

    B
    2

    C
    3

    D
    1,2,3

    Note: Not available
    1. Report