c operators

c operators

Professional Development

5 Qs

quiz-placeholder

Similar activities

introduction to visual programming

introduction to visual programming

Professional Development

8 Qs

HTML quiz

HTML quiz

Professional Development

10 Qs

TUTOR VIRTUAL

TUTOR VIRTUAL

Professional Development

10 Qs

HND Computing Unit 17 Network Infrastructure Security

HND Computing Unit 17 Network Infrastructure Security

University - Professional Development

10 Qs

 ครั้งที่ 2. ม.4 Servo กับ อัลตราโซนิกส์ (ultrasonics)

ครั้งที่ 2. ม.4 Servo กับ อัลตราโซนิกส์ (ultrasonics)

Professional Development

10 Qs

Evaluación de Salida - semana 4

Evaluación de Salida - semana 4

Professional Development

10 Qs

ACL_Quiz

ACL_Quiz

Professional Development

10 Qs

Untitled Quiz

Untitled Quiz

Professional Development

10 Qs

c operators

c operators

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Dilkshwar pandey

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

. What is the output of this C code?

int main()

{

int i = -5;

int k = i %4;

printf("%d\n", k);

}

· Compile time error

·

·

·

-1

1

none

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is the output of this C code?

int main()

{

int i = 5;

int l = i / -4;

int k = i % -4;

printf("%d %d\n", l, k);

return 0;

}

-1 1

1 -1

compile error

run time error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this C code?

int main()

{

int i = 7;

i = i / 4;

printf("%d\n", i);

return 0;

}

run time error

1

3

7

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of x in this C code?

void main()

{

int x = 4 *5 / 2 + 9;

}

19

46

1.9

compile time error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this C code?

void main()

{

int x = 4.3 % 2;

printf("Value of x is %d", x);

}

2

2.15

compile time error

0