26. Which of the following is an example of a compiled programming language?
a) Python
b) JavaScript
c) Ruby
d) C++
27. What is the purpose of a function in programming?
a) Looping
b) Decision making
c) Code reusability
d) Error handling
28. Which programming language is used for database management and querying?
a) Java
b) C++
c) Python
d) SQL
29. What is the output of the following code snippet in Java: System.out.println(“10” + 20)?
a) 1020
b) 30
c) 102
d) Error
30. In Python, how do you define a list?
a) list x = [1, 2, 3]
b) x = list(1, 2, 3)
c) x = [1, 2, 3]
d) x = (1, 2, 3)