Search Header Logo

Input Output Quiz

Authored by MARAZIAH Moe

Computers

12th Grade

Input Output Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct format specifier for printing an integer in C?

Apakah penentu format yang betul untuk mencetak integer dalam C?

%c

%f

%d

%s

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of printf("%.2f", 3.14159);?

Apakah yang akan menjadi output printf("%.2f", 3.14159);?

3.14159

3.14

3.1

3.141

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you take user input for a string in C?

Bagaimanakah anda mengambil input pengguna untuk rentetan dalam C?

scanf("%s", &string);

scanf("%d", &string);

scanf("%f", &string);

scanf("%c", &string);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the \n escape sequence do in a printf statement?

Apakah yang dilakukan oleh urutan pelarian \n dalam pernyataan printf?

a) Prints a space

b) Starts a new line

c) Adds a tab

d) Ends the program

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with this statement: scanf("%d", number);?

Apakah yang salah dengan pernyataan ini: scanf("%d", number);?

a) %d should be %f

b) The variable name should be in quotes

c) The & symbol is missing before number

d) Nothing is wrong

Access all questions and much more by creating a free account

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?