Search Header Logo

Discovery Piscine -- Day 2

Authored by Quiz Master

Computers

9th - 12th Grade

Used 2+ times

Discovery Piscine -- Day 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A function that runs code

A container for storing values

A Python operator

A type of comment

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct way to assign a string to a variable?

name = "Alice"

string name = "Alice"

name = Alice

name = "Alice";

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of this code?

42AbuDhabi

42 Abu Dhabi

42Abu Dhabi

42 AbuDhabi

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to take input from the user (receive user input)?

take()

get()

get_input()

input()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if a = input(), How do you convert 'a' to an integer?

int(a)

int(input())

num(a)

convert_int(a)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does string concatenation mean?

Comparing two strings

Splitting a string

Repeating a string

Joining two strings

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will correctly display a user’s full name using variables first and last?
(without space)

print(first++last)

display(first+last)

print(last+first)

print(first+last)

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?