
Round 2- Syntax ShowDown

Quiz
•
Other
•
University
•
Hard
Tharun Kumar
Used 5+ times
FREE Resource
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
Similar Resources on Wayground
20 questions
Codestry Round 2

Quiz
•
University
20 questions
TECHTRIX2025 BUGHUNT SET1

Quiz
•
University
25 questions
Introduction to Python and Data Analytics Basics

Quiz
•
University
24 questions
Round 3: Coding Round

Quiz
•
University
20 questions
Type Conversions and Computation

Quiz
•
University
20 questions
TECHTRIX2025 BUGHUNT SET5

Quiz
•
University
25 questions
c language

Quiz
•
University
30 questions
Repaso C Cs50

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Other
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University