Fundamentals of Programming: Syntax, Logic Structures, and Variable Management

Study of fundamental programming concepts and syntax structures.

Benjamin Clark
Contributor
4.3
41
5 months ago
Preview (6 of 18 Pages)
100%
Purchase to unlock

Page 1

Fundamentals of Programming: Syntax, Logic Structures, and Variable Management - Page 1 preview image

Loading page image...

Fundamentals of Programming: Syntax, Logic Structures, and VariableManagementDiscuss the importance of structured programming in the development of computer software. Inyour response, explain the differences between key programming structures (such as loops,conditional statements, and arrays), and provide examples of how these structures are utilized toimprove the functionality and efficiency of a program. Additionally, describe the concept ofmodular programming, and how it facilitates teamwork and code maintenance. Be sure toinclude explanations of any relevant terms such as "variable names," "flowcharts," and "booleanexpressions."Word Count Requirement:400500 words.

Page 2

Fundamentals of Programming: Syntax, Logic Structures, and Variable Management - Page 2 preview image

Loading page image...

Page 3

Fundamentals of Programming: Syntax, Logic Structures, and Variable Management - Page 3 preview image

Loading page image...

the value on the left must be a variable nameThe problem with the following statement is that ____.100 = gradetablesA database holds a group of files, often called ____, that together serve the information needs ofan organization.Syntax____ errors are detected by a compiler.TrueWhen data items are stored for use on computer systems, they are often stored in what is knownas a data hierarchy.focus the programmer takes during the earliest planning stages of a projectThe major difference between the two main programming styles in use today is the ____.FalseWhen designing the logic of a computer program, it is important to consider the specific syntaxof a particular computer language.lozengeThe ____ is the standard terminal symbol for a flowchart.desk-checkingThe process of walking through a program's logic on paper before you actually write the programis called ____.identifierA variable name is also called a(n) ____.pseudocodeUsing ____ involves writing down all the steps you will use in a program.

Page 4

Fundamentals of Programming: Syntax, Logic Structures, and Variable Management - Page 4 preview image

Loading page image...

FalseAlan Turing is often regarded as the first programmer.iThe best choice for a variable name representing an interest rate is ____.FalseProfessional computer programmers write programs based on their own needs.promptA(n) ____ is a message that is displayed on a monitor, asking the user for a response.infinite loopA program with a(n) ____ never ends.coding the programAfter a programmer plans the logic of a program, the next step is ____.external storageA floppy disk is an example of ____.lozengeIf a flowchart has six processing steps and a page provides room for only three, you can use a____ to create the completed flowchart.declarationIn some programming languages, programmers must write a variable ____ telling the compilerwhat data type is expected for the variable.TrueNo matter which programming language a computer programmer uses, the language has rulesgoverning its word usage and punctuation.get inputNumber

Page 5

Fundamentals of Programming: Syntax, Logic Structures, and Variable Management - Page 5 preview image

Loading page image...

The following pseudocode reads a number from the user, multiplies it by 2 and prints the result.The ____ program statement should replace the ? to make this program functional andstructured.get inputNumberwhile not eofcalculatedAnswer = inputNumber * 2print calculatedAnswer?endwhileoneThe maximum number of entry points that any programming structure can have is ____.spaghetti bowlOne way to straighten out a flowchart segment that is not structured is to use what is called the"____" method.while____ is an example of a pretest loop.TrueWhen you write a series of decisions using the case structure, the computer still makes a series ofindividual decisions.FalseWhen you use a while loop, at least one performance of the action inside the loop body alwaysoccurs.iterationAnother name for a loop structure is ____.caseThe following pseudocode might be rewritten using a(n) ____ structure:if class = "Freshman" thentuitionFee = 75elseif class = "Sophomore" thentuitionFee = 50

Page 6

Fundamentals of Programming: Syntax, Logic Structures, and Variable Management - Page 6 preview image

Loading page image...

elseif class = "Junior" thentuitionFee = 30elsetuitionFee = 10endifendifendifsequenceThe following pseudocode is an example of a(n) ____ structure:get firstNumberget secondNumberadd firstNumber and secondNumberprint resultTrueWhen you encounter an eof question in a flowchart, you know that either a selection or loopstructure should begin.FalseWith a selection structure, you perform an action or task, and then you perform the next action,in order.modulesStructured programs can be easily broken down into routines or ____ that can be assigned to anynumber of programmers.case____ is considered to be a convenience structure.defaultIn a case structure, the term ____ means "if none of the other cases were true."loopThe following pseudocode is an example of a(n) ____ structure:get numberwhile number is positive
Preview Mode

This document has 18 pages. Sign in to access the full document!

Study Now!

XY-Copilot AI
Unlimited Access
Secure Payment
Instant Access
24/7 Support
Document Chat

Document Details

Related Documents

View all