#include<stdio.h>
int main()
{
int a = 5, b = 10;
printf("%d", a+++b);
return 0;
}
Round 3-Tech Titans
Quiz
•
Other
•
University
•
Hard
Tharun Kumar
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include<stdio.h>
int main()
{
int a = 5, b = 10;
printf("%d", a+++b);
return 0;
}
15
35
Compile error
45
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include<stdio.h>
void fun(int n)
{
if(n == 0)
return;
fun(n-1);
printf("%d ", n);
}
int main()
{
fun(3);
return 0;
}
3 2 1
1 2 3
0 1 2 3
3 2
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include<stdio.h>
int main()
{
int a = 5;
printf("%d %d %d", a, a<<1, a>>1);
return 0;
}
5 10 2
5 2 10
5 5 5
Compile error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include<stdio.h>
int main()
{
int a = 5;
printf("%d", sizeof(a++));
printf("%d", a);
return 0;
}
4 5
4 6
8 5
Compile error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include<stdio.h>
int main()
{
int x = 0;
if(x = 10)
printf("Yes");
else printf("No");
return 0;
}
Yes
No
Compile error
Runtime error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include<stdio.h>
int main()
{
int a = 10;
if(a++ > 10)
printf("A");
else if(a++ > 10)
printf("B");
else
printf("C");
return 0;
}
A
B
C
Compile error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include<stdio.h>
int main()
{
char str[] = "abc";
printf("%c", 2[str]);
return 0;
}
a
b
c
Compile error
15 questions
DEPTH DIVE
Quiz
•
University
18 questions
If else Quiz
Quiz
•
University
15 questions
Structures and Union
Quiz
•
University
20 questions
Type Conversions and Computation
Quiz
•
University
20 questions
Round 2
Quiz
•
University
20 questions
Codestry Round 2
Quiz
•
University
15 questions
Quiz on Object Oriented Programming and Java
Quiz
•
University
24 questions
Round 3: Coding Round
Quiz
•
University
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