Quiz 2

Quiz 2

University

10 Qs

quiz-placeholder

Similar activities

NHẬN DẠNG DIODE

NHẬN DẠNG DIODE

University

10 Qs

Taller 1 (4to): Captura y codificación de los datos en SPSS

Taller 1 (4to): Captura y codificación de los datos en SPSS

University

10 Qs

¿Qué tanto se ?

¿Qué tanto se ?

11th Grade - University

10 Qs

Teaching as Vocation and Profession

Teaching as Vocation and Profession

University

10 Qs

Usahatani Faktor Modal

Usahatani Faktor Modal

University

11 Qs

Quiz Cultura Digital

Quiz Cultura Digital

2nd Grade - University

11 Qs

Contrato de arrendamiento

Contrato de arrendamiento

University

14 Qs

Games Ekotrip 2022

Games Ekotrip 2022

University

10 Qs

Quiz 2

Quiz 2

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Sneha Binu

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a constant in C?

(a) int const a;

(b) constant int a;

(c) #define a

Both (a) and (c)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet? 'printf("%d", 5 == 5);'

5

0

1

True

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an 'int' data type in C?

2 bytes

Depends on the compiler

4 bytes

1 byte

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an integer requires two bytes of storage, what is the maximum value of an unsigned integer in C?

215 – 1

216 – 1

 215

 216

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is typecasting in C?

Assigning a value to a variable

Converting a variable from one data type to another

Defining a new data type

Initializing a variable with a constant value

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

10 5

5 10

0 15

Compilation error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

25

13

11

Compilation error

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?