
Week 1
Authored by John Doe
Computers
Professional Development
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
How do you comment some code in Python?
# Commented code
// Commented code
/* Commented code */
You can't comment code in Python
2.
MULTIPLE SELECT QUESTION
1 min • 1 pt
What are the data types available in Python?
Integer, Float, Complex, String, Boolean, List, Dictionary
Integer, Float, Complex, String, Boolean, Tuple, Set
Integer, String, Boolean, List, Dictionary, Tuple, Set
Integer, Float, Complex, String, Boolean, List, Dictionary, Tuple, Set
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
What is the built-in function that returns a list of valid attributes of an object?
type(object)
dir(object)
help(object)
getattr(object)
4.
MULTIPLE SELECT QUESTION
1 min • 1 pt
How do you retrieve the value provided by the user input?
value = readline()
value = prompt()
value = input()
value = ask()
5.
MULTIPLE SELECT QUESTION
1 min • 1 pt
How do you declare a variable in Python?
var name = "John"
name := "John"
let name = "John"
name = "John"
6.
MULTIPLE SELECT QUESTION
1 min • 1 pt
After running the following statement, what will be the values of the variables?
>>> given_name, family_name, age = "John", "Doe", 35, "US"
given_name is "John", family_name is "Doe" and age is 35
given_name is "John Doe", family_name is 35 and age is "US"
given_name is "John", family_name is "Doe" and age is the tuple (35, "US")
An error because there are too many values to unpack
7.
MULTIPLE SELECT QUESTION
1 min • 1 pt
After running the following statement, what will be the value returned?
>>> int(1.789)
1
1.789
0.789
An error because a float can't be converted to an integer
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?
Similar Resources on Wayground
15 questions
Sec+ CH.1 Review Test
Quiz
•
Professional Development
11 questions
Capítulo 3
Quiz
•
University - Professi...
10 questions
C++ quiz
Quiz
•
10th Grade - Professi...
10 questions
1. Standard output, Data type and variable
Quiz
•
Professional Development
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
12 questions
React/Javascript Quizz
Quiz
•
Professional Development
10 questions
Redux
Quiz
•
Professional Development
10 questions
IT General Control
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development