Lists, Subroutines and Sequence in Pseudocode - Python
Quiz
•
Computers
•
1st - 11th Grade
•
Practice Problem
•
Medium
Tezel Asena
Used 56+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
What will the following code output? Enter your answer.
NumberList = [ 1, 5, 7, 4, 5, 1, 9, 9 ]
print(NumberList[3])
Answer explanation
In programming the index position always starts at 0.
In other words, the first item in a list is in index position 0.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output?
NumberList = [ 1, 5, 7, 4, 5, 1, 9, 9 ]
Length = len(NumberList)
print(Length)
7
8
9
6
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? Enter your answer.
NumberList = [ 1, 5, 7, 4, 5, 1, 9, 9 ]
print(NumberList[1:4])
1
5
7
4
5
7
4
5
7
4
5
1
5
7
4
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In regards to a type of array called lists, what does the append method do?
Adds a single item to a list.
Removes a single item from a list.
Randomly shuffles all items in a list.
Creates a new list.
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Enter the name of the module or library you would want to use for drawing shapes and patterns in Python.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum number this program can randomly output?
import random
print(random.randrange(0, 1000))
10000
1000
999
1001
Answer explanation
When checking range values, never include the end/stop or last value.
This is because index position starts at 0 not 1 so the last is always missed.
(0, 100) - this actually means 0 to 99.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This type of subroutine passes and returns values.
What am I?
Procedure
Function
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
18 questions
Graph/Chart
Quiz
•
5th Grade
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
Class III Quiz
Quiz
•
3rd Grade
17 questions
ÔN TẬP GIỮA KÌ 1TIN 9
Quiz
•
8th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
15 questions
KD 3.1_Aplikasi Pengolah Angka / Spreadsheet
Quiz
•
10th Grade
10 questions
Microcontroller
Quiz
•
11th Grade - University
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Company Logos
Quiz
•
6th - 8th Grade
13 questions
PowerPoint Basics
Quiz
•
6th - 8th Grade
10 questions
App Creators Lesson 2.1-2.4
Quiz
•
8th Grade
10 questions
Exploring Computer Science Careers and Subfields
Interactive video
•
6th - 10th Grade
15 questions
AP CSP Unit 4
Quiz
•
10th - 12th Grade
23 questions
Prog 1 Python Q1 Practice
Quiz
•
9th - 12th Grade
20 questions
logo quiz
Quiz
•
3rd Grade
