
pointers and arrays
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Karen Tan
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
OPEN ENDED QUESTION
5 mins • 10 pts
Identify and write the error and the correct code line from the code snippet below:
int i = 0;
while (i < 5);
printf("%d ", i++);
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
5 mins • 10 pts
Identify and write the error and the correct code line from the code snippet below:
Description: a loop for an array with 5 elements
for (int i = 0; i <= 5; i++) {
printf("%d ", i);
}
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
5 mins • 10 pts
Identify and write the error and the correct code line from the code snippet below:
for (int i = 0; i < 5; i--) {
printf("%d ", i);
}
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
5 mins • 10 pts
Identify and write the error and the correct code line from the code snippet below:
int i;
while (i < 5) {
printf("%d ", i++);
}
Evaluate responses using AI:
OFF
5.
OPEN ENDED QUESTION
5 mins • 10 pts
Identify and write the error and the correct code line from the code snippet below:
for (int i = 0; i < 5; i++) {
if (i == 3);
break;
printf("%d ", i);
}
Evaluate responses using AI:
OFF
6.
OPEN ENDED QUESTION
5 mins • 10 pts
Identify and write the error and the correct code line from the code snippet below:
description: add function accepts 2 integer parameters and returns the integer sum result
int add(int a, int b) {
int sum = a + b;
}
Evaluate responses using AI:
OFF
7.
OPEN ENDED QUESTION
5 mins • 10 pts
Identify and write the error and the correct code line from the code snippet below:
void multiply(int a, int b) {
return a * b;
}
Evaluate responses using AI:
OFF
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
10 questions
computer Networks
Quiz
•
University
18 questions
12AIT - All About W3C <3
Quiz
•
10th Grade - University
10 questions
Industry 4.0 Unit 1
Quiz
•
University
10 questions
Scratch
Quiz
•
KG - Professional Dev...
16 questions
E-Commerce
Quiz
•
University - Professi...
20 questions
Control Structures C#
Quiz
•
University
15 questions
Object Oriented Programming Assessment 1
Quiz
•
University
19 questions
Programación Básica Prácticas Tema 2
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
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
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
