week2-1

week2-1

Assessment

Flashcard

Computers

University

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?