
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
Access all questions and much more by creating a free account
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
Lourdes Amaranta Ayala Gracia
Quiz
•
8th Grade - University
16 questions
W6_BIS
Quiz
•
University
10 questions
cp06-01-1D-Array
Quiz
•
University
20 questions
DreamWeaver CS6
Quiz
•
University
10 questions
CHAPTER 1: COMPUTER SECURITY REVIEW
Quiz
•
University
13 questions
Chap 1: What is a program made of?
Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
19 questions
DSA Quest 1.0
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
