
Midterm Exam Review

Quiz
•
Computers
•
University
•
Medium
Romualdo Bautista
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, what is the scope of a variable declared with the let keyword within a block?
a) Function scope
b) Global scope
c) Block scope
d) Module scope
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about variable lifetime is true?
a) A global variable's lifetime is limited to the block in which it is defined.
b) A local variable's lifetime extends across the entire program.
c) A static variable's lifetime is the duration of the program's execution.
d) An automatic variable's lifetime is the duration of the program's execution.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes "scope" in programming?
a) The duration for which a variable exists in memory.
b) The region of the code where a variable is accessible.
c) The process of associating a variable with a value.
d) The technique used to allocate memory for variables.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, if a variable is declared outside any function or class, what is its scope?
a) Local
b) Enclosed
c) Global
d) Built-in
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary difference between "static" and "dynamic" binding?
a) Static binding occurs at runtime, whereas dynamic binding occurs at compile-time.
b) Static binding occurs at compile-time, whereas dynamic binding occurs at runtime.
c) Static binding is used only for global variables, whereas dynamic binding is used for local variables.
d) Static binding is for variables, whereas dynamic binding is for functions.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes "binding" in programming?
a) The region of the code where a variable is accessible.
b) The duration for which a variable exists in memory.
c) The process of associating a variable with a value or function.
d) The method used to manage memory allocation.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used in many programming languages to refer to a variable in the global scope from within a local scope?
a) local
b) global
c) extern
d) static
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
C#.net test 1

Quiz
•
University
8 questions
Java operators

Quiz
•
University
8 questions
Data Structure Quiz-1

Quiz
•
University
10 questions
OOPS quiz-1

Quiz
•
University
15 questions
SSK20193 OPERATING SYSTEM QUIZ 2

Quiz
•
University
15 questions
Coding club Summit Online Quiz

Quiz
•
University
10 questions
Object Oriented Programming

Quiz
•
University
10 questions
Java variables

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University