← Back to Programming

Programming final exam

Fifteen questions on all of Programming. Answer all 15 to see your score. Questions are drawn from a bank of 45, so every attempt is different.

0 of 15 answered

Question 1 of 15

In Python, which operator gives the remainder of a division?

Question 2 of 15

What does print(type(3.0)) show in Python?

Question 3 of 15

Which Python keyword starts an else-if branch?

Question 4 of 15

for i in range(1, 4): print(i) prints:

Question 5 of 15

A Python function defined with def that ends without return gives back:

Question 6 of 15

Which Python collection maps keys to values?

Question 7 of 15

"-".join(["a", "b", "c"]) returns:

Question 8 of 15

Which Python statement handles a FileNotFoundError?

Question 9 of 15

In Python classes, the method run when an object is created is:

Question 10 of 15

The Java Virtual Machine runs:

Question 11 of 15

In Java, what does 10 / 4 evaluate to?

Question 12 of 15

Java's keyword for creating a subclass is:

Question 13 of 15

A Java method annotated @Override:

Question 14 of 15

Which exception must be caught or declared in Java?

Question 15 of 15

Map<String, Integer> in Java is an example of:

Back to all units