Skill Development - Debugging Practice1

Skill Development - Debugging Practice1

10th Grade - Professional Development

10 Qs

quiz-placeholder

Similar activities

LOP 10A3

LOP 10A3

10th Grade

10 Qs

Post Test #4 - Python Fundamental #3

Post Test #4 - Python Fundamental #3

University

10 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

حاسب2 / اختبار الوحدة الثالثة

حاسب2 / اختبار الوحدة الثالثة

10th - 12th Grade

10 Qs

BÀI TẬP T7 - KHỞI ĐỘNG

BÀI TẬP T7 - KHỞI ĐỘNG

10th - 12th Grade

10 Qs

Pengenalan Perwakilan Data

Pengenalan Perwakilan Data

12th Grade

10 Qs

AB1401 Case Study: Facebook

AB1401 Case Study: Facebook

University

12 Qs

Impresa e siti web

Impresa e siti web

8th - 12th Grade

10 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?