Font size
WorksheetsProgramming Concepts Quiz
Total questions: 53
Worksheet time: 27mins
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?
Boolean
Float
String
Integer
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?
Integer
String
Float
Boolean
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?
Array
Variable
Object
Constant
Which of the following programming models are built from class templates that have properties, attributes, and methods?
Objects
Functions
Vector
Encapsulation
Which of the following is a programming identifier that would be used to define values that don't change?
Vectors
Constants
Arrays
Variables
In object-oriented programming, which of the following concepts is used to describe properties?
Polymorphism
Attributes
Encapsulation
Methods
Makes website elements interactive
CSS
HTML
Makes website elements interactive
CSS
HTML
Adds colors, fonts, and other design elements to website
CSS
HTML
Creates website structure and content
CSS
HTML
A software developer wants to provide a compiled executable program to a customer. Which of the following computer languages would provide this capability?
PowerShell
Ruby
C++
Perl
Alan, a programmer, needs to create an interactive web page. Which of the following programming languages types would he MOST likely use?
Interpreted
Compiled
Assembly
Query
Which programming language type is the most basic human-readable and closest to actual machine language?
Query
Assembly
Interpreted
Compiled
On a flowchart, which of the following represents a decision?
Rectangle
Arrow
Diamond
Parallelogram
Which of the following BEST describes a flowchart?
It starts at the first line and then executes one line at a time until the end.
It is a visual representation of the logic in a program.
It is a step-by- step procedure that illustrates how a problem is to be solved.
It does the same thing over and over in exactly the same way.
What is the term for code that keeps running as long as a certain condition is met?
Decision
Branch
For loop
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?
A constant
A variable
An array
A float
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
8
9
10
11
Which of the following flow chart concepts is depicted below?
Arrays
Sequence
Vectors
Methods
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?
Looping
Encapsulation
Programming array
Branching
Diana, a developer, needs to program a logic component that will allow the user to enter a series of values. Which of the following would BEST provide that functionality?
Scripting
Looping
Case statement
Branching
Jessica, a programmer, has created specific statements, including conditional loops to accomplish a task. What has she created?
Algorithm
Pseudocode
Software
Flowchart
Which of the following logic components is being used and how much is the interest if the amount is 5,000? (Select two.)
If amount < 5000 THEN interest =7%, Else interest = 8%.
7%
Query
Branching
8%
Looping
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 linear, top-down approach to solving problems.
It uses a domain-specific language (DSL) to instruct the program what needs to be done.
It uses a non-linear approach to solving problems.
It uses high-level instructions instead of detailed steps.
Which of the following describes the declarative programming paradigm?
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.
It uses a linear, top-down approach to solving problems.
It uses local and global variables as data types.
Which of the following can be used by a programmer to debug code?
Text editor
Integrated development environment (IDE)
Application programming interface (API)
Word processor
Which of the following features of an integrated development environment (IDE) BEST allow a programmer to code faster and with less effort? (Select two.)
An IDE provides standard text-editing features.
An IDE can autocomplete key words.
An IDE has a library of built-in functions.
An IDE allows projects to be kept organized in folders.
An IDE allows for saving code with filename extensions.
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?
Cascading Style Sheets (CSS)
Application programming interface (API)
Integrated development environment (IDE)
The C# programming language
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.
Increase the timeline to allow for the additional work.
Use the same programming language for both operating systems.
Python is a general purpose programming language that is popular for creating websites and mobile applications. Python is known as a readable and user-friendly language. What does the following code do? color = input('What is your favorite color?\n') print('Your favorite color is %s.' % color)
It sends the output to a printer.
It sets the font color to the color specified in the input.
It gets input and produces output.
It sets the system color variable.
Python provides programming functions that can be used by a software developer. Which of the following would be used to make the random function available?
set num=random()
export random
import random
A software developer is working on a website and has been tasked with adding interactive elements to it. Which of the following programming languages would work BEST for this task?
JavaScript
CSS
HTML
C++
What does the following JavaScript code snippet do when the code is loaded in a browser?
Displays a pop-up window with the message "You are coding with JavaScript!"
Displays the text "My JavaScript Button" and a button labeled "Click me!"
Nothing, this code will not load in a browser
Displays a button labeled "Click me!"
Which of the following BEST describes a front-end developer?
He or she services the website and manages user accounts.
He or she is concerned with the aesthetics of a website.
He or she may use query languages like SQL.
He or she may use Ruby, Java, PHP, and Python
Which of the following BEST describes a back-end developer?
He or she controls what you see visually in your web browser when you visit a site.
He or she uses HTML, CSS, and JavaScript to determine the way a website looks.
He or she needs to make the website as user-friendly as possible.
He or she accesses information from databases and prevents unauthorized access.
Select the tags you MUST use to have a proper HTML document. (Select three.)
<html>
<head>
<p>
<h1>
<body>
What does JavaScript do?
Contains the title of the web page.
Makes websites look good.
Makes web pages interactive.
Links digital objects to each other.
Contains the title of the web page, links to style to stylesheets, and metadata to help search engines find the page.
<head>
<html>
<body>
Lets the browser know that it should interpret the document as HTML.
<html>
<head>
<body>
Contains all the elements that will be presented on the screen.
<body>
<head>
<html>
You want to have a hyperlink to testout.com on your web page. What is the correct HTML syntax to accomplish this?
a href="www.testout.com">Link to the TestOut homepage</a>
a href="Link to the TestOut.com homepage">www.testout.com homepage</a>
a href="www.testout.com"></a>
a href=www.testout.com>
Which of the following are the proper HTML tags used to create a numbered list?
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<ol>
<a>Item 1</a>
<a>Item 2</a>
<a>Item 3</a>
</ol>
<ol>
<ol>Item 1</ol>
<ol>Item 2</ol>
<ol>Item 3</ol>
</ol>
<ol>
<i>Item 1</i>
<i>Item 2</i>
<i>Item 3</i>
</ol>
To be a proper HTML document, there are a few tags that every web page needs. Put these tags in the proper order. Which is the FIRST tag.
<html>
<head>
</head>
<body>
</body>
To be a proper HTML document, there are a few tags that every web page needs. Put these tags in the proper order. Which is the SECOND tag.
<html>
<head>
</head>
<body>
</html>
To be a proper HTML document, there are a few tags that every web page needs. Put these tags in the proper order. Which is the FOURTH tag.
<html>
<head>
</head>
<body>
</html>
To be a proper HTML document, there are a few tags that every web page needs. Put these tags in the proper order. Which is the SIXTH tag.
<html>
<head>
</head>
</html>
</body>
How many heading tags are available for heading and subheading when using HTML?
6
2
4
8
Which of the following tags contains all the elements that will be presented on the visual portion of a website?
<div></div>
<head></head>
<body></body>
<p></p>
A person that can use HTML, CSS, and JavaScript to create websites (as well as service the website and manage user accounts) is known as which of the following?
A full-stack web developer
An application developer
A database programmer
A quality assurance engineer
Which of the following job tasks would be something a QA specialist would do?
Use Ruby, Java, PHP, Python, and query languages like SQL.
Write code to design, create, implement, and maintain databases.
Create applications for computers and mobile devices.
Monitor software development in order to maintain a high-quality product.
In which of the following careers does one usually work together in teams to create software programs?
Quality assurance engineer
Application developer
Web developer
Database programmer
Using HTML and CSS to provide visual elements to the end user would be considered part of a website's ________.
Protocols
Full Stack
Backend
Databases, authentication, and user accounts are all part of a website's ________.
Protocols
Frontend
Backend
Full stack
