C_Programming_30(sat)
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Abi V
Used 3+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which memory segment stores local variables of a function?
Code Segment
Stack
Global Segment
Static Segment
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Global variables are initialized to what value by default?
Undefined
0
Random Value
1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which segment contains the compiled machine instructions?
Stack
Code Segment
Global Segment
Static Segment
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens to the stack frame of a function after it returns?
It remains in memory
It is cleared automatically
It is copied to the heap
It is moved to the static segment
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Static variables are stored in which memory segment?
Stack
Code segment
Global/Static segment
Heap
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function's local variables are stored in which segment?
Code segment
Static segment
Stack
Global Segment
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the scope of a global variable?
Limited to the function it is declared in
Accessible by all functions in the program
Limited to the file it is declared in
Limited to the code segment
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
16 questions
LA3.C3: Variables
Quiz
•
9th Grade - University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
20 questions
Java Quiz 1
Quiz
•
University
20 questions
Software Processes
Quiz
•
University
20 questions
TEST1.PY
Quiz
•
10th Grade - University
16 questions
Quiz #1
Quiz
•
University
20 questions
Telecommunications
Quiz
•
University
18 questions
Fiber Optic
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
