pointers and arrays

pointers and arrays

University

15 Qs

quiz-placeholder

Similar activities

1-基本数据类型

1-基本数据类型

University

10 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Multimedia Video & Animation

Multimedia Video & Animation

University

20 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Basic on Operating System

Basic on Operating System

University

10 Qs

DreamWeaver CS6

DreamWeaver CS6

University

20 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

CHAPTER 1: COMPUTER SECURITY REVIEW

CHAPTER 1: COMPUTER SECURITY REVIEW

University

10 Qs

pointers and arrays

pointers and arrays

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Karen Tan

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?