What will be the output?
printf("%d", printf("Hello"));
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
10 questions
Demo C programming
Quiz
•
Professional Development
10 questions
Lenguaje de programación C 3BGU
Quiz
•
Professional Development
15 questions
Code X Trade
Quiz
•
Professional Development
15 questions
Lenguaje C
Quiz
•
Professional Development
10 questions
pemrograman dasar
Quiz
•
Professional Development
10 questions
Day 1 C Programming Quiz
Quiz
•
Professional Development
15 questions
C CODE MASTER
Quiz
•
Professional Development
10 questions
c program -basic
Quiz
•
Professional Development
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