Chapter 7 Quiz

Chapter 7 Quiz

University

20 Qs

quiz-placeholder

Similar activities

Chapter 8 & 9 Implications of Payment Systems

Chapter 8 & 9 Implications of Payment Systems

University - Professional Development

16 Qs

Juliusz Słowacki (1809-1849) - ciekawostki – szybki quiz

Juliusz Słowacki (1809-1849) - ciekawostki – szybki quiz

7th Grade - University

15 Qs

entertainment

entertainment

University

20 Qs

Concours de grammaire et vocabulaire en francais!

Concours de grammaire et vocabulaire en francais!

University

20 Qs

Name the rapper

Name the rapper

KG - Professional Development

15 Qs

CONCEPTS OF THERMODYNAMICS

CONCEPTS OF THERMODYNAMICS

University

15 Qs

Gym para el Cerebro

Gym para el Cerebro

University

15 Qs

Quiz No.5: String and Number Manipulation

Quiz No.5: String and Number Manipulation

11th Grade - University

15 Qs

Chapter 7 Quiz

Chapter 7 Quiz

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Amrit Selva Ganesh

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct format specifier for printing an unsigned int?

%ld

%d

%i

%u

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type conversion is safest to prevent data loss?

Converting float to int

Converting char to int

Converting double to float

Converting int to long

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which format specifier is used to print a long int?

%d

%ld

%f

%hd

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an unsigned int?

short int

int

long int

unsigned int

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is integer overflow?

An arithmetic result is too large to represent

A variable is too large to store in memory

An error in scanf

The program crashes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to prevent overflow when multiplying two ints?

i = (long)(j * j);

i = j * (long)j;

i = (long) j * j;

i = j * j;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which cast will convert an int to double in division?

(double)dividend / divisor

(float)dividend / divisor

(int)dividend / divisor

(long)dividend / divisor

Create a free account and access millions of resources

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?