C Formatted scanf
Quiz
•
Other
•
University
•
Practice Problem
•
Medium
Azrinna Muhamad
Used 6+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following code, what will be the input format for the integer values?
int a, b;
scanf("%3d %4d", &a, &b);
First integer takes 3 digits, second integer takes 4 digits
Both integers take 3 digits
Both integers take 4 digits
No specific digit limit
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct format specifier for reading a floating-point number?
%d
%f
%c
%s
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Integer input
Floating-point input
Character input
String input
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
scanf("%c", character);
scanf("%c", &character);
scanf("%d", &character);
scanf("%s", &character);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The program will read up to 10 characters, including the null terminator.
The program will read up to 9 characters and automatically add a null terminator.
The program will read exactly 9 characters without a null terminator.
The program will only read numbers.
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?
Similar Resources on Wayground
10 questions
Week 2 - Weekly Participation Activity
Quiz
•
University
10 questions
TA MODUL 4
Quiz
•
University
10 questions
Industrial Security
Quiz
•
University
10 questions
TEST 2 PISAV XII TAV Audio Paging
Quiz
•
12th Grade - Professi...
10 questions
VIVEKANANDA - HOW MUCH WE KNOW
Quiz
•
KG - Professional Dev...
10 questions
Single Buyer
Quiz
•
University
10 questions
Quizizz 5-3: Identitas Nasional
Quiz
•
University
10 questions
Arduino ELESA
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
