Debugging

Debugging

University

20 Qs

quiz-placeholder

Similar activities

Bermain Gambar

Bermain Gambar

1st Grade - Professional Development

15 Qs

GIT Workshop 2021

GIT Workshop 2021

University

20 Qs

Exploring Portfolio Strategies and Analysis

Exploring Portfolio Strategies and Analysis

University

20 Qs

Spreadsheet

Spreadsheet

8th Grade - University

20 Qs

Web Development and Programming

Web Development and Programming

University

20 Qs

GIT Básico

GIT Básico

University

18 Qs

data structures1

data structures1

University

20 Qs

Quiz on List and Tuples

Quiz on List and Tuples

University

16 Qs

Debugging

Debugging

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Gopalakrishnan Palpandi

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...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

 Question: What is the error?

#include <stdio.h>

 int main() {

    int arr[5] = {1, 2, 3, 4, 5};

    for(int i = 0; i <= 5; i++) {

        printf("%d ", arr[i]);

    }

    return 0;

}

  1. Loop

  1. Array

  1. Print

  1. Size

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to declare a variable of type integer in C?

int x;

integer x;

int x = int;

x int;

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question: What is the error?

#include <stdio.h>

int main() {

    int a = 5, b = 10;

    int sum = a + b;

    printf("Sum: %d", sum);

}

Sum

Return

Print

Int

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which function is used to read input from the keyboard?

print()

getchar()

scanf()

input()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question: What is the error?

#include <stdio.h>

int main() {

    int x = 10;

    if(x = 5) {

        printf("x is 5");

    } else {

        printf("x is not 5");

    }

    return 0;

}

If

Else

Print

Declare

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a valid identifier in C?

int number;

2ndNumber;

float number$;

_number;

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question: What is the error?

#include <stdio.h>

int main() {

    int x;

    printf("Value of x: %d", x);

    return 0;

}

Print

Declare

init

Return

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?

Discover more resources for Computers