PSAP QUIZ 3

PSAP QUIZ 3

University

7 Qs

quiz-placeholder

Similar activities

Struct

Struct

University

8 Qs

Programmeerimiskeeled

Programmeerimiskeeled

10th Grade - University

12 Qs

การเขียนโปรแกรมโดยใช้ภาษาซี

การเขียนโปรแกรมโดยใช้ภาษาซี

10th Grade - Professional Development

5 Qs

ฟังก์ชั่น

ฟังก์ชั่น

1st Grade - Professional Development

10 Qs

C Basics

C Basics

University

12 Qs

Demo Class Quiz

Demo Class Quiz

University

6 Qs

MIND ZONE 2.2 [LEVEL 2]

MIND ZONE 2.2 [LEVEL 2]

University

10 Qs

OS with C programming

OS with C programming

University

12 Qs

PSAP QUIZ 3

PSAP QUIZ 3

Assessment

Quiz

Computers

University

Hard

Created by

A M

Used 2+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?

#include <stdio.h>

int main() {

int x = 5;

printf("%d", x++ * x++);

return 0;

}

25

30

36

26

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?

#include <stdio.h>

int main() {

int x = 5, y = 6, z = 7;

printf("%d", x < y > z);

return 0;

}

1

0

5

6

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?

#include <stdio.h>

int main() {

int x = 7;

printf("%d", x % 3);

return 0;

}

1

3

7

2

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?

#include <stdio.h>

int main() {

int x = 5;

printf("%d", x == 5);

return 0;

}

1

0

5

True

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?

#include <stdio.h>

int main() {

int x = 5;

printf("%d", x = 6);

return 0;

}

6

7

1

Compile Time Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?

#include <stdio.h>

int main() {

int x = 5;

printf("%d", x || 0);

return 0;

}

1

0

5

True

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?

#include <stdio.h>

int main() {

int x = 5;

printf("%d", x << 2);

return 0;

}

20

5

10

25