Defensive Design/ Robust Coding
Quiz
•
Business, Instructional Technology, Computers
•
9th Grade - University
•
Practice Problem
•
Medium
Mohammed Rahman
Used 12+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of data verification?
Checking the data is of the correct type
Asking the user to type in the password twice
Checking that the password contains letters and numbers
Checking that the data is of the correct length
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What kind of test will ensure that the user types an appropriate number when asked for their age?
Data type check
Data length check
Data range check
Asking them to type in their age twice
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true?
Data validation cannot tell you if the answers are correct
Data validation cannot check if a password is in the right format
Data validation cannot tell you if the answer is a date
Data validation can prevent logic errors
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
A ______ error is when you have spelt a key word incorrectly, used the wrong capitalisation, missed out or placed punctuation in the wrong place.
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
If your program does not display any error messages but behaves in an unexpected way, you probably have a ----- error.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is likely to be a result of a logic error in your program?
You get an error message because you typed a letter when asked how old you were
You used the wrong capitalisation for the print() command
You forgot to type a colon at the end of your function definition
Your program enters an infinite loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A syntax error could be caused by which of these?
Your if statement had a < symbol when you should have used a > symbol
Your if statement used = instead of == to compare two values
Your if statement used != instead of == to compare two values
You typed 'while x >20' when you meant to write 'while x<20'
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
10 questions
Quiz CodeIgniter 4
Quiz
•
University
15 questions
PROBLEM SOLVING USING R UNIT I MCQS
Quiz
•
University
10 questions
PYTHON_CHAPTER 6
Quiz
•
University
15 questions
Tutorial 8 Security
Quiz
•
University
11 questions
E business and its benefits
Quiz
•
10th - 12th Grade
9 questions
CHAPTER 5 ONLINE QUIZ
Quiz
•
University
10 questions
Grade 11 Term 4 Practice 2
Quiz
•
11th Grade
15 questions
Quiz - Pengenalan Sistem Operasi
Quiz
•
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 Business
50 questions
International Trade: Reading Comprehension — Grade 12
Quiz
•
12th Grade
5 questions
Banking Basics
Lesson
•
6th - 12th Grade
19 questions
Personal Finance: Credit Reports and Scores
Quiz
•
9th - 12th Grade
23 questions
Ch. 10 Stock Offerings and Investor Monitoring Review
Flashcard
•
12th Grade
17 questions
BizInnovator Startup - Know Your Customer
Quiz
•
9th - 12th Grade
