C_Programming_30(sat)

C_Programming_30(sat)

Assessment

Flashcard

Computers

University

Hard

Created by

Abi V

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which memory segment stores local variables of a function?

Back

Stack

2.

FLASHCARD QUESTION

Front

Global variables are initialized to what value by default? Options: Undefined, 0, Random Value, 1

Back

0

3.

FLASHCARD QUESTION

Front

Which segment contains the compiled machine instructions?

Back

Code Segment

4.

FLASHCARD QUESTION

Front

What happens to the stack frame of a function after it returns?

Back

It is cleared automatically

5.

FLASHCARD QUESTION

Front

Static variables are stored in which memory segment?

Back

Global/Static segment

6.

FLASHCARD QUESTION

Front

A function's local variables are stored in which segment? Code segment, Static segment, Stack, Global Segment

Back

Stack

7.

FLASHCARD QUESTION

Front

What is the scope of a global variable?

Back

Accessible by all functions in the program

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?