C programming review Flashcard

C programming review Flashcard

Assessment

Flashcard

Other

9th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is the correct syntax to print in C?
Options: A. print("Hello");, B. echo("Hello");, C. printf("Hello");, D. cout << "Hello"

Back

printf("Hello");

2.

FLASHCARD QUESTION

Front

What is the correct header file to use printf() and scanf()?

Back

3.

FLASHCARD QUESTION

Front

What is the default return type of a function if not specified in C? A. void, B. char, C. int, D. float

Back

int

4.

FLASHCARD QUESTION

Front

Which of the following is a correct variable name in C? A. value_1, B. value#, C. 1value, D. @value

Back

value_1

5.

FLASHCARD QUESTION

Front

Which loop checks the condition after executing the loop body?

Back

do...while

6.

FLASHCARD QUESTION

Front

Which data type is used to store a single character? Options: A. int, B. char, C. float, D. string

Back

char

7.

FLASHCARD QUESTION

Front

What is the value of x after this code?
int x = 5;
x += 2;

Back

7

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?