Storage Classes in c

Storage Classes in c

University

15 Qs

quiz-placeholder

Similar activities

JavaScript Fundamentals

JavaScript Fundamentals

9th Grade - Professional Development

10 Qs

Presentation 4

Presentation 4

University

20 Qs

Diferencias entre variables

Diferencias entre variables

6th Grade - University

11 Qs

Investigación

Investigación

University

15 Qs

Classification of Variables

Classification of Variables

11th Grade - University

15 Qs

GAM-1-Regresión Simple-IGEM

GAM-1-Regresión Simple-IGEM

University

20 Qs

Simplex Method (Quiz 2)

Simplex Method (Quiz 2)

University

15 Qs

Variables clasificacion

Variables clasificacion

University

10 Qs

Storage Classes in c

Storage Classes in c

Assessment

Quiz

Education

University

Medium

Created by

Satheesh D

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a storage class define?

Shape of a variable

Scope, visibility, and lifetime of a variable

Color of a variable

Size of a variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the scope of a variable determine?

The color of a variable

The period during which a variable retains a given value

The availability of a variable for use in the program

The weight of a variable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the extent of an object?

The size of an object

The period of time that its storage is allocated

The color of an object

The weight of an object

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which storage class has local extent and is deallocated on block/function exit?

Static

Register

Extern

Auto

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default initial value for automatic variables?

Zero

Garbage value

One

Random value

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where are external variables declared?

In the CPU register

At the beginning of a block

Outside any function

Inside a function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if a local variable and a global variable have the same name?

The global variable takes precedence

The local variable takes precedence

Both variables are deleted

An error occurs

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?