BCA101T - Problem Solving Quiz

BCA101T - Problem Solving Quiz

University

17 Qs

quiz-placeholder

Similar activities

Quantitative Aptitude Series

Quantitative Aptitude Series

University

20 Qs

Programming C

Programming C

University

20 Qs

Data Type & Operator

Data Type & Operator

University

15 Qs

CSE C Section

CSE C Section

University

20 Qs

C Language Array Quiz

C Language Array Quiz

University

19 Qs

Day 1 Quiz

Day 1 Quiz

11th Grade - University

12 Qs

Programming Concepts in C

Programming Concepts in C

University

20 Qs

Numerical Computation & Expression

Numerical Computation & Expression

University

18 Qs

BCA101T - Problem Solving Quiz

BCA101T - Problem Solving Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Suchetha YIASCM

FREE Resource

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

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?