#include int main(){
int x;
x=10,20,30;
printf("%d",x);
return 0;
}
TECHFEST QUALIFYING ROUND
Quiz
•
Computers
•
University
•
Hard
RAHUL SONAWANE
Used 9+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include int main(){
int x;
x=10,20,30;
printf("%d",x);
return 0;
}
20
10
30
ERROR
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include int main()
{
int a=2,b=7,c=10;
c=a==b;
printf("%d",c);
return 0;
}
-1
0
1
11
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int main() {
int arr[] = {1, 2, 4, 5, 6};
int n = 6;
int sum = n * (n + 1) / 2;
int actual_sum = 0;
for (int i = 0; i < n - 1; i++) {
actual_sum += arr[i];
}
int missing_number = sum - actual_sum;
printf("Missing number is %d\n", missing_number);
return 0;
}
5
4
3
2
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int main() {
int arr[3][3] = {{1, 2, 3},{4, 5, 6},{7, 8, 9}};
int i, j;
for (i = 0; i < 3; i++) {
for (j = 0; j < 3; j++) {
printf("%d ", arr[i][j]);
}
printf("\n");
}
return 0;
7 8 9
4 5 6
1 2 3
3 2 1
6 5 4
9 8 7
1 4 7
2 5 8
3 6 9
1 2 3
4 5 6
7 8 9
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int main() {
int n;
for(n = 7; n!=0; n--)
printf("n = %d", n--);
getchar();
return 0;
}
Error
n = 7
Infinite Loop
n = 6
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int main(){
int i=0;
while ( +(+i--) != 0)
i-=i++;
printf("%d",i);
return 0;
}
0
1
-1
Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int main(){
if (printf("cIsgood"))
printf("I know c");
else
printf("I know c++");
return 0;
}
cIsgoodIknow c
Error
I know c++
cIsgoodIknowc++
25 questions
C PROGRAMMING
Quiz
•
University
15 questions
C programming
Quiz
•
University
15 questions
Milking Minds 2 17-01-24
Quiz
•
University
20 questions
CSE C Section
Quiz
•
University
20 questions
Programming Concepts in C
Quiz
•
University
15 questions
BASIC C PROGRAMMING QUIZ
Quiz
•
University
20 questions
Quantitative Aptitude Series
Quiz
•
University
20 questions
Pointers
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