KURUKSHETRA

KURUKSHETRA

1st Grade

30 Qs

quiz-placeholder

Similar activities

Python Тотальный тест

Python Тотальный тест

KG - 12th Grade

30 Qs

A2-T13-byAmy

A2-T13-byAmy

1st - 5th Grade

25 Qs

C basics

C basics

1st - 4th Grade

25 Qs

Array

Array

1st Grade

25 Qs

tin hoc 11

tin hoc 11

1st Grade

32 Qs

DPK SEM 2 - 1

DPK SEM 2 - 1

1st Grade

30 Qs

Kuis PBO 1

Kuis PBO 1

KG - University

25 Qs

unit 2 pps

unit 2 pps

1st - 5th Grade

30 Qs

KURUKSHETRA

KURUKSHETRA

Assessment

Quiz

Computers

1st Grade

Hard

Created by

bitsbuster bitsbuster

Used 3+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Q1)What will be the output of the following code?

#include<stdio.h>

int main()

{

int n=9;

(n==9?printf("Correct\n");:printf("Wrong\n"););

return 0;

}

Correct

Wrong

Blank

Syntax error

2.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

What will be the output of the following code snippet?

int x = 10;

if (x > 5) {

if (x < 15)

printf("A");

else if (x > 20)

printf("B");

} else {

printf("C");

}

A

B

A B

No output

3.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

3) Which of the following is an exit controlled loop?

For loop

Do while loop

Do loop

While loop

4.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Which of the following are header files is used to determine the type contained in wide character data in C?

stdio.h

wctype.h

time.h

ctype.h

none of the above

5.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What will be the output of the following code snippet?

int i, j;

for (i = 1; i <= 3; i++) {

for (j = 3; j >= i; j--) {

printf("%d ", i + j);

}

printf("\n");

}

4 5 6

3 4

2

4 3 2

5 4

6

4 3 2

4 5

6

4 3 2

5 6

7

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Q1)What will be the output of the following code snippet?

int i, j;

for (i = 0, j = 10; i < j; i++, j--) {

printf("%d %d ", i, j);

}

0 10 1 9 2 8 3 7 6

0 10 1 9 2 8 3 7 4

0 10 1 9 2 8 3 7 4 6

0 10 1 9 2 3 4

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following are correct file opening modes in C?

rl

wr

rc

rb

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?