
S4: Arrays and Input Validation

Quiz
•
Computers
•
11th Grade
•
Easy

Kieran Kyle
Used 2+ times
FREE Resource
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.
CLASSIFICATION 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
Input validation
if type(value) == int
Validating if an input is an integer
Ensuring a user enters a valid age between 0 and 120
1D Array
Storing multiple values in a single data structure
Declaration of a 1D array
arr = ["a", "b", "c"]
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
Similar Resources on Wayground
15 questions
Information Technology Acronyms for GenCyber

Quiz
•
6th - 12th Grade
9 questions
N5 DDD Revision

Quiz
•
9th - 12th Grade
10 questions
PS10 Data Validation

Quiz
•
9th Grade - University
14 questions
Computer System & Operating System

Quiz
•
11th Grade
11 questions
Defensive Design

Quiz
•
KG - University
12 questions
COMPUTER SCIENCE 0478

Quiz
•
10th - 11th Grade
10 questions
Quiz 16 - Arrays and Loops

Quiz
•
11th Grade
10 questions
7.6 Validation and Verification Checks Cambridge IGCSE 0478

Quiz
•
10th Grade - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade