What is the difference between getchar() and scanf()?
SLG IPC144 Week 11

Quiz
•
Computers
•
Professional Development
•
Medium
Novell Rasam
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
OPEN ENDED QUESTION
2 mins • 1 pt
Evaluate responses using AI:
OFF
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the case of a mismatch between the conversion specifier and the next character in the buffer, scanf()...
leaves the offending character in the buffer and returns to the caller
extracts the offending character from the buffer and returns to the caller
throws an exception
clears the buffer
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When using scanf() to accept two variables, in the scanf() you separate the conversion specifiers with a space.
TRUE
FALSE
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does %*c mean in scanf()?
Extract a character from the buffer and throw it out.
Extract a character from the buffer and store it to a variable.
Leave the character in the buffer.
Extract a string from the buffer.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
scanf() returns...
void
the number of addresses successfully filled
0 or 1
the number of addresses that failed to fill
6.
OPEN ENDED QUESTION
3 mins • 1 pt
What is the difference between putchar() and printf()?
Evaluate responses using AI:
OFF
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of printf("%010d", 4321);
0000004321
4321
4321
00000000004321
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
FORMATIVE ASSESSMENT 2 OOPS

Quiz
•
Professional Development
10 questions
pemrograman dasar

Quiz
•
Professional Development
20 questions
Database Basics

Quiz
•
Professional Development
13 questions
MindSpace Computers C Quiz-1 2025

Quiz
•
Professional Development
10 questions
Quiz String

Quiz
•
Professional Development
10 questions
Basic Programming Kotlin

Quiz
•
Professional Development
10 questions
4. String

Quiz
•
Professional Development
20 questions
PL SQL

Quiz
•
University - Professi...
Popular Resources on Quizizz
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