WorksheetsS & A Design 100 Test
Total questions: 103
Worksheet time: 58mins
Which of the following best describes the importance of establishing objectives and outcomes for a task in software development?
It limits the creativity of the programmer
It helps in avoiding the decomposition of problems
It provides a clear direction for the task
It increases the complexity of the programming problem
When a programmer "visualizes" a problem-solving technique before writing code, what is the benefit?
It adds unnecessary time to the programming process
It complicates the coding process
It helps in understanding the problem and designing efficient solutions
It limits the programmer's creativity
Which of the following is NOT a problem-solving and troubleshooting strategy applicable to software development?
Debugging and testing code
Collaborating with team members
Refactoring existing code
Ignoring error messages
What does the process of decomposing a large programming problem into smaller procedures help in achieving?
Increased complexity of the code
Better organization and understanding of the problem
Decreased need for problem-solving skills
Slower coding process
Why is it important to establish clear objectives and outcomes for a programming task?
To confuse the programmer
To increase the complexity of the task
To provide a clear direction and purpose for the task
To discourage problem-solving skills
How does visualizing a problem-solving technique aid in software development?
By making the problem more confusing
By simplifying the coding process
By aiding in understanding the problem and formulating solutions
By limiting the programmer's creativity
Which of the following is a key benefit of decomposing a programming problem into smaller procedures?
Making the problem more challenging
Making the problem more difficult to understand
Making the problem more manageable and easier to solve
Increasing the likelihood of errors in the code
In software development, what role does visualizing play in the coding process?
It hastens the coding process
It helps in understanding the problem and designing effective solutions
It increases the errors in the code
It limits the programmer's problem-solving abilities
When establishing objectives for a programming task, what is crucial for ensuring successful completion?
Making the objectives vague and unclear
Writing extensive documentation
Collaborating with team members
Clearly defining the purpose and goals of the task
Which phase of problem-solving in software development involves breaking down the main problem into smaller, more manageable parts?
Debugging phase
Planning and analysis phase
Coding phase
Testing phase
What is the main purpose of visualizing a problem-solving technique before coding?
To make the coding process slower
To assist in understanding the problem and devising efficient solutions
To discourage critical thinking
To limit the programmer's creativity
In the troubleshooting in software development, what is a common strategy to identify and fix errors?
Ignoring the errors and proceeding with coding
Collaborating with team members
Refactoring the entire codebase
Debugging and testing the code systematically
What is the primary focus of problem-solving and troubleshooting strategies in software development?
Avoiding collaboration with team members
Increasing the number of errors in the code
Identifying and fixing issues efficiently
Refraining from testing the code
What purpose does visualizing serve in the context of software development?
It complicates the problem-solving process
It helps in understanding the problem and crafting effective solutions
Which of the following is NOT a benefit of decomposing a large programming problem into smaller, more manageable procedures?
Simplifying the coding process
Making the problem more challenging
Enhancing code organization and readability
Increasing the likelihood of errors
How does explaining the process of decomposing a programming problem aid in software development?
By slowing down the coding process
By clarifying the approach to problem-solving
By making the coding task more difficult
By limiting the programmer's creativity
What is a fundamental aspect of the problem-solving and troubleshooting strategies in software development?
Avoiding testing the code
Collaborating with team members
Refactoring the entire codebase
Ignoring error messages
What is an example of a common computer threat?
Encryption
Phishing
Firewalls
Data backup
Which of the following is a potential vulnerability in software according to OWASP's Top 10?
Strong passwords
Using antivirus software
Injection flaws
Regular software updates
How can data integrity and security be maintained?
Click on unknown links
Share passwords with colleagues
Delete unrecognized emails
Use public Wi-Fi networks for sensitive data
Which of the following is an example of maintaining integrity and security in software development?
Using outdated encryption methods
Storing passwords in plain text
Sharing sensitive information
Hashing digital signatures publicly
What is a method for sanitizing user input to prevent issues such as buffer overflows and SQL injection?
Allowing special characters in input fields
Limiting input length
Ignoring input validation
Accepting all file uploads
Which term is explained by the CIA triad?
Confidentiality, Integrity, Availability
Security, Vulnerability, Threats
Hackers, Malware, Spam
Encryption, Decryption, Hashing
Which of the following is NOT a common computer threat?
Viruses
Phishing
Patches
Spamming
Why is deleting unrecognized emails important for data security?
Unrecognized emails are always malicious
Unrecognized emails may contain harmful attachments or links
Deleting emails saves storage space
Unrecognized emails slow down computers
Best practices to maintain integrity and security in software development include:
Using weak encryption methods
Storing passwords in plain text
Regularly updating security measures
Sharing authentication details openly
Which of the following is a procedure to maintain data integrity and security?
Leaving the computer unlocked when away
Using unapproved software
Regularly backup important data
Sharing passwords with peers
What is the purpose of using trustworthy thumb drives for data security?
Trustworthy thumb drives always have higher storage capacities
Untrustworthy thumb drives are cheaper
Trustworthy thumb drives may contain malware
Untrustworthy thumb drives are more reliable
Which of the following is related to the concept of confidentiality in the CIA triad?
Sharing passwords with strangers
Keeping sensitive information private
Publicly posting login details
Making data widely available
How can social engineering impact security?
Social engineering has no effect on security
Social engineering helps improve security
Social engineering manipulates individuals to reveal sensitive information
Social engineering boosts software development
Identify a method for sanitizing user input to prevent buffer overflows.
Allowing unrestricted input length
Validating input against predefined rules
Ignoring input validation strategies
Accepting input without any check
Which term is NOT part of the CIA triad?
Integrity
Availability
Traceability
Confidentiality
Which of the following is NOT a procedure to maintain data integrity and security?
Using approved software
Locking the screen when away from the computer
Sharing sensitive information openly
Use of trustworthy thumb drives
Which legislation is used to protect intellectual property rights in the United States, specifically in regard to software licensing and duplication?
GDPR
HIPAA
DMCA
What does the Digital Millennium Copyright Act (DMCA) primarily focus on?
Cybersecurity standards
Protection of online privacy
Regulation of software patents
Regulation of internet content
What is a key difference between open source and proprietary systems concerning legal and ethical issues?
Open source systems are always free to use
Proprietary systems require constant internet connection
Open source systems allow for customization and sharing of code
Proprietary systems are always more secure
Which of the following is a regulatory act that protects children's privacy online?
COPPA
GDPR
HIPAA
PCI
What does GDPR stand for in the context of information technology regulations?
Global Data Protection Rights
General Data Protection Regulation
Grand Data Privacy Resolution
Generalized Data Protocol Rules
In the context of data privacy regulations, what does FERPA focus on protecting?
Patient health information
Children's online activities
Student educational records
Financial data of consumers
Which organization is mainly concerned with regulating the security of credit card information?
COPPA
GDPR
HIPAA
PCI
What type of issues does CISPA primarily address?
Educational data sharing
Cybersecurity threats
Environmental regulations
Social media censorship
What does software licensing entail?
Unauthorized use of software
Distribution of software codes
Permission to use software under specific terms
Modification of software interfaces
Which term refers to the illegal copying, distribution, or use of software?
Digital rights management
Software licensing
Data piracy
How can data pricing be influenced by legal and ethical considerations?
By setting fixed prices for all data usage
By offering discounts for higher data usage
By ensuring fair pricing practices and data access rights
By limiting data availability to specific regions
What is the main goal of the Digital Millennium Copyright Act (DMCA) in relation to software duplication?
To criminalize all forms of software duplication
To regulate the creation of new software programs
To prevent the circumvention of copyright protection measures
To promote the sharing of software codes
In the context of information technology, what does PCI compliance refer to?
Protecting consumer privacy online
Ensuring secure credit card transactions
Regulating email marketing practices
Licensing of proprietary software
What does GDPR aim to achieve regarding personal data protection?
To eliminate all personal data storage
To regulate the use and storage of personal data
To allow unrestricted data sharing among organizations
To limit personal data access to government agencies
Which of the following is NOT a common data privacy regulation?
DMCA
HIPAA
GDPR
COPPA
What is the main purpose of the Family Educational Rights and Privacy Act (FERPA)?
To regulate online businesses
To protect student educational records and information
To secure financial transactions online
To prevent identity theft
Which of the following is an ethical concern related to the use of public networks?
Availability of free internet access
Potential interception of confidential data
Faster connection speeds
Increased social media usage
Which of the following is NOT a primitive data type in programming?
Integer
Array
Boolean
Character
When should you use a float data type instead of an int data type?
When you need to store whole numbers
When you need to store decimal numbers
When you need to store text
When you need to store true/false values
In programming, what is the purpose of declaring a constant?
To store data that can be changed during the program execution
To store data that remains constant throughout the program
To reserve memory for future use
To mark the end of a program
Which function is used to retrieve the length of a string in most programming languages?
substring()
size()
length()
count()
What does the Big-O notation measure in programming?
The actual size of data being manipulated
The complexity of an algorithm in terms of time and space
The number of print statements in a program
The number of loops in a program
Which of the following programming languages is commonly used for back-end web development?
HTML
CSS
Python
SQL
What data type would be most appropriate to store a person's age in a program?
String
Char
Double
Integer
Which of the following is NOT a valid variable name in programming?
my_variable
1stplace
userAge
total_score
Which operation is used to combine two strings into one in programming?
Addition (+)
Concatenation (++)
Division (/)
Multiplication (*)
Which of the following is a Boolean data type in programming?
"Hello"
42
true
3.14
In the context of programming, what is a syntax error?
An error that occurs during program execution
An error in the logical structure of a program
An error that causes the program to crash
An error in the spelling of variable names
What is the result of 5 + 7 * 2 in most programming languages?
10
14
19
24
Which of the following is an example of a comparison operator in programming?
&&
==
!=
What is the purpose of a while loop in programming?
To execute a block of code a specified number of times
To execute a block of code as long as a specified condition is true
To skip over certain parts of the code
To define a specific function in a program
Which of the following best describes the difference between float and double data types?
Float stores single-precision floating point numbers, while double stores double-precision floating point numbers
Float is used for integers, while double is used for decimal values
Float has higher precision than double
Double has higher range than float
What does the % operator do in programming?
Subtraction
Multiplication
Division
Remainder calculation
Which of the following correctly represents a single-character data type in programming?
"apple"
'A'
123
true
What is the correct way to access the first character of a string variable named "word"?
word.first()
word[0]
word.getChar(0)
word.charAt(1)
Which of the following is NOT a float data type in programming?
3.14
42.0
0.25
'A'
What is the correct syntax for declaring a constant in most programming languages?
constant int MAX_VALUE = 100;
static final MAX_VALUE = 100;
final int MAX_VALUE = 100;
int constant MAX_VALUE = 100;
Which of the following represents the largest unit of data storage?
Kilobyte
Megabyte
Gigabyte
Terabyte
When converting from binary to decimal, which base is binary?
Base 2
Base 8
Base 10
Base 16
What is the decimal equivalent of the hexadecimal number 1A?
25
26
27
28
Convert the decimal number 57 to hexadecimal.
39
38
37
If x = 5 and y = 3, what is the value of 3x + 4y?
17
19
21
23
Which type of number representation is used to approximate real numbers using a fixed number of significant digits?
Integers
Floating-point numbers
Fixed-point numbers
Binary numbers
How is the value 1011 represented in hexadecimal?
A
B
C
D
What is the result of the expression (8 + 4 * 2) / 2?
6
8
10
12
Which mathematical formula represents the area of a rectangle?
A = πr^2
A = bh
A = 1/2 bh
A = l × w
Identify the problematic use of numbers in arithmetic.
Floating-point numbers for exact integer values
Fixed-point numbers for financial calculations
Integers for counting objects
Using integers for fractions
What is the binary equivalent of the decimal number 29?
11101
10111
10111
11011
In binary addition, what is 1 + 1?
0
1
10
11
Which of the following operations has the highest precedence in arithmetic?
Addition
Multiplication
Subtraction
Division
Convert the decimal number 82 to hexadecimal.
If a byte is represented by 8 bits, how many bits are in 3 bytes?
16 bits
24 bits
32 bits
40 bits
What is the result of 5 * (4 + 3) / 7 - 2?
3.57
3.86
2.29
1.71
Which arithmetic operation involves both division and addition?
Subtraction
Multiplication
Exponentiation
Compound operation
Expand the acronym RAM in the context of computer hardware.
Random Access Memory
Read-Only Memory
Rapidly Accessed Memory
Real-time Accessible Memory
How many bits are in a kilobyte?
1024 bits
1000 bits
1200 bits
953 bits
Which syntax is used for a decision statement that allows for multiple different outcomes?
for/while loops
do/while statement
switch case statement
break/continue statement
Which of the following is an advantage of using histograms in data visualization?
They can show relationships between two variables.
They are good for showing changes over intervals.
They can display multiple data series simultaneously.
They are primarily used for categorical data.
Part of the design of a program is shown.
Identify the graphical design notation shown.
(a)
Name this design technique
Wireframe
Flowchart
Pseudocode
Structure Diagram
Which of the following is the correct sequence of steps in the problem-solving process?
Define, Prepare, Try, Reflect
Implement, Evaluate, Identify, Plan
Identify, Plan, Implement, Evaluate
Reflect, Empathize, Define, Try
Name this design technique
Wireframe
Flowchart
Pseudocode
Structure Diagram
In a flight booking app, users are asked to enter their departure airport,destination airport, departure date, return date, number of adults and number of children.
The app provides an option to add bags to the booking. Each passenger is asked if they want to add a bag. The cost is an additional £7 for each passenger who decides to take a bag.
Choose a design that correctly refines step 4.
Loop for each passenger
Ask if passenger wants a bag
If answer = yes
Add 7 onto bag total
End if
End loop
Total = total + bag total
Loop for each passenger
Ask if passenger wants a bag
If answer = yes
Add 1 onto bag count
End if
End loop
Total = total + bag count
Loop for each passenger
Ask if passenger wants a bag
If answer = yes
Add 1 onto total
End if
End loop
Loop for each passenger
Ask if passenger wants a bag
If answer = no
Add 7 onto bag total
else Total = total + bag total
End if
End loop
A garden centre requires a program to calculate the price of apple, pear and cherry trees being sold.
The design is shown.
The design is tested. For the following inputs state the total displayed.
Number of trees – 2
Type of tree – cherry
Size of tree – small
Type of tree – pear
Size of tree – medium
(a)
What does decomposition refer to in problem-solving?
Breaking down a complex problem into smaller, more manageable parts.
The process of eliminating unnecessary information from a problem.
The act of solving a problem without any planning.
Decomposing the chemicals involved in a problem.
In a flight booking app, users are asked to enter their departure airport,destination airport, departure date, return date, number of adults and number of children.
The app provides an option to add bags to the booking. Each passenger is asked if they want to add a bag. The cost is an additional £7 for each passenger who decides to take a bag.
Choose a design that correctly refines step 4.
Loop for each passenger
Ask if passenger wants a bag
If answer = yes
Add 7 onto bag total
End if
End loop
Total = total + bag total
Loop for each passenger
Ask if passenger wants a bag
If answer = yes
Add 1 onto bag count
End if
End loop
Total = total + bag count
Loop for each passenger
Ask if passenger wants a bag
If answer = yes
Add 1 onto total
End if
End loop
Loop for each passenger
Ask if passenger wants a bag
If answer = no
Add 7 onto bag total
else Total = total + bag total
End if
End loop
(a) allows people to better debug their work and problem solve issues in their (b)
A cinema is developing an app to survey customers. Cinema staff will ask customers
questions as they leave the cinema. Staff will use a touchscreen on a tablet to input
and submit the responses given by each customer.
Customers will be asked the following questions:
• Which of the two films the cinema is currently showing did you see?
• What score would you give the film, from 1 to 5?
• Did you purchase food in the cinema?
At the end of each day the app will calculate the average score for each film.
The suggested design for this part of the app is shown.
Identify an inefficient part of the design that could be removed without affecting the solution.
JDK stands for (a)
