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

  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    What is a set of statements that execute in the order that they appear? Sequence Structure…

    • 738 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    unit 3

    • 313 Words
    • 2 Pages

    Some languages assign a default value as 0 to uninitialized variables. In many languages, however, uninitialized variables hold unpredictable values.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

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

    • 765 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Compter Science

    • 819 Words
    • 4 Pages

    In a high-level language, the programmer’s only responsibilities for managing data items are to declare (or in the case of Python, create) all constants and variables the program will use.…

    • 819 Words
    • 4 Pages
    Good 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
  • Satisfactory Essays

    Pt1420 Assignment

    • 1058 Words
    • 5 Pages

    1) Initialization: the variable is initialized 2) Test: the loop tests the variable by comparing it to the maximum value 3) Increment: to increase the value during each iteration the loop increments the counter variable by adding 1 to it.…

    • 1058 Words
    • 5 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
  • 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

    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

    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
  • 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
  • Satisfactory Essays

    Java Coding Sample

    • 627 Words
    • 3 Pages

    For loop. A simple example of using for loops to calculate factorial. Uses the built in int data type so only good to 13!…

    • 627 Words
    • 3 Pages
    Satisfactory 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
  • Powerful Essays

    Structure of Compiler

    • 1758 Words
    • 8 Pages

    The scanner reads the source program, character by character. It groups individual characters into tokens (identifiers, integers, reserved words, delimiters, and so on). When necessary, the actual character string comprising the token is also passed along for use by the semantic phases. The scanner:…

    • 1758 Words
    • 8 Pages
    Powerful Essays