
Printf Scanf - 2

Quiz
•
Computers
•
Professional Development
•
Hard
Zohaib Hasan
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Proses Pemrograman

Quiz
•
Professional Development
15 questions
C CODE MASTER

Quiz
•
Professional Development
15 questions
Phase_2 Pre- Python Quiz

Quiz
•
Professional Development
10 questions
Java main() and Scanner

Quiz
•
Professional Development
10 questions
Arreglos

Quiz
•
7th Grade - Professio...
15 questions
Lenguaje C

Quiz
•
Professional Development
10 questions
หน่วยที่ การโปรแกรมคอมพิวเตอร์เชิงโครงสร้าง 1/66

Quiz
•
Professional Development
8 questions
Algoritmos y Programación C - Funciones y Procedimientos

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development