
Basic C Programming - Format Specifier
Authored by Hafizul Hasmie
Education
12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the format specifier for printing integers in C using printf?
%f
%d
%s
%i
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the format specifier for scanning integers in C using scanf?
%i
%s
%f
%d
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the format specifier for printing floating-point numbers in C using printf?
%f
%d
%c
%s
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the format specifier for scanning floating-point numbers in C using scanf?
%f
%lf
%float
%d
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the format specifier for printing characters in C using printf?
%c
%s
%d
%f
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the format specifier for scanning characters in C using scanf?
%c
%f
%s
%d
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you print an integer variable 'num' using printf with the correct format specifier?
%f
%s
%c
%d
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?