Python Programming

Quiz
•
Computers
•
5th Grade - University
•
Hard
Sasha Pereira
Used 17+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Change to upper case
upper = name.upper()
upper = upper(name)
lower = name.lower()
up = name.upr()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Change to capitalize each word
Title = name.Title()
title = name.title()
Title= title(name)
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write the code to get the following output
Hello Grade 5B
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is type casting ?
Typecasting is a way of changing an object from one number to another.
Typecasting is a way of changing an object from one word to another.
Typecasting is a way of changing an object from one variable to another.
Typecast is a way of changing an object from one data type to another type.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Correct the following line of code so that the variable num1 will store the value as an integer
num1 = input("Enter a number")
num1 = int(input("Enter a number"))
num1 = input("Enter a number").int
num1 = float(input("Enter a number"))
num1 = str(input("Enter a number"))
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the output for the following code:
number = 1
while number < 5:
print(number)
number = number + 1
1
3
5
9
2
3
4
2
4
6
8
Error
Answer explanation
number = 1
while number < 5:
print(number)
number = number + 1
Explanation:
The value of number is assigned to 1 at the beginning of the program.
Then the value is printed an then increased by 1. The program stops when the while condition is no longer true.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code:
print(10 !=20)
True
False
Syntax Error
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python - Data Types and Operators

Quiz
•
7th Grade
10 questions
Year 7 Python Lesson 1 Recap

Quiz
•
8th Grade
10 questions
2.1.2 Flowcharts and algorithms

Quiz
•
10th Grade
15 questions
Python elif and Nested if

Quiz
•
12th Grade
12 questions
Functions With Return Values U1M2 Python

Quiz
•
9th - 12th Grade
15 questions
Code.org Unit 5 Lesson 15 Assessment

Quiz
•
9th - 12th Grade
15 questions
Python Quiz

Quiz
•
9th - 12th Grade
16 questions
Code.org CSP Unit 4 Review

Quiz
•
9th - 12th Grade
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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade