SCRIPTING AND PROGRAMMING -
FOUNDATIONS 100 QUESTIONS, 2025/2026
WITH CORRECT/ACCURATE ANSWERS
SCRIPTING AND PROGRAMMING -
FOUNDATIONS
1. What is a programming library used to do?
a. Slow down the development process
b. Add functionality and abilities to a program
c. Remove unnecessary code
,d. Replace the compiler
Answer: b
Rationale: Libraries contain pre-written code that developers can import to improve productivity and add
features.
2. Which language type typically uses curly
brackets { }?
a. Python
b. Ruby
c. C-style languages
d. SQL
Answer: c
Rationale: C, C++, Java, JavaScript, and C# all use braces to group code blocks.
3. What type of language is executed directly by
the browser or runtime without compiling?
a. Statically typed
b. Interpreted
c. Machine language
d. Assembly
Answer: b
Rationale: Interpreted languages run line by line in a runtime environment.
4. Which of the following is a compiled language?
a. Python
b. JavaScript
c. C++
d. HTML
Answer: c
Rationale: C++ is compiled to machine code.
, 5. Which languages support object-oriented
programming?
a. Python
b. JavaScript
c. C#
d. All of the above
Answer: d
Rationale: All listed languages have OOP features (classes, objects, inheritance, etc.).
6. A language that checks variable types during
program execution is:
a. Statically typed
b. Dynamically typed
c. Compiled
d. Low-level
Answer: b
Rationale: Dynamic typing resolves variable types at runtime.
7. Which type of language is generally easier for
beginners due to flexible typing?
a. Statically typed
b. Dynamically typed
c. Compiled
d. Assembly
Answer: b
8. You declare a variable as an integer but later
assign a string to it with no error. What type of
language is being used?