Search Header Logo

'C' Operators in c, If statement(TEST-2)

Authored by srilatha Yarasu

Computers

University

Used 3+ times

'C' Operators in c, If statement(TEST-2)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1) Choose a correct statement.

int a = 12 + 3 * 5 / 4 - 10

A) 12, 3, 5, 4 and 10 are Operators.

+, -, * and / are Operands.

= is an increment operator.

B) 12, 3, 5, 4 and 10 are Operands.

+, -, * and / are Operators.

= is decrement operator.

C) 12, 3, 5, 4 and 10 are Operands.

+, -, * and / are Operators.

= is an assignment operator.

D) 12, 3, 5, 4 and 10 are Operands.

+, -, * and / are Logical Operators.

= is an assignment operator.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

2) Operator % in C Language is called.?

Percentage Operator

Quotient Operator

Modulus

) Division

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose a right statement.

int a = 10 + 4.867;

a = 10

a = 14.867

a = 14

compiler error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose a right statement.

float var = 3.5 + 4.5;

A)

B

C)

D)

var = 8.0

) var = 8

var = 7

var = 0.0

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose a right statement.

int a = 5/2;

int b = 5.0/2;

int c = 5 / 2.0;

int d = 5.0/2.0;

a = 2, b = 2, c = 2, d= 2

a = 2, b = 2.0, c = 2, d= 2.0

a=2.0, b=2.5, c=2.5, d=2.5

a=2.0, b=2.0, c=2.0, d=2.0

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Find the output of the given C program.

#include<stdio.h>

int main()

{

printf("%d ",5>2 && 1<2);

printf("%d ", 4>5 || 2<1);

printf("%d ",!(2>3));

return 0;

}


Q4) Find

0 1 0

0 1 1

1 0 0

1 0 1

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Find the output of the given C program.

#include< stdio.h>

int main()

{

int x, y, z;

x = 9;

y = 10;

z = (x == y);

printf("%d", z);

return 0;

}

1

Garbage Value

0

None of these

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?