Preview

cis121 chapter 2 and 3

Satisfactory Essays
Open Document
Open Document
993 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
cis121 chapter 2 and 3
Global variables and constants are known to the entire program.

When you write programs, you work with data in three different forms: ____.
a. variables; literals, or unnamed constants; and named constants

The priming read is an example of a(n) ____ task.
a. housekeeping

A ____ variable is not used for input or output, but instead is just a working variable that you use during a program's execution.
c. temporary

A ____ read is an added statement that gets the first input value in a program.
d. priming

____ is where a variable's data type or other information is stored as part of the name.
c. Hungarian notation

With a(n) ____, you perform an action or task, and then you perform the next action, in order.
d. sequence structure

A variable's unknown value is commonly called ____.
c. garbage

The do loop is a variation of the ____ loop.
b. while

In older languages, you could leave a selection or loop before it was complete by using a ____ statement.
c. go to

A(n) ____ is similar to a variable, except it can be assigned a value only once.
c. named constant

____ is the process of paying attention to important properties while ignoring nonessential details.
c. Abstraction

Programmers say that variables and constants declared within a module are ____ only within that module.
b. in scope

The following pseudocode is an example of ____. if conditionA is true then do stepE else do stepB do stepC do stepD endif a. nesting

The process of breaking down a large program into modules is called ____.
b. modularization

Programmers refer to programs that contain meaningful names as ____.
a. self-documenting

Attaching structures end to end is called ____ structures.
b. stacking

An ____ is most often represented by a three-sided box that is connected to the step it references by a dashed line. c. annotation symbol

As programs become larger and more complicated, the need for good planning and design ____ .
d. increases

Programs that use _____ code logic are

You May Also Find These Documents Helpful

  • Satisfactory Essays

    4. What is a local variable? What statements are able to access a local variable?…

    • 765 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    d. The words that make up a high-level programming language are known as KEY WORDS or RESERVED WORDS. (pg. 17)…

    • 388 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homework Unit 3

    • 354 Words
    • 2 Pages

    4. AND operator- combines more than one condition in a program. Makes a compunf Boolean operation.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    This paper will describe the variable naming rules of three different programming languages. These three languages are Visual Basic, Python, and Java. Each of these languages has different rules that apply to them and some similarities. I will describe the rules and the similarities and differences in the next few paragraphs.…

    • 878 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 1 Quiz

    • 2196 Words
    • 9 Pages

    =SUM(Sheet2:Sheet13!B5) adds all the values contained in cell B5 on all the worksheets between and including Sheet 2 and Sheet 13…

    • 2196 Words
    • 9 Pages
    Good Essays
  • Good Essays

    Unit 16 Ao1

    • 529 Words
    • 3 Pages

    Programs need to store data at some time during the execution of processes. Data is held in variables which are names containers for each piece of data. Each variable must be given a name so it can be referred to again and again throughout the program. It should be something that is recognisable because for example variable 1 would be soon forgotten in a substantial piece of code. Variable names cannot be the same as code words such as print or run.…

    • 529 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    mat540 quiz 1 review

    • 668 Words
    • 6 Pages

    ( A variable is a symbol used to represent an item that can take on any value,)…

    • 668 Words
    • 6 Pages
    Satisfactory Essays
  • Powerful Essays

    Java Chapter 2 Quiz

    • 2047 Words
    • 9 Pages

    6. A(n) ____ is a value that is written into the code of a program.…

    • 2047 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    Unit 5 PT1420

    • 959 Words
    • 7 Pages

    The case structure lets the value of a variable or an expression determine which path of execution the program will take.…

    • 959 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Unit 4 Homework

    • 401 Words
    • 2 Pages

    Not Sure what is going to happen because I wrote that whole program and nothing happen. The Value is passed into the parameter value on this program module though.…

    • 401 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    4) A local variable is declared inside the module only. Only the statements inside the module can access it.…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Powerful Essays

    4. Assume the variables result, w,x, y, and z are all integers, and that w= 5, x= 4, y=8 and z=2. What will the values be stored in result in each of the following statements?…

    • 748 Words
    • 3 Pages
    Powerful Essays
  • Better Essays

    ii. The first component of the class definition is called the access_mode. It will either be public, abstract, final, or not used at all.…

    • 939 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Statistics Using Excel

    • 689 Words
    • 3 Pages

    Variable Label is the "handle" used for computation. The Variable Name is longer and more descriptive.…

    • 689 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Reusability of Code

    • 511 Words
    • 3 Pages

    The earliest programming languages were procedural, meaning a program was made of one or more procedures. A procedure is simply a module or function that performs a specific task such as gathering input from the user, performing calculations, reading or writing files, displaying output, and so on. The programs that you have written so far have been procedural in nature. The steps a program must perform to reach the desired outcome. Procedure is an independent entity and a sequence of instructions that are grouped together. In procedural programming, a task is broken down into assortment of variables and subroutines. In OPP, a task is broken down into objects which summarize the data and execution. In a procedural approach, the entirely called variable is termed as a trait of the object. The idea is to encapsulate data and a…

    • 511 Words
    • 3 Pages
    Good Essays