
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
15 questions
Basic Java Quiz

Quiz
•
University
15 questions
BASIC C PROGRAMMING

Quiz
•
University
6 questions
Inheritance and polymorphism

Quiz
•
University
10 questions
Unit 1 - Classes and Objects

Quiz
•
University
15 questions
Visual Basic

Quiz
•
University
10 questions
C++ Functions

Quiz
•
University
15 questions
Java

Quiz
•
University
14 questions
Lets explore Java

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University