
Printf Scanf - 2
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Zohaib Hasan
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
printf("%d", printf("Hello"));
Hello
5
5Hello
Hello5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output if the input given is 456?
int a;
printf("%d", scanf("%d", &a));
456
3
1
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
long int n = 123456789;
printf("%d",printf("%ld", n));
1234567899
9
10
123456789
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output if the input is 3 4?
int a,b,c ;
scanf("%d%d%n", &a, &b, &c);
printf("%d %d %d", a, b, c);
3 4 3
3 4
3 4 garbage values
3 3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output if the input is 34 35?
int a, b;
printf("%d",(scanf("%d %d",&a,&b)));
2
4
5
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output if the input is 4?
int a;
scanf("%d", a);
printf("%d", a);
4
Garbage Value
5
Runtime error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
printf("AB\bbq\bqw\ber\b\bsFt\ber");
AbqsFer
ABbqesF
ebqesF
qbqesF
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
Initiation MySQL
Quiz
•
Professional Development
10 questions
Python-Quiz-Basic-Datatypes
Quiz
•
12th Grade - Professi...
10 questions
C Programming
Quiz
•
Professional Development
10 questions
BASIC OF COMPUTER
Quiz
•
Professional Development
10 questions
QUIZ 1
Quiz
•
Professional Development
10 questions
How much do you know about NFTs?
Quiz
•
KG - Professional Dev...
10 questions
Introduction to Hyperconverged: HCI 101
Quiz
•
Professional Development
15 questions
Sains Komputer Tingkatan 5 - 1.3.3 Membina Jadual Kebenaran
Quiz
•
1st Grade - Professio...
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 Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
