21. What is the purpose of a “for” loop in programming?
a) Looping a specific number of times
b) Decision making
c) Error handling
d) Code optimization
Answer: a) Looping a specific number of times
22. Which of the following is NOT a programming language?
a) HTML
b) CSS
c) JavaScript
d) JSON
Answer: d) JSON
23. What is the output of the following code snippet in JavaScript: console.log(5 + “5”)?
a) 55
b) 10
c) 5
d) Error
Answer: a) 55
24. Which programming language is used for system administration and automation tasks?
a) Java
b) PowerShell
c) Python
d) Perl
Answer: b) PowerShell
25. What does the acronym “HTML” stand for?
a) HyperText Markup Language
b) High-Level Programming Language
c) Hypertext Transfer Protocol
d) Home Tool Markup Language
Answer: a) HyperText Markup Language