Search Header Logo

Day 2 C Programming quiz

Authored by Phantom Techlogics

Computers

Professional Development

Used 4+ times

Day 2 C Programming quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Operator % in C Language is called.?

Percentage Operator

Modulo Operator

Division Operator

Quotient Operator

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int b = 5 + 4.867;

b is ........

b = 5

b = 9.867

b = 9

compiler error.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

int a=0;

a = 4 + 5/2*10 + 5;

printf("%d", a);


return 0;

}

The output of the above code is,

29

None of these

5

34

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose a a valid type of variable name

sum

sum$value

float

piece flag

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Operators used in C programming language

Arithmetic Operators

Logical Operators

Conditional Operator

All the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A local variable is stored in ___

Stack segment

Code segment

Heap segment

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When applied to a variable, what does the unary "&" operator yield?

The variable's address

the variable's right value

the variable's binary form

the variable's value

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?