What is the correct format specifier for printing an integer in C?
Apakah penentu format yang betul untuk mencetak integer dalam C?
Input Output Quiz
Quiz
•
Computers
•
12th Grade
•
Hard
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
10 questions
pemograman
Quiz
•
12th Grade
10 questions
Operators in C
Quiz
•
9th - 12th Grade
9 questions
TEST D'INGRESSO_C
Quiz
•
10th - 12th Grade
10 questions
Programação em C
Quiz
•
10th - 12th Grade
10 questions
Programming Basics Basics
Quiz
•
8th Grade - University
10 questions
Unit 23 - Pop Quiz
Quiz
•
12th Grade
9 questions
47. Programming 1 : User Input & Display Output
Quiz
•
9th - 12th Grade
8 questions
Variables and Data Types in C
Quiz
•
12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University