pointers and arrays

pointers and arrays

University

15 Qs

quiz-placeholder

Similar activities

MESYUARAT KE-3 MYTECC ASSEMBLY: TOGETHER WE BIND

MESYUARAT KE-3 MYTECC ASSEMBLY: TOGETHER WE BIND

University

20 Qs

Software Testing

Software Testing

University

10 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

Fun with Computer Architecture

Fun with Computer Architecture

University

15 Qs

C Programming Unit-1 Test-2

C Programming Unit-1 Test-2

University

20 Qs

C++ Array Quiz

C++ Array Quiz

University

10 Qs

TEST1.PY

TEST1.PY

10th Grade - University

20 Qs

Information System and Modern Organization part 1

Information System and Modern Organization part 1

University

14 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

Create a free account and access millions of resources

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?