Skill Development - Debugging Practice1

Skill Development - Debugging Practice1

10th Grade - Professional Development

10 Qs

quiz-placeholder

Similar activities

TMK  TAHUN 4

TMK TAHUN 4

10th Grade

10 Qs

Linux: Users and Groups

Linux: Users and Groups

9th Grade - University

14 Qs

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 5

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 5

1st - 10th Grade

10 Qs

2AB. ITIC-Representación Interna de Datos

2AB. ITIC-Representación Interna de Datos

10th - 11th Grade

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

UBL JARKOM CHAP8

UBL JARKOM CHAP8

University

10 Qs

PLAL Agile Onboarding

PLAL Agile Onboarding

Professional Development

10 Qs

HEAP TREE

HEAP TREE

University

11 Qs

Skill Development - Debugging Practice1

Skill Development - Debugging Practice1

Assessment

Quiz

Computers

10th Grade - Professional Development

Hard

Created by

Maniraj Officer

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the final value of x in the following C code?

#include <stdio.h>

void main()

{

int x = 5 * 9 / 3 + 9;

}

3.75

Depends on Compiler

24

3

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many times i value is checked in the following C program?

#include <stdio.h>

int main()

{

int i = 0;

while (i < 3)

i++;

printf("In while loop\n");

}

2

3

4

1

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of this C code?

#include <stdio.h>

main()

{

int n = 0, m = 0;

if (n > 0)

if (m > 0)

printf("True");

else

printf("False");

}

True

False

No Output will be Printed

Run Time Error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main()

{

int a = 1, b = 1, c;

c = a++ + b;

printf("%d, %d", a, b);

}

a = 1, b = 1

a = 2, b = 1

a = 1, b = 2

a = 2, b = 2

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following C# code?

int i, j = 1, k;

for (i = 0; i < 3; i++)

{

k = j++ - ++j;

Console.Write(k + " ");

}

-4 -2 -2

-6 -4 -1

-2 -2 -2

-4 -4 -4

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Find out the error, if any in the below program?

#include<stdio.h>

int main()

{

int i = 1;

switch(i)

{

case 1:

printf("Case1");

break;

case 1*2+2:

printf("Case2");

break;

}

return 0;

}

Error: in switch statement

Error: in case 1*2+4 statement

Error: No default specified

No Error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following C# code?

struct abc

{

int i;

}

class Program

{

static void Main(string[] args)

{

abc x = new abc();

abc z;

x.i = 10;

z = x;

z.i = 15;

console.Writeline(x.i + " " + y.i)

}

}

10 10

10 15

15 10

15 15

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?