Debugging

Debugging

University

20 Qs

quiz-placeholder

Similar activities

Trắc nghiệm excel - 1

Trắc nghiệm excel - 1

KG - University

20 Qs

Saintek Campus Day 2020

Saintek Campus Day 2020

University

16 Qs

Word Processing Lessons 3 and 4 Review

Word Processing Lessons 3 and 4 Review

KG - University

20 Qs

Evaluasi 2 (Mathematica-Phyton)

Evaluasi 2 (Mathematica-Phyton)

University

20 Qs

BD 1 - SQL - geral

BD 1 - SQL - geral

University

20 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

07 - Map

07 - Map

University

15 Qs

Simulacro ADS1 EC2

Simulacro ADS1 EC2

University

20 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