GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Programming in C

Faheem Ahmed 44 Fragen 1.695 Aufrufe

Quiz starten

Dieses Quiz hat ein Zeitlimit und öffnet sich deshalb im gewohnten Player.

Fragen in diesem Quiz (44)

  1. 1A C variable name can start with a ____
    1. ANumber
    2. BPlus Sign (+)
    3. CUnderscore
    4. DAsterisk (*)
  2. 2Name the loop that executes at least once.
    1. Afor
    2. Bif
    3. Cdo-while
    4. Dwhile
  3. 3A pointer pointing to a memory location of the variable even after deletion of the variable is known as _____
    1. Afar pointer
    2. Bdangling pointer
    3. Cnull pointer
    4. Dvoid pointer
  4. 4Which of the following correctly shows the hierarchy of arithmetic operations in C?
    1. A/ + * -
    2. B* - / +
    3. C+ - / *
    4. D/ * + -
  5. 5The output of the following code is:
    main()
    { int z, a = 5, b = 3; z = a * 2 + 26 % 3;
    printf("%d", z);
    }
    1. A10
    2. B0
    3. C12
    4. DNone of the above
  6. 6The output of the following code is:
    void main()
    { char a = 'B';
    switch (a)
    { case 'A' : printf("a");
    case 'B' : printf("b");
    default : printf("c");
    }
    }
    1. AB
    2. Bb
    3. Cbca
    4. Dbc
  7. 7What is the output of this C code?
    main()
    { int x=35;
    printf("%d %d %d",x==35,x=50,x>40);
    }
    1. A1 50 1
    2. B0 50 0
    3. CRuntime error
    4. DCompile time error
  8. 8Which among the following is NOT a logical or relational operator?
    1. A!=
    2. B==
    3. C||
    4. D=
  9. 9Which of the following is not a correct variable type?
    1. Afloat
    2. Breal
    3. Cint
    4. Ddouble
  10. 10Which of the following is true?
    1. A1
    2. B66
    3. C0.1
    4. D-1
    5. EAll of the above

Informationen

Beschreibung
First year First Year Quiz am Programming in C, erstellt von Faheem Ahmed am 26/03/2018.
Sprache
English
Aufrufe
1.695
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck