D278 ITSW 2113
Scripting & Programming
LATEST FA REVIEW
Q&S
©2024/2025
,1. Which of the following is a common scripting language used
for automating tasks in cybersecurity?
- A) HTML
- B) Python
- C) SQL
- D) CSS
ANS: B) Python
2. What type of loop will continue to execute as long as a
specified condition is true?
- A) For loop
- B) While loop
- C) Infinite loop
- D) Do-while loop
ANS: B) While loop
3. Which of the following Python libraries is widely used for
network packet manipulation in cybersecurity?
- A) NumPy
- B) Scapy
©2024/2025
, - C) Pandas
- D) Matplotlib
ANS: B) Scapy
4. In the context of programming, which concept refers to the
bundling of data with methods that operate on that data?
- A) Encapsulation
- B) Inheritance
- C) Abstraction
- D) Polymorphism
ANS: A) Encapsulation
5. Which programming structure is used to handle exceptions in
Python?
- A) if-else
- B) switch-case
- C) try-except
- D) for loop
ANS: C) try-except
### Fill-in-the-Blank Questions
©2024/2025
Scripting & Programming
LATEST FA REVIEW
Q&S
©2024/2025
,1. Which of the following is a common scripting language used
for automating tasks in cybersecurity?
- A) HTML
- B) Python
- C) SQL
- D) CSS
ANS: B) Python
2. What type of loop will continue to execute as long as a
specified condition is true?
- A) For loop
- B) While loop
- C) Infinite loop
- D) Do-while loop
ANS: B) While loop
3. Which of the following Python libraries is widely used for
network packet manipulation in cybersecurity?
- A) NumPy
- B) Scapy
©2024/2025
, - C) Pandas
- D) Matplotlib
ANS: B) Scapy
4. In the context of programming, which concept refers to the
bundling of data with methods that operate on that data?
- A) Encapsulation
- B) Inheritance
- C) Abstraction
- D) Polymorphism
ANS: A) Encapsulation
5. Which programming structure is used to handle exceptions in
Python?
- A) if-else
- B) switch-case
- C) try-except
- D) for loop
ANS: C) try-except
### Fill-in-the-Blank Questions
©2024/2025