Top-Rated Free Essay
Preview

pt1420 exam review

Good Essays
738 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
pt1420 exam review
List three examples of operating system software. Linux, OS X, and Microsoft Windows
List three examples of application software.Microsoft Word, Adobe Photoshop, and Visual Studio
Programs that make a computer useful for everyday tasks are known as application software

What is used to translate high level language programs to machine language (or machine code)? Compiler
What both translates and executes the instructions in a high level language program? What was the first programming language designed to perform complex math functions? Interpreter.Fortran
Rules that are strictly enforced during compilation are called what?Syntax Rules
What are violations of strictly enforced rules during compilation called?Syntax Errors
Which will not prevent compilation, syntax or logical errors? Logic Errors
Instead of binary numbers, assembly language uses short words for instructions known as what?
Mnemonics

Name a high level language you use in the course. Visual Basic

The words that make up a high level programming language are known as what? Keywords

Which runs faster a compiled or an interpreted program? Compiled

Which language utilizes binary numbers like 01110000? Machine Language

How many steps are in the Program Development Cycle and what are they?
1 - Design the Program2 - Write the Code3 - Correct Syntax Errors4 - Test the Executable Code
5 - Debug the Code

What is an informal language that has no syntax rules and is not meant to be compiled or executed? Pseudo Code

What is a diagram that graphically depicts the steps that take place in a program? Flowchart
What is a set of statements that execute in the order that they appear? Sequence Structure
What is a logical design that controls the order in which a set of statements execute?
Control Structure
What graphically displays boxes that represent each module in a program?
Hierarchy Chart
Which flowchart symbol represents a terminal point like Start or Stop? Oval
Which flowchart symbol represents processing and is used with the keywords Set and Declare? Rectangle
Which flowchart symbol represents decisions and is used with the keywords If/Then? Diamond
Which flowchart symbol represents input and output and is used with the keywords Input and Display? Parallelogram
Which flowchart symbol represents calling modules and is used with the keyword Call? Rectangle with 2 Vertical Lines

In programming, a storage location in memory is called what? Variable
A variable that is declared inside a module is called what? Local Variable

What is the term that describes the part of the program that a variable can be accessed? Scope

A variable that can be seen throughout the program is called what? Global Variable

True or false: A variable can begin with a number. False

True or false: A variable can contain spaces. False
True or false: A variable can have a number as the last character of the variable name?
True

True or false: A variable can contain an underscore.True
True or false: A constant can be changed during execution of a program.False
True of false: A variable can be changed during execution of a program.True
What are the four main data types discussed in class so far?
1.Integer2. Real3. String4. Boolean

What is used to check the relationship between two values? Relational Operator

Which relational operator is used to denote greater than or equal to? >=

Which relational operator is used to denote not equal to? !=

Which relational operator is used to denote less than? <

What is the difference between using the relational operator = and the relational operator ==? = is used for assignment and == is used for comparison

What is the symbol used to indicate "raised to the x power" in pseudo code? ^
What is the truth table for AND?
True AND True = True
True AND False = False
False AND False = False
False AND True = False

What is the truth table for OR?
True OR True = True
True OR False = True
False OR False = False
False OR True = True

What does NOT False evaluate to? True
Indicate three benefits of modules? Faster Development, Simpler Code, Code reuse

What is a variable passed to a module called? Argument
Define the abbreviation ASCII.
American Standard Code for Information Interchange

Relational Operators
Great Then
< Less Then
>= Greater Then or Equal
7 is false
5 < 7 Is True
(5 > 7) or (10 > 3) is True
(5 > 7) and (10 < 3) is False
NOT (5 > 7 ) and (10 > 3 )is true because the NOT reverses

All programming languages that allow you to create expressions that can be evaluated as either true or false are called ? Boolean expressions.Boolean expressions uses relational operators

You May Also Find These Documents Helpful

  • Powerful Essays

    The purpose of this Lab. is to familiarize student how to solve practical problems programmatically; they will practice on elementary programming using primitive data types, variables, constants, operators, expressions, and input and output. Also, they will learn how to diagnose errors that may occur when a program is compiled or executed. There are some exercises, through which they will understand the concept learn in this chapter.…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Good Essays

    Keywords are the defined words or commands of the language. All keywords in this language are in upper-case to distinguish them from other normal words. M# focuses on five basic keywords, which are as follows:…

    • 703 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Compter Science

    • 819 Words
    • 4 Pages

    Programming statements in a low-level language will be close to natural language and will use standard mathematical notation.…

    • 819 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Copyright © 2012 Pearson Education, Inc. 0-5 Terminology • Machine instruction: An instruction (or command) encoded as a bit pattern d) d d tt recognizable by the CPU • Machine language: The set of all instructions recognized by a machine Copyright © 2012 Pearson Education, Inc. 0-6 3 Machine Language Philosophies • Reduced Instruction Set Computing (RISC) – Few, simple, efficient, and fast instructions – Examples: PowerPC from Apple/IBM/Motorola and ARM • Complex Instruction Set Computing (CISC) –…

    • 783 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Intro to Computers

    • 340 Words
    • 2 Pages

    Most computer software falls into one of three categories: compilers and other translator programs, software applications, and system software. Describe and give examples of each. [RQ, no. 2]…

    • 340 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Hi Everyone.

    • 326 Words
    • 2 Pages

    * You have to tell the computer, step by step, exactly what you want it to do. The computer then “executes" the program, following each step to accomplish the end goal.…

    • 326 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Today's computer programmer has many languages to choose from, but what's the difference between them? What are these languages used for? How can we categorize them in useful ways?…

    • 1471 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    1. Understand the problem • Gain a clear understanding of what is required for the program. • State the problems clearly and unambiguously. E.g. inputs, outputs, and any additional requirements. • To satisfy the needs of the customer. 2. Plan the logic • Plans the logical steps to the program and decides what steps to include and how to order them. • There are two common design tools: flowchart and pseudocode. • The programmer breaks a large programming problem into reasonable units. • These reasonable units are typically called as modules, subroutines, procedures, functions or methods. • The process of breaking down a large program into modules is called modularization (refer to the section 10.3). 3. Code the program • Choose one or more programming languages to write the program after preparing the logical steps in the previous work. • Conduct a detailed planning before coding allows programmer to write programs that are less prompt to errors and changes. 4. Translate the program into machine language • Convert the program into machine language by using translator software for the particular programming language. • Translator software: compiler or interpreter. • Error messages are displayed as programming language statements written incorrectly.…

    • 1266 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    A programming language is a system of signs used to communicate a task/algorithm to a computer, causing the task to be performed. The task to be performed is called a computation, more broadly, a computer language typically embodies a particular programming paradigm. A Programming Paradigm is a model for a class of Programming Languages that share a set of common characteristics. Programming language paradigms are various systems of ideas that have been used to guide the design of programming languages. It is a way of conceptualising what it means to perform computation and how task are to be carried out on a computer, should be structured and organised.…

    • 2576 Words
    • 11 Pages
    Powerful Essays
  • Better Essays

    The first step creates the program; the second translates it into a language more suitable for machine execution (and puts the result in a file namedMyProgram.class); the third actually runs the program.…

    • 1755 Words
    • 8 Pages
    Better Essays
  • Powerful Essays

    Lecture 1 Introduction Copy

    • 1329 Words
    • 19 Pages

    CS242 computer Programming T.Fatimah Al-Qahtani Details • Textbook: • C++ How to Program, DETITEL & DEITEL, eighth(or) seventh edition. 2 • Website : • http://cpp242.wordpress.com 3 • Contact me : 1- office Hours : Sunday from ( 12:30 to 3:30 p.m.)…

    • 1329 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    Programming Languages

    • 2964 Words
    • 12 Pages

    An assembly language is a low-level programming language for a computer, microcontroller, or other programmable device, in which each statement corresponds to a single machine code instruction. Each assembly language is specific to a particular computer architecture, in contrast to most high-level programming languages, which are generally portable across multiple systems. Assembly language is converted into executable machine code by a utility program referred to as an assembler; the conversion process is referred to as assembly, or assembling the code.…

    • 2964 Words
    • 12 Pages
    Good Essays
  • Powerful Essays

    Intro to Computer

    • 1295 Words
    • 6 Pages

    an artificial language used to write a sequence of instructions (program) that can be run by…

    • 1295 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    COMPUTER PROGRAMMING Programming languages for computers are developed with the primary objective of facilitating a large number of persons to use computers without the need to know in detail the internal structure of a computer. Languages are matched to the type of applications which are to be programmed using the language. The ideal language would be one which expresses precisely the specification of a problem to be solved, and converts it into a series of instructions for a computer. It is not possible to achieve this ideal as a clear specification of a problem is often not available and developing an algorithm from specifications requires subject knowledge and expertise. In actual practice, a detailed algorithm to solve a problem is the starting point and it is expressed as a program in a programming language. A large number of languages, over a thousand, exist each catering to a different class of applications. All modern programming languages (with one exception) are designed to be machine independent. In other words, the structure of the programming language would not depend upon the internal structure of a specified computer; one should be able to execute a program written in the programming language on any computer regardless of who manufactured it or what model it is. Programing Language is a set of instructions (codes) that controls a computer to perform some processing function or combination of functions. For the instructions to be carried out, a computer must execute a program, that is, the computer reads the program, and then follows the steps encoded in the program in a precise order until completion. A program can be executed many different times, with each execution yielding a potentially different result depending upon the options and data that the user gives the computer. It can also be simply defined as the process of specifying objects and the ways in which those objects interact to solve a problem. A computer is not intelligent. It cannot…

    • 2590 Words
    • 11 Pages
    Powerful Essays
  • Powerful Essays

    programming language: A systematic set of rules used to describe computations in a format that is editable by humans.…

    • 1707 Words
    • 7 Pages
    Powerful Essays