Python Basisc

Python Basisc

Assessment

Flashcard

Computers

University

Hard

Created by

Beena Venkatesh

FREE Resource

Student preview

quiz-placeholder

21 questions

Show all answers

1.

FLASHCARD QUESTION

Front

To display something on the screen, use this command:

Back

print()

2.

FLASHCARD QUESTION

Front

To display the following on screen Hello World! the following command should be used:Options: print(Hello World!), print("Hello World!"), print("Hello World" + !), print"(Hello World!)"

Back

print("Hello World!")

3.

FLASHCARD QUESTION

Front

How would you assign an integer to a variable?

Back

new_var = 4

4.

FLASHCARD QUESTION

Front

How would you print a text string?

Back

print ("Hello!")

5.

FLASHCARD QUESTION

Front

Which symbol do we use if we want to add a comment to our code? Options: @, #, *, &

Back

#

6.

FLASHCARD QUESTION

Front

To create a variable named new_var and assign it a value of 81 divided by 9, which statement would you use?

Back

new_var = 81 / 9

7.

FLASHCARD QUESTION

Front

Assign 4 to the power of 3 to the variable new_var.

Back

new_var = 4 ** 3

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?