Quiz 2

Quiz 2

University

10 Qs

quiz-placeholder

Similar activities

Aux  - Intro a la Informática (Python)

Aux - Intro a la Informática (Python)

University

10 Qs

RELIABILITY

RELIABILITY

University

10 Qs

Activity - Topic 4

Activity - Topic 4

University

10 Qs

Introduction to C Programming

Introduction to C Programming

University

10 Qs

Java set 1

Java set 1

University

10 Qs

Backend Sigfox

Backend Sigfox

University

6 Qs

Day -1

Day -1

University

15 Qs

Autoevaluación 1 : Introducción capa de red

Autoevaluación 1 : Introducción capa de red

University

10 Qs

Quiz 2

Quiz 2

Assessment

Quiz

Other

University

Hard

Created by

Sneha Binu

FREE Resource

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

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?