Beginning C Programming

Beginning C Programming

Assessment

Flashcard

Computers

University

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

23 questions

Show all answers

1.

FLASHCARD QUESTION

Front

How will you print \n on the screen? Options: printf("\n");, echo "\\n";, printf('\n');, printf("\\n");

Back

printf("\\n");

2.

FLASHCARD QUESTION

Front

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)

Back

y = (int)(x + 0.5)

3.

FLASHCARD QUESTION

Front

What punctuation is used to indicate the beginning and end of code blocks?

Back

{ }

4.

FLASHCARD QUESTION

Front

Which of the following is not a correct variable type? float, real, int, double

Back

real

5.

FLASHCARD QUESTION

Front

Which of the following is the correct operator to compare two variables? Options: :=, =, equal, ==

Back

==

6.

FLASHCARD QUESTION

Front

Which symbol terminates a C statement?

Back

;

7.

FLASHCARD QUESTION

Front

How to comment in C language?

Back

//Comment

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?