4.2 Given a scenario, use programming organizational techniques and interpret logic

¡Supera tus tareas y exámenes ahora con Quizwiz!

Which pseudocode adds a value to the first element in the array?

Logons(0) = find LastLoggedOnUser and get Forename

Which pseudocode populates the first row and first column?

Logons(0,0) = find LastLoggedOnUser and get Forename

Which pseudocode populates the first row and second column?

Logons(0,1) = find LastLoggedOnUser and get Time

A program has a piece of code that needs to be repeated over and over until the condition has been fulfilled. What is this an example of?

Looping

What is the main difference between looping and branching?

Loops are used to perform a task until a condition is met.

When writing pseudocode, what are subroutines?

Subroutines are blocks of code that represent duplicate tasks but have been defined separately.

Which psuedocode defines a one-dimensional array allowing up to ten rows?

declare Logons(9) as string

Which pseudocode creates a two-dimensional array?

declare Logons(9,1) as string

What would you use to instruct your computer to execute a different sequence of instructions?

Branching

Your team is developing a program and would like to create a visual representation of how it works. Which type would be most helpful?

Flowchart

What purpose does branching in programming serve?

It controls flow within a program based on specific conditions.

How is pseudocode used in programming?

It is used to write informal programming code that is readable by humans.

What is the primary purpose of a flow chart?

It visualizes the graphical sequence of a program.

What is the function of an IF conditional statement in code?

Part of the code only executes when certain conditions are true.

Which of the following is NOT an example of a function?

While


Conjuntos de estudio relacionados

ТЕРМИНЫ, ОБОЗНАЧЕНИЯ, СОКРАЩЕНИЯ, ОПРЕДЕЛЕНИЯ

View Set

Chapter 9 MCQ: Airway Management

View Set

Ch.3, 4 5 International Marketing Quiz

View Set

Chapter 3 and 3a The basics of health

View Set

Peds Final - Cognitive and Mental Health

View Set

Intimate - Partner Violence test 4

View Set