
Round 2- Syntax ShowDown
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Tharun Kumar
Used 5+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include<stdio.h>
int main()
{
int a = 5
printf("%d", a);
return 0;
}
What’s the error?
Missing semicolon after int a = 5
Missing return statement
Wrong format specifier
No error
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include<stdio.h>
int main()
{
int num = 10;
if(num = 5)
{
printf("Equal");
}
return 0;
}
What’s the error?
if condition should use == instead of =
Missing else block
No semicolon after if
No error
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include<stdio.h>
int main()
{
int a = 5, b = 0;
printf("%d", a/b);
return 0;
}
What’s the error?
Division by zero
Missing semicolon
Wrong format specifier
No error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include<stdio.h>
int main()
{
int a;
scanf("%d", a);
return 0;
}
What’s the error?
Missing & before a in scanf
Missing format specifier
Missing semicolon
No error
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include<stdio.h>
int main()
{
char str[10] = "Hello World";
printf("%s", str);
return 0;
}
What’s the error?
String too long for array
Missing semicolon
No null character
No error
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include<stdio.h>
int main()
{
int a = 5;
int b = 0;
if(b)
{
printf("Zero");
}
return 0;
}
What’s the error?
if(b) will never run since b = 0
Wrong if syntax
printf missing
No error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include<stdio.h>
int main()
{
int x = 10;
switch(x)
{
case 10:
printf("Ten");
case 20:
printf("Twenty");
default:
printf("Other");
}
return 0;
}
What’s the error?
Missing break statements
Missing printf
Wrong switch syntax
No error
Create a free account and access millions of resources
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
20 questions
RBT Tingkatan 3 Pembangunan Produk: Penghasilan Produk
Quiz
•
1st Grade - Professio...
20 questions
Soal PTS/MID IPA Kelas 8 semester 1
Quiz
•
1st Grade - University
20 questions
Tariff Management 7 Top 1-2
Quiz
•
University
20 questions
far review
Quiz
•
University
20 questions
AVI 221 LONG QUIZ SEMI-FINALS
Quiz
•
University
25 questions
2.Sınıf Deneme Sınavı
Quiz
•
KG - University
20 questions
AppWiz round 1
Quiz
•
University
20 questions
Primitive Types
Quiz
•
10th Grade - University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
