Debugging

Debugging

University

20 Qs

quiz-placeholder

Similar activities

PSC ALM QUIZ

PSC ALM QUIZ

University

16 Qs

EC8393_FDS_WEEKLY_TEST3(18.08.20)

EC8393_FDS_WEEKLY_TEST3(18.08.20)

University

20 Qs

A "C" Event-the backbone of modern coding.

A "C" Event-the backbone of modern coding.

University

16 Qs

XTK022

XTK022

University

25 Qs

Progdas-Q1-2023-2

Progdas-Q1-2023-2

University

25 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

EST102 : PROGRAMMING IN C TEST 1

EST102 : PROGRAMMING IN C TEST 1

University

20 Qs

QUIZ MASTERY SHOWDOWN 1ST YEAR SET 2

QUIZ MASTERY SHOWDOWN 1ST YEAR SET 2

University

15 Qs

Debugging

Debugging

Assessment

Quiz

Computers

University

Medium

Created by

Gopalakrishnan Palpandi

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?