wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Comparing Python, Java, and JavaScript

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Which of the following languages uses curly braces `{}` to define blocks of code?

a)

Python

b)

Java

c)

JavaScript

d)

Both Java and JavaScript

e)

All Three Languages

2.

Which language is primarily used for web development?

a)

Python

b)

Java

c)

JavaScript

d)

All Three Languages

3.

Which programming language does NOT require semicolons `;` to end statements?

a)

Python

b)

Java

c)

JavaScript

d)

Both Python and JavaScript

4.

Which language(s) use object-oriented programming (OOP)?

a)

Python

b)

Java

c)

JavaScript

d)

All Three Languages

e)

Only Java and JavaScript

5.

Which language is most commonly used for enterprise-level (business) systems and Android applications?

a)

Python

b)

Java

c)

JavaScript

d)

Both Java and JavaScript

6.

Which language is generally the easiest to learn?

a)

Java

b)

Python

c)

JavaScript

d)

All Three Languages

7.

Which language is typically the most difficult to learn due to needing more lines of code?

a)

Java

b)

JavaScript

c)

Python

d)

Taylor Swiftnese

8.

Which languages have syntax features, such as variables, loops, conditionals, and functions?

a)

Java and JavaScript

b)

Python and Java

c)

Python and JavaScript

d)

All Three Languages

9.

What is a programming language?

a)

A way to communicate with computers and give them instructions to perform tasks

b)

A software used for designing graphics and images

c)

A form of mathematics used for complex calculations.

d)

A system for predicting future events based on algorithms and probabilities.

10.

Which programming language is the most versatile, being used in a variety of settings?

a)

Java

b)

JavaScript

c)

Python

d)

HTML

11.

Which statement does NOT explain why HTML and CSS are not classified as programming languages?

a)

Because they can used for designing websites

b)

Because they cannot perform calculations or execute algorithms

c)

Because they are static- they cannot use structures such as conditional statements or loops

d)

Because they cannot be interacted with by a user

12.

How are HTML and CSS different?

a)

HTML is used for adding interactivity to web pages, while CSS is used for defining the structure of web content.

b)

HTML is a programming language, while CSS is a markup language.

c)

HTML is responsible for the layout and structure of web pages, while CSS controls the overall visual appearance and style.

d)

HTML is used for creating dynamic elements, while CSS is used for adding multimedia content to websites.

13.

Which language is most likely to be found with HTML and CSS to give a webpage interactivity?

a)

JavaScript

b)

Java

c)

Python

d)

None of these

14.

Which language deals with the overall "style" of a webpage?

a)

JavaScript

b)

Python

c)

HTML

d)

CSS

e)

Java

15.

Which language deals with the content (words/pictures) displayed on a webpage?

a)

JavaScript

b)

Python

c)

HTML

d)

CSS

e)

Java