C programming review Flashcard

C programming review Flashcard

Assessment

Flashcard

Other

9th Grade

Practice Problem

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?