BTEC Level 3 - Unit 1 - Topic 5 (Validating Data)

BTEC Level 3 - Unit 1 - Topic 5 (Validating Data)

12th Grade

13 Qs

quiz-placeholder

Similar activities

BTEC National ICT U2 - Data Types and Validation

BTEC National ICT U2 - Data Types and Validation

12th Grade

14 Qs

Java Exceptions

Java Exceptions

11th - 12th Grade

10 Qs

AP CSP - Code.org Unit 3 Review

AP CSP - Code.org Unit 3 Review

9th - 12th Grade

15 Qs

Edexcel GCSE Computer Science Topic 3: Computers

Edexcel GCSE Computer Science Topic 3: Computers

12th Grade

10 Qs

Exception Handling

Exception Handling

11th - 12th Grade

11 Qs

Code.org CSP Unit 1 Review

Code.org CSP Unit 1 Review

9th - 12th Grade

15 Qs

C# Programming Quiz

C# Programming Quiz

12th Grade

10 Qs

Arithmetic Logic Unit (ALU) Quiz

Arithmetic Logic Unit (ALU) Quiz

12th Grade

15 Qs

BTEC Level 3 - Unit 1 - Topic 5 (Validating Data)

BTEC Level 3 - Unit 1 - Topic 5 (Validating Data)

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Mr Mills Computer Science

Used 2+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a programming constraint?
It is something to stop you doing what you want to do.
It is a rule that makes sure that users enter correct data into a program.
It is a way of checking the length of a string.
It is a set of error messages when a user has done something wrong.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You want to make sure that a user enters a number into your program that is less than 10. Which validation check would you use?
Range
Length
Presence
None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A program contains the code below. What type of validation check is this code an example of?
Range
Length
Presence
None of the above

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

You want to include a validation check to make sure that a user enters any number up to 20. Which three of the following validation rules are correct?
if (userNumber >= 0 && userNumber <= 20)
if (userNumber <= 20)
if (userNumber < 21)
if (userNumber > 0 && userNumber < 20)
if (userNumber <= 21)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are writing a program and you want to make sure that a user enters a username and a password. Which of the following code validation rules will check whether either the username or password has been left empty?
if (userName == "" || passWord == "")
if (userName == "" && passWord == "")
if (userName == "")
if (passWord == "")

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image
There is a missing statement on line 8 of the code below.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a type check?
A check to make sure that the input data is a string.
A check to make sure that the input data is a number.
A check to make sure that the input data is the correct kind of data.
A check to make sure the output data is correct is the correct kind of data.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?