Skill Development - Debugging Practice1

Skill Development - Debugging Practice1

10th Grade - Professional Development

10 Qs

quiz-placeholder

Similar activities

To Change or Not to Change?

To Change or Not to Change?

12th Grade

10 Qs

Modulo 3. Interconexión de dispositivos

Modulo 3. Interconexión de dispositivos

University

10 Qs

Computer Quiz For NM(06.05.2021)

Computer Quiz For NM(06.05.2021)

11th - 12th Grade

15 Qs

SHORTCUT PADA KEYBOARD

SHORTCUT PADA KEYBOARD

10th - 12th Grade

10 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Wifi y bluetooth

Wifi y bluetooth

10th Grade

10 Qs

TMK TAHUN 6-PENGATURCARAAN-  UNIT 1 CIKGU SHAH

TMK TAHUN 6-PENGATURCARAAN- UNIT 1 CIKGU SHAH

12th Grade

15 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

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?