GoConqr has a new look! Let us know what you think.

Quiz

Programming Languages

Gradstall Quiz 20 questions

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (20)

  1. 1The format identifier ‘%i’ is also used for _____ data type?
    1. Achar
    2. Bint
    3. Cfloat
    4. Dunsigned int
  2. 2what is the output?
    #include <stdio.h>
    int main()
    {
    printf("Hello World! %d \n", x);
    return 0;
    }
    1. AHello World! x;
    2. BHello World! followed by a junk value
    3. CCompile time error
    4. DHello World!
  3. 3 Escape sequences are prefixed with-
    1. A%
    2. B/
    3. C"
    4. D\
  4. 4Which one is not a reserved keyword for C?
    1. Aauto
    2. Bmain
    3. Ccase
    4. Dprintf
  5. 5What is the difference between a declaration and a definition of a variable?
    1. ABoth can occur multiple times, but a declaration must occur first.
    2. BA definition occurs once, but a declaration may occur many times.
    3. CBoth can occur multiple times, but a definition must occur first.
    4. DA declaration occurs once, but a definition may occur many times.
  6. 6My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above.
    1. Aprintf("My salary was increased by 15/%!");
    2. Bprintf("My salary was increased by 15%!");
    3. Cprintf("My salary was increased by 15'%'!");
    4. Dprintf("My salary was increased by 15%%!");
  7. 7C is a procedural programming Language-
    1. ATrue
    2. BFalse
  8. 8Step by step instructions to solve a problem-
    1. Aclass
    2. Bpseudocode
    3. Calgorithm
    4. DFlowchart
  9. 9What is/are the number of operand/operands needed to unary operator logical not(!)?
    1. A4
    2. B3
    3. C2
    4. D1
  10. 10Which is the correct sequence statements that swaps values of two statements?
    1. Aa=a+b; a=a-b; b=a-b;
    2. Ba=a+b, b=a-b; a=a-b;
    3. Ca=a-b; a=a+b; b=b-a;
    4. DNone of these

Information

Description
Quiz on Programming Languages, created by Gradstall Quiz on 06/11/2017.
Language
English
Views
2
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?