Python introduction

Quiz
•
Computers
•
University
•
Medium
ALBERTO HILARIO
Used 134+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command will display the text 'Hello world!' on the screen?
print(Hello world!)
print "Hello world!"
print("Hello world!")
print = "Hello world!"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command will ask the user his/her age correctly?
age = input("How old are you?")
age = input(How old are you?)
input("How old are you?") = age
how_old_are_you = input()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function will convert a number to a string?
int()
str()
chr()
ord()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of this command: print ("5" + "3")
8
"8"
"5" + "3"
53
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function will convert a string containing only digits to a number?
int()
srt()
chr()
ord()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional statement will be executed if the variable x is less than 20?
if x > 20:
if x <> 20:
if x == 20:
if x < 20:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these tests checks if the variable x is the same as 'Hello'?
x = "Hello"
x != "Hello"
x == "Hello"
x <> "Hello"
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Basics 1

Quiz
•
University
10 questions
python quiz

Quiz
•
6th Grade - Professio...
15 questions
Python Quiz 1 : Variable, Data Types, Slicing

Quiz
•
University
13 questions
Python

Quiz
•
University
12 questions
kotlin Quiz 2

Quiz
•
University
14 questions
Computing Revision JCG

Quiz
•
KG - University
12 questions
CS201: Chapter 1

Quiz
•
University
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University