CH15 Assessment Flashcards
Interpret the following logic. A law enforcement agency has received data indicating that there are ten current threats to public safety. What is the threat level?
if threats < 3, level is “green”
else if threats < 6, level is “yellow”
else if threats < 9, level is “orange”
else if threats < 12, level “red”
else level is “emergency”
A. green B. orange C. yellow D. red E. emergency
D. Red
You are creating a function that must return either True or False. Which data type should the function return?
Boolean
Which type of coding practice uses smaller code modules working together to support an application?
Microservices
Which of the SDLC phase is the shortest in duration?
Deployment
A programmer needs to write code that has direct access to the computer’s hardware. Which is the best type of language for the programmer to use?
A. Compiled
B. Query
C. Interpreted
D. Assembly
D. Assembly
Which of the following is an example of Markup Language?
A. XML
B. SQL
C. Python
D. Java
A. XML
Which of the following terms describe concepts related to breaking code into smaller, repeatable sections? (Choose Two)
A. Methods B. Objects C. Variables D. Containers E. Functions
A. Methods
E. Functions
Which SDCL phase involves the use of a Flowchart?
Design
Which of the following programming language types is the lowest-level language?
Assembly
What type of high-level programming language is translated into machine code once and then executed many times?
Compiled
You are using the C programming language to create a software solution. A single variable must be tested for multiple possible values. Which programming construct is best suited to achieve this?
A. Select Case
B. Switch
C. IF
D. While
B. Switch
In OOP, which of the following are integral parts of objects? (Choose Two)
A. Properties
B. Variables
C. Arrays
D. Attributes
A. Properties
D. Attributes
Which of the following programming languages requires a compiler?
A. Microsoft PowerShell
B. Assembly
C. Linux Bash
D. C
D. C
You are working with file system objects in your code. You need to determine the modification timestamp for a file. What should you reference?
Property
Which term describes running an action against an object variable?
Method