
S4: Arrays and Input Validation
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
Kieran Kyle
Used 2+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
DRAG AND DROP QUESTION
1 min • 1 pt
What is the format of the following arrays:
["apple", "banana", "grape"] (a)
[True, False, True, False] (b)
[3.14, 2.71, 1.62] (c)
2.
CATEGORIZE QUESTION
3 mins • 1 pt
Identify the following statements as related to either '1D arrays' or 'Input Validation':
Groups:
(a) Checking if an email contains an "@"
,
(b) Accessing the third element using index
1D Arra
Input Validation
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, to ensure that an inputted age is between 0 and 100, which conditional statement is correct?
if age < 0 and age > 100
if age > 0 or age < 100
if 0 <= age <= 100
if age == 0 or age == 100
4.
MATCH QUESTION
1 min • 1 pt
Match the following
Declaration of a 1D array
Storing multiple values in a single data structure
1D Array
Ensuring a user enters a valid age between 0 and 120
Validating if an input is an integer
arr = ["a", "b", "c"]
Input validation
if type(value) == int
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the array:
fruits = ["apple", "grape", "banana"]
What will fruits[0] return?
Apple
Grape
Bannana
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a type of input validation?
Concatenation
Range check
Iteration
Addition
7.
REORDER QUESTION
1 min • 1 pt
Reorder the following
if 1 <= num <= 10:
print("Valid number entered.")
num = int(input("Enter a number between 1 and 10: "))
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
Already have an account?
Similar Resources on Wayground
10 questions
Social media influencers
Quiz
•
6th - 12th Grade
11 questions
BTEC DIT C3 B1 - Threats to Data
Quiz
•
11th Grade
12 questions
ICT Computer Basics pt1
Quiz
•
10th - 12th Grade
15 questions
J808 LO1 and LO2 planning project keywords / terms
Quiz
•
9th - 11th Grade
10 questions
Recursion Practice, Recursion Practice, Recursion Practice...
Quiz
•
10th Grade - University
9 questions
KS3 - Selection, Iteration or Sequence
Quiz
•
KG - 12th Grade
10 questions
INTERNET AND INTRANET
Quiz
•
9th - 11th Grade
7 questions
IGCSE ICT - Safety and Security
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
