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

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

University

20 Qs

quiz-placeholder

Similar activities

Capsule session 1

Capsule session 1

University

19 Qs

Programming Skills C/C++

Programming Skills C/C++

University

25 Qs

Programming concepts in c - Quizizz-III

Programming concepts in c - Quizizz-III

University

20 Qs

c-basics-1

c-basics-1

10th Grade - Professional Development

24 Qs

C Programming

C Programming

University

20 Qs

FDS quiz 2

FDS quiz 2

University

20 Qs

TECHFEST QUALIFYING ROUND

TECHFEST QUALIFYING ROUND

University

20 Qs

'C'Programming Basics - Prepared by Feroz Khan A.B

'C'Programming Basics - Prepared by Feroz Khan A.B

University

15 Qs

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

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

Assessment

Quiz

Computers

University

Hard

Created by

srilatha Yarasu

Used 3+ times

FREE Resource

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

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?