JavaScript and Python Flashcard Challenge

JavaScript and Python Flashcard Challenge

Assessment

Flashcard

Computers

11th Grade

Practice Problem

Medium

Created by

Wayground Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

30 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the data type of `null` in JavaScript?

Back

Object

2.

FLASHCARD QUESTION

Front

Which of the following is a mutable data type in Python? Tuple, String, List, Integer

Back

List

3.

FLASHCARD QUESTION

Front

What is the output of the following JavaScript code?
```javascript
console.log(typeof 42);
```

Back

"number"

4.

FLASHCARD QUESTION

Front

Which Python control structure is used to iterate over a sequence?

Back

For loop

5.

FLASHCARD QUESTION

Front

What is the purpose of the `return` statement in a JavaScript function?

Back

To exit a function and return a value

6.

FLASHCARD QUESTION

Front

Which of the following is a valid list comprehension in Python to create a list of squares of numbers from 0 to 4?
Options:
`[x^2 for x in range(5)]`,
`[x**2 for x in range(5)]`,
`[x*2 for x in range(5)]`,
`[x**2 for x in range(1,5)]`

Back

`[x**2 for x in range(5)]`

7.

FLASHCARD QUESTION

Front

What will be the output of the following JavaScript code?
```javascript
function greet() {
return "Hello, World!";
}
console.log(greet());
```

Back

Hello, World!

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?