
Python Basisc
Flashcard
•
Computers
•
University
•
Hard
Beena Venkatesh
FREE Resource
Student preview

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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?