Input Output Quiz

Input Output Quiz

12th Grade

5 Qs

quiz-placeholder

Similar activities

การเขียนโปรแกรมภาษาซี

การเขียนโปรแกรมภาษาซี

12th Grade

10 Qs

C++ Basics

C++ Basics

7th - 12th Grade

10 Qs

C Language-1( Basics)

C Language-1( Basics)

12th Grade

10 Qs

L.5 . PYTHON - VARIABLES AND OPERATORS - 2

L.5 . PYTHON - VARIABLES AND OPERATORS - 2

12th Grade

10 Qs

Latihan soal Programming

Latihan soal Programming

1st - 12th Grade

10 Qs

Skill Development - Debugging Practice1

Skill Development - Debugging Practice1

10th Grade - Professional Development

10 Qs

ฟังก์ชั่น

ฟังก์ชั่น

1st Grade - Professional Development

10 Qs

Operators in C

Operators in C

9th - 12th Grade

10 Qs

Input Output Quiz

Input Output Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

MARAZIAH Moe

FREE Resource

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