Search Header Logo

Storage Classes in c

Authored by Satheesh D

Education

University

Used 3+ times

Storage Classes in c
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?

Discover more resources for Education