Computers

University

Image

Beginning C Programming

280
plays

23 questions

Show Answers
See Preview
  • Multiple Choice
    Please save your changes before editing any questions.
    1 minute
    1 pt
    How will you print \n on the screen?
    printf("\n");
    echo "\\n";
    printf('\n');
    printf("\\n");
  • Multiple Choice
    Please save your changes before editing any questions.
    1 minute
    1 pt
    We want to round off x, a float, to an int value, The correct way to do is
    y = (int)(x + 0.5)
    y = int(x + 0.5)
    y = (int)x + 0.5
    y = (int)((int)x + 0.5)
  • Multiple Choice
    Please save your changes before editing any questions.
    30 seconds
    1 pt
    What punctuation is used to indicate the beginning and end of code blocks?
    { }
    -> <-
    BEGIN and END
    ( and )
  • Explore all questions with a free account

    Already have an account?