KURUKSHETRA

KURUKSHETRA

1st Grade

30 Qs

quiz-placeholder

Similar activities

C Programming Coding Assessment

C Programming Coding Assessment

1st Grade

25 Qs

Python L1 Programming Challenge

Python L1 Programming Challenge

1st - 12th Grade

30 Qs

Python

Python

KG - Professional Development

35 Qs

Pemrograman 2

Pemrograman 2

1st Grade

25 Qs

SQL_kartkowka

SQL_kartkowka

1st Grade - University

27 Qs

Arduino_Testing

Arduino_Testing

1st Grade

29 Qs

การเขียนโปรแกรมเชิงวัตถุพื้นฐาน

การเขียนโปรแกรมเชิงวัตถุพื้นฐาน

1st Grade

30 Qs

array pointer

array pointer

1st Grade

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