Search Header Logo

BCA101T - Problem Solving Quiz

Authored by Suchetha YIASCM

Computers

University

BCA101T - Problem Solving Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code? #include int main() { int a = 3, b = 5; int t = a; a = b; b = t; printf("%d %d", a, b); return 0; }

3 3

3 5

5 5

5 3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code? #include void main() { int a = 3; int b = ++a + a++ + --a; printf("Value of b is %d", b.; }

Value of x is 12

Value of x is 13

Value of x is 10

Undefined behaviour

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the precedence of arithmetic operators (from highest to lowest)?

%, *, /, +, -

%, +, /, *, -

+, -, %, *, /

%, +, -, *, /

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not an arithmetic operation?

a * = 10;

a / = 10;

a ! = 10;

a % = 10;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code? #include int main() { int a = 10; double b = 5.6; int c; c = a + b; printf("%d", c); }

15

16

15.6

10

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which among the following is NOT a logical or relational operator?

!=

==

||

=

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the type of the following assignment expression if x is of type float and y is of type int? y = x + y;

int

float

there is no type

double

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?