Font size
WorksheetsProgramming Review
Total questions: 22
Worksheet time: 12mins
A programmer is creating an application that needs to store a value indicating if the user is logged in or not. Which of the following would be the BEST data type to accomplish this? (a)
A developer is creating an application that requires a value to be stored with decimal precision. Which of the following data types should be used for the variables that will store these values?
Boolean
Integer
Float
String
A developer is creating a program that will store a customer's latest order number. The value will change each time a customer creates a new order. Which of the following would MOST likely be used to store the value?
Object
Variable
Array
Constant
Which of the following is a programming identifier that would be used to define values that don't change?
Constants
Variables
Arrays
Vectors
A software developer wants to provide a Compiled executable program to a customer. Which of the following computer languages would provide this capability? (remember the C*)
Perl
PowerShell
Ruby
C++
Which programming language type is the most basic human-readable and closest to actual machine language?
Interpreted
Assembly
Compiled
Query
Which of the following BEST describes a flowchart?
It does the same thing over and over in exactly the same way.
It starts at the first line and then executes one line at a time until the end.
It is a step-by-step procedure that illustrates how a problem is to be solved.
It is a VISUAL representation of the logic in a program.
What is the term for code that keeps running as long as a certain condition is met?
Decision
For loop
Branch
While loop
You are working on a program that needs to keep track of many values at the same time. Which of the following would you use?
An array
A float
A constant
A variable
After running the following pseudocode, what will the value of VARIABLE be?
1. Set value of VARIABLE to 5
2. Increase the value of VARIABLE by 3
3. If the value of VARIABLE is odd, increase its value by 1
4. If the value of VARIABLE is even, increase its value by 1
5. If the value of VARIABLE is odd, increase its value by 1
*FOLLOW THE STEPS!
8
9
10
11
A user is shopping online and has added two items to the cart. When the user clicks the Checkout button, the shopping cart programming logic checks to see if the user is logged in already. If the user is logged in, the checkout process continues, otherwise, the user is prompted to sign in. Which of the following describes the logical component being used?
Programming array
Encapsulation
Branching
Looping
Jessica, a programmer, has created specific statements, including conditional loops to accomplish a task. What has she created?
Software (set of instructions and data programmed to tell a computer what to do.)
Flowchart (visually represent the flow of logic in a program)
Algorithm (necessary logic, such as conditional statements, branches, and loops.)
Pseudocode (programming instructions written using natural language)
Using HTML and CSS to provide visual elements to the end user would be considered part of a website's _____________.
Protocols
Frontend
Full stack
Backend
Databases, authentication, and user accounts are all part of a website's ______________.
Full stack
Frontend
Protocols
Backend
How many heading tags are available for heading and subheading when using HTML?
2
8
4
6
Lets the browser know that it should interpret the document as HTML.
<html>
<head>
<body>
What does JavaScript do?
Makes web pages interactive.
Makes websites look good.
Contains the title of the web page.
Links digital objects to each other.
Which of the following BEST describes a front-end developer?
He or she may use query languages like SQL.
He or she may use Ruby, Java, PHP, and Python.
He or she is concerned with the aesthetics of a website.
He or she services the website and manages user accounts.
A software developer wants to create an application that will work on Windows and Apple iOS operating systems. What can the developer do to make this task easier?
Use the APIs for each operating system.
Expand the development team to handle the additional work.
Use the same programming language for both operating systems.
Increase the timeline to allow for the additional work.
A software developer wants to add a custom Google Map to a customer's website. Which of the following would the developer use to accomplish this?
Application programming interface (API)
The C# programming language
Integrated development environment (IDE)
Cascading Style Sheets (CSS)
Which of the following describes the declarative programming paradigm?
It uses a linear, top-down approach to solving problems.
It uses local and global variables as data types.
It uses a domain-specific language (DSL) to instruct the program what needs to be done.
It uses detailed steps to provide instructions to a computer.
A programming paradigm is a method used to program a computer that guides the solving of a problem or performing of a task. Which of the following describes the procedural, or imperative, programming paradigm?
It uses a domain-specific language (DSL) to instruct the program what needs to be done.
It uses high-level instructions instead of detailed steps.
It uses a non-linear approach to solving problems.
