week2-1

week2-1

Assessment

Flashcard

Computers

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

How do you write a comment in Python?

Back

# This is a comment

2.

FLASHCARD QUESTION

Front

Why are data types important in programming?

Back

They determine what operations can be performed on the data.

3.

FLASHCARD QUESTION

Front

Which of the following is not a characteristic of Python? Interpreted, High-level, Compiled only, Dynamically typed

Back

Compiled only

4.

FLASHCARD QUESTION

Front

What will be the output of the following Python code?
# print("String #1")
print("String #2")

Back

Only "String #2" will be printed

5.

FLASHCARD QUESTION

Front

Which of the following is a valid variable name in Python? my_var, 2value, my-var, class

Back

my_var

6.

FLASHCARD QUESTION

Front

What will be the result of the following assignment?
x = y = z = "Orange"

Back

All variables get the same value "Orange"

7.

FLASHCARD QUESTION

Front

What is the output of type("3.0") in Python?

Back

str

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?