Python introduction

Quiz
•
Computers
•
University
•
Medium
ALBERTO HILARIO
Used 135+ 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
10 questions
Python Basics

Quiz
•
University
15 questions
coding

Quiz
•
KG - Professional Dev...
20 questions
Day 10 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Quiz
•
University
10 questions
Programming basic

Quiz
•
University
10 questions
Session 2

Quiz
•
University
20 questions
Week 6 Quiz

Quiz
•
University
10 questions
Understanding Procedures in Python

Quiz
•
9th Grade - University
13 questions
SDS Recruitment Re-Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University