Search Header Logo

Banana Tales Part I (1-40)

Authored by Tshewang Dema

Computers

6th - 8th Grade

Used 48+ times

Banana Tales Part I (1-40)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the programming language used in Banana Tales course?

JavaScript

CoffeeScript

Python

PHP

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following is the correct syntax to print the value of a variable named score using the print() function in Python?

print(score)

print(score())

print("score")

print('score')

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What do we use print() function for?

To execute a specific line of code.

To display the output of a program to the user.

To define a function in Python.

To declare a variable in Python.

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following is correct about lists in Python?

A list is a named collection of items.

The items have order and are indexed.

These items are accessed by using square brackets [ ].

All of the above.

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

How can you determine the number of items in a list?

Using the len() function

Using the size() method

Using the length() method

Using the count() method

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the index of the last item in a list?

0

1

The number of items in the list.

The number of items in the list minus 1.

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

In Banana Tales Part I, if we have a list named whales and we want the second whale to blow water to a height of 10, which of the following statements correctly represents the code to achieve this?

whales[2].blow(10)

whales[1].blow(10)

whales[0].blow(10)

whales[3].blow(10)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?