Free Essay

Programming Final Pt1420

In: Computers and Technology

Submitted By jjtech
Words 500
Pages 2
1. What is the term used for the memory address of the location of the statement immediately after the module called? Return Point 2. What tool would a programmer use to visualize the relationship between modules? Hierarchy charts 3. What is the term used for the variable that received an argument that passed into a module? Parameter 4. What is the term used that means only a copy of the argument’s value is passed into the parameter? “passing an argument by Value” 5. What’s the name of the variable that’s visible to every module and the entire program? Global 6. What is the term used that means the argument is passed into a parameter that will reference the content of the argument in the module. “passing an argument by Reference” 7. What’s the name of the structure that is a logical design that controls the order in which a set of statements executes? Control structure 8. Which symbol indicates that some condition must be tested in a flowchart? Diamond 9. What type of operator can be used to determine whether a specific relationship exists between two values? Relational 10. What operator (or symbols) are used to determine that the operands are NOT exactly the same value? != 11. What is the symbol in a flowchart that denotes a terminal point? Oval 12. Which flowchart symbol denotes a process? Rectangle 13. What is the term that represents “a storage location in memory”? Variable 14. List the variable naming rules: cannot start with a number, contain spaces, and punctuation characters 15. What is the term that means “a set of well-defined logical steps that must be taken to perform a task”? Algorithm 16. What symbol is used for checking if something is equivalent? ==
What symbol is used for assignment? = 17. Which operator (a word) would make the following statement True? NOT False 18. Which operator (a word) would make the following statement False? True AND False 19. Which operator (a word) would make the following statement True? True OR False 20. Which operator ( a symbol) would make the following expression True? (Hint: think about numerical values for ASCII characters) “Jane” < “Jeff”

21. What is the expected output?
Declare Interger oranges = 7
Declare Integer apples = 4
Declare integer bananas = 6
If oranges < bananas AND apples < oranges Then Display “More oranges.”
Else If oranges > bananas AND apples < oranges Then Display “More apples.”
Else
Display “Get some bananas.”
End If
More apples

22. What is the expected output?
Module main () Declare Integer score = 0 Call getScore () Display “Your score is”, score
End Module

Module getScore () Declare Integer score Score = 99
End Module
Your score is 0

23. What is the term for a variable declared INSIDE a module? Local 24. What is the expected output?
Declare Sting choice
Declare Real product

Set choice = ‘y’
Set product = 4.00

If choice != ‘n’ or product < 5.00 Then Display “Order product.”
Else
Display “Do not order product.”
End If
Order Product…...

Similar Documents

Premium Essay

Pt1420 Research Paper 1 Programming Languages

...Between the 1970's and the 2000's there are so many programming languages, it seems nigh impossible to list all of them. But, of course, there's always the most important or the most popular, and a lot of times the most important/most popular are the same languages, just maybe in a different order. The 1970's seen a quick advancement in computers and their languages due the the creation of the microprocessors. This era's programming history is marked by C, Pascal, Smalltalk, Scheme and Prolog The C programming language is the basis for many others. It's one of the singly most important building blocks of many of the languages used today. C was created in 1971, though it's roots go back to 1954's Fortran. However, it's direct predeccessor was B in 1969. C was created as a compiler to more easily install OS's on computers. It made it possible to the few system-dependent requirements and then use a C compiler to install the new OS. Bell Lab's Ken Thompson was behind the original B, then him and Dennis Ritchie, also of Bell Labs, improved upon it for the NB language. The evolution of NB led naturally to C. Pascal is another language that is the basis of many others, and many of the languages used commonly now have it somewhere in their developmental line. Pascal was named for Frenchman Blaise Pascal, a pioneer mathematician, that had created the first arithmetic machine. That machine could, arguably, be considered the first computer. Niklaus Wirth had written the first......

Words: 1483 - Pages: 6

Free Essay

Pt1420 Programming Unit 1 Research Assignment

...1970’s CLU is a programming language created at MIT by Barbara Liskov and her students between 1974 and 1975. It was notable for its use of constructors for abstract data types that included the code that operated on them, a key step in the direction of object-oriented programming (OOP). Euclid is an imperative programming language for writing verifiable programs. It was designed by Butler Lampson and associates at the Xerox PARC lab in the mid-1970s. The implementation was led by Ric Holt at the University of Toronto and James Cordy was the principal programmer for the first implementation of the compiler. It was originally designed for the Motorola 6809 microprocessor. Forth is an imperative stack-based computer programming language and programming environment. Language features include structured programming, reflection (the ability to modify the program structure during program execution), concatenative programming (functions are composed with juxtaposition) and extensibility (the programmer can create new commands). Although not an acronym, the language's name is sometimes spelled with all capital letters as FORTH, following the customary usage during its earlier years. Forth was designed by Charles H. Moore and appeared in the 1970’s. GRASS is the original version of GRASS was developed by Tom DeFanti for his 1974 Ohio State University Ph.D. thesis. It was developed on a PDP-11/45 driving a Vector General 3DR display, and as the name implies, this was a purely......

Words: 1885 - Pages: 8

Free Essay

Programming Final

...Programming Final 1. The case structure lets the value of a variable or an expression determine which path of execution the program will take. It’s a multiple alternative decision structure that allows you to test the value of a variable or an expression and then use that value to determin which statement to execute. 2. The AND operator takes two Boolean expressions as operands and creates a compound Boolean expression that is true only when both expressions are true. True AND True = True 3. The OR operator takes two Boolean expressions as operands and creates a compound Boolean expression that is true when either of the sub expressions is true. True OR False = True 4. The NOT operator is a unary operator that takes a Boolean expression as its operand an reverses its logical value. The Not operator reverses the truth of its operand. If it is applied to an expression that is true the operator returns false. If it is applied to an expression that is false it returns True. Not true = False, Not false = True 5. Flow chart 6. And, Or , Not 7. And, Or, Not 8. And, OR, Not 9. > greater than, < less than, >= greater than or equal to, <= less than or equal to, == equal to, != not equal to 10. Case structure has a diamond at the top and branches down into different parallelograms. 11. A repetition structure causes a statement or set of statements to execute repeatedly. 12. A condition-controlled loop uses a true/false condition to control the number of times......

Words: 991 - Pages: 4

Free Essay

Pt1420 Introduction to Programming Lab03

...Variable Name | Problem(Yes or No) | If Yes, What is wrong? | Declare Real creditsTaken | NO | | Declare Int creditsLeft | YES | INT can only hold whole numbers, cant account for half credits. | Declare Real studentName | Yes | Needs to be string not Real. Real is for numbers | Constant Real creditsNeeded = 90 | No | | Step 1 Step 2 What is wrong with the following calculation? Set creditsLeft = creditsTaken – creditsNeeded The calculation is backwards, if left as is it would read a negative number. It should be Set creditLeft = creditsNeeded – creditsTaken. Step 3 Display “The student’s name is”, studentName The student’s name is Nolan Owens Step 4 Display “The Network Systems Administration degree is awarded after 90 credits and”, studentName, “has”, creditsLeft, “left to take before graduation.” The Network System Administration degree is awarded after 90 credits and Nolan Owens has 70 left to take before graduation. Step 5 1. //Provide documentation on line 2 of what this program does 2. //This program shows how many credits a student needs to graduate from Network System Administration. 3. //Declare variables on line 4, 5, 6, and 7 4. Declare Real creditsTaken 5. Declare Real creditsLeft 6. Declare String studentName 7. Declare Constant Integer creditsNeeded = 90 8. //Ask for user input of studentName and creditsTaken on line 9-12 9. Display “What is the student’s name?” 10. Input studentName 11....

Words: 275 - Pages: 2

Free Essay

Programming Final Assignmentv1.1

...Task 1 LO 1.1 All high-level programming languages support the concept of data types. A data type defines a set of values that a variable can store along with a set of operations. Data types are used to store various types of data which is managed by program. Data type attaches with variable to determine the number of bytes to be allocate to variable and valid operations which can be performed on that variable. Although C has several built-in data types, it is not a strongly typed language, as are Pascal and Ada. C supports various data types and here some common data type as character, integer and floating-point types. C defines five foundational data types as defined below: ▪ character ▪ integer ▪ floating-point ▪ double floating-point ▪ valueless These are declared as by char, int, float, double, and void, respectively. These types form the basis for some other types also. The extent and choice of these and data types may contrast amongst processor natures and compilers. However, in all belongings an object of type char is 1 byte. C stores character type inside as an integer. Each character has 8 bits so, we can have 256 different characters values (0-255). Character set is used to map between an integer value and a character. The size of an int is ordinarily the same as the word length of the implementation setting of the program. C has 3 classes of integer storage namely short int, int and long int. All of these data......

Words: 5415 - Pages: 22

Premium Essay

Pt1420

...ALONZO DARGAN (17186943) PT1420 Computer Programming Unit 7 Assignment 1: Homework 7 May 2014 Short Answers Page 213 1-5 1. Why should you indent the statements in the body of a loop? Because by indenting the statements in the body of the loop you visually set them apart from the surrounding code. This makes your program easier to read and debug. 2. Describe the difference between pretest loops and posttest loops. A pretest loop means to test its condition before performing an iteration A posttest loop means it performs an iteration before testing its condition. 3. What is a condition-controlled loop? A condition-controlled loop uses a true/false condition to control the number of times that it repeats. 4. What is a count-controlled loop? A count-controlled loop repeats a specific number of times. 5. What three actions do count-controlled loops typically perform using the counter variable? 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. Algorithm Workbench Review Questions 1,2,7, and 8 p. 213-214 1. Design a While loop that lets the user enter a number. The number should be multiplied by 10, and the result stored in a variable named product. The loop should iterate as long as the product contains a value less than 100. A- Declare number as integer ...

Words: 721 - Pages: 3

Premium Essay

Pt1420

...PT1420 unit 1 homework 1. Software mainly directs and coordinates computer hardware. In its function, software directly provides instructions to the computer hardware and serves as input to another piece of software to facilitate computing. 2. Some basic computer hardware includes the motherboard, CPU, RAM, hard drive. 3. A computer stores data in clusters on the hard drive. Each cluster is a pie slice-looking area that holds a certain amount of data. The amount of data that can be stored in each cluster is dependent on the operating system. 4. A program tells the computer how to accept some type of input, manipulate that input, and spit it back out again in some form that humans find useful. 5. Machine Language is what essentially people normally call binary. Assembly Language is the next step up, using specific keywords and terms, and will require an assembler to convert into executable machine language. A high-level language is what most programmers’ use, because of its reconizability since it may contain some English terms that we humans can understand. To convert a high-level language to machine language, you'll need a compiler and linker. 6. A compiler takes all of the code and translates it into something a computer can understand. This compiled code is then executed or saved to a file to be executed at a later time. Interpreter takes code and translates it line by line and doesn't save the translated code in a file. 7. System......

Words: 418 - Pages: 2

Premium Essay

Pt1420

...PT1420 - Midterm Study Guide Study online at quizlet.com/_cl08u 1. ...: How many times will this loop iterate Set = 1 While i 5 Display i end while 22. List three examples of application software: Microsoft Word Adobe Photoshop Microsoft Visual Studio 6. ...: How many times will this loop iterate Set = 1 While i 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 the False Age < 10 and age > 60 Will never be true 55. What is the term that describes the part of the program that a variable can be accessed?: Scope What is the truth table for AND?: True AND True = True True AND False = False False AND False = False False AND True = False 34. 35. 56. 36. 57. What is the truth table for OR?: True OR True = True True OR False = True False OR False = False False OR True = True 58. 59. 60. What is the value of 2^3?: 2 2 2 = 8 What is the value of 4^2?: 4 * 4 = 16 What is the value of the expression 10-4*3/2+5?: 9. Multiply first, then divide, then subtract and finally add. What is used to check the relationship between two values?: Relational Operator What is used to translate high level language programs to machine language (or machine code)?: Compiler What makes a computer useful for everyday tasks?: Application Software What was the first programming language designed to perform complex math functions?:...

Words: 779 - Pages: 4

Premium Essay

Pt1420 Unit 1

...Institute Intro to Programming – PT1420 Unit 1 Assignment 1 Short Answer Questions 1. Why is the CPU the most important component in a computer? The reason the CPU is the most important component in a computer is because without the CPU you can’t run any software. 2. What number does a bit that is turned on represent? What number does a bit that is turned off represent? The number in a bit that represents a turned on position is 1. The number in a bit that represents a turned off position is 0. 3. What would call a device that works with binary data? A digital device is a device that works with binary data. 4. What are the words that make up a high-level programming language called? Keywords or Reserved Words are words that make up a high-level programming language. 5. What are short words that are used in assembly language called? Mnemonics are short words that are used in assembly language. 6. What is the difference between a compiler and an interpreter? The difference between a compiler and an interpreter is that a compiler translates high-level language into separate machine language program while an interpreter translates AND executes the instructions in a high-level language program. 7. What type of software controls the internal operations of the computer’s hardware? An operating system controls the internal operations of the computer’s hardware. Unit 1 Research Assignment 1 * What were the five popular programming......

Words: 1534 - Pages: 7

Premium Essay

Pt1420 Unit 2 Research

...Kelli Okuly PT1420 Unit 2 Research Assignment 12-5-2014 Variable naming conventions vary from program to program. In Visual Basic the variable must begin with a letter and you cannot use a space, period (.), or the characters !, @, &, $, # in the name. Visual Basic variable names must be under 255 characters long. You shouldn't use any names that are the same as the functions, statements, and methods in Visual Basic. You end up shadowing the same keywords in the language. To use a basic language function, statement, or method that conflicts with an assigned name, you must explicitly identify it. Precede the fundamental function, statement, or method name with the name of the associated type library. For example, if you have a variable called “Left”, you can only use the “Left” function using “VBA.Left”. In Python, variables must begin with a letter or underscore (_). Other characters can be letters, numbers, or the underscore. Python variables are case sensitive and can be any length, within reason. There are several keywords in Python that are reserved for other functions and cannot be used as variables. For example; print, def, from, not, and return. Variables in Java are referred to as Identifiers. In Java the variable must begin with a letter, an underscore, or a dollar sign ($) although a letter is typically what is used. The other characters may be letters or numbers, no spaces or special characters are allowed. Java identifiers can be any length......

Words: 405 - Pages: 2

Premium Essay

Pt1420

...as a reference so that changed value// will be retainedModule inputData(Real Ref number)number = 20End Module// number does not need to be sent as reference because// number is not going to be modifiedModule printData(Real number)Display “The number is “, numberEnd Module | This lab requires you to think about the steps that take place in a program by writing pseudocode. Read the following program prior to completing the lab. Data Communications Corp wants a small program that will calculate the cost of UTP it installs for their clients. Write a program that will ask the user to input the name of the client, the number of feet of cable installed. The program should then calculate and display a final bill. Cost per foot of UTP is .21 cents. Be sure to add on a tax of 6%. Final bill should include the total cost and client name. Be sure to add modules to your program. Consider the following variables and modules in your program. (Reference: Defining and Calling a Module, page 78). Variable Name | Declare String clientName | Declare Real feetUTP | Declare Real subtotal | Declare Real taxCost | Declare Real totalCost | Module Name | Module inputData() | Module calcCosts() | Module displayBill() | Step 1: Complete the pseudocode by writing the missing lines. (Reference: Defining and Calling a Module, page 78-81). Also, when writing your modules and making calls, be sure to pass necessary variables as arguments and accept them as reference parameters if......

Words: 1808 - Pages: 8

Premium Essay

Final Study Guide Programming

...Final study guide for programming 1)A case structure single alternative dual alternative is a nice way of taking nested if else statements and puts it. Its multiple alternative 2)False_True what logical operator would make it true? OR what would make that false? AND ^^^^^^^^^^ if an expression is false what operator would return or make it true? NOT what operators are these <> = ==? Relational first line of a case structure starts with the word case followed by? FALSE text expression loops are which structure cause them to loop repeatedly? Repitiion structure what type of loops uses a hulian expression to express the number of times it repeats? Condition controls. Which pair of loops causes a statemtnet or set of statements to repeat as long as it is true? While and Do what represents an ending value? Sentinal value 15)which loop is designed to intional test and incrment the counter? For Loop 19)When do we use a counter control loop? When we know how many times we want to loop which of the folllowing are good examples of a poset test loop? Do while and do until Which loop repeats a statement as long as an bulian expression is false? Do-Until what automatically counters as the end of a loop which statement doesnt contain but does at the end of the statementt? Its a for loop 26)this kind of loop performs a task at least once? Do-until using the counter example what loop performs three actions?refactor is the answer 31)function what__......

Words: 585 - Pages: 3

Free Essay

Pt1420 Final Exam

...FINAL EXAM STUDY GUIDE 1. A decision structure. case structure is a a. Single-alternative b. Dual-alternative d. Triple-alternative What is the expected output of the following flowchart? elrH?Xe*$le#s# ,,&.k$ry]ffilit*i+ My age is 31 and your age is less than that b. Our ages do not qualify c. Nothing d. Syntax error a. { FINAL EXAM STUDY GUIDE 3. What is the expected output of the following flowchart? My age is between 32 and 35 b. My age is not within that range c. Nothing a. d. Syntax error FINAL EXAM STUDY GUIDE 4. What is the expected output of the f'ollowing flowehart? You canvoto You carurot vote Nolhing d. Syntax error a. b. c. FINAL EXAM STUDY GUIDE 5. What is the expected output of the following flowchart? a. One of our numbers is 83 b. 83 is not our numbers c. Nothing d. Syntax error 6. Which operator would make the following expression true? False_Jrue a. b. AND NOT ffi d. OTHER 7. Which operator would make the following expression false? False True b. NOT d. OTHER c. OR 4 FINAL EXAM STUDY GUIDE 8. If the expression is false, the a. AND operator will return true. ffiOR c. d. 9. OTHER What type of operators are the following? d. 10. The Mathematical first line of the case structure starts with the word CASE followed by the test expression. a. True I l. Which a. b. c. structure......

Words: 761 - Pages: 4

Free Essay

Pt1420 Programming Unit 10 Research & Homework

...Unit 10: Homework and Research Assignment Definition Decision Structure - allows a program to perform actions only under certain conditions. Boolean expression - expressions that can be evaluated as either True or False Iteration - is the repetition of a block of statements within a computer program. Counter-controlled repetition structure - used when a program needs to repeatedly process one or more instructions until some condition is met, at which time the loop ends. Many programming tasks are repetitive, having little variation from one item to the next.  Condition controlled - Most programming languages have constructions for repeating a loop until some condition changes. Note that some variations place the test at the start of the loop, while others have the test at the end of the loop.  Pre – test loop - the condition gets evaluated at the beginning of the loop cycle. Therefore, the body of the loop will not get executed if the condition does not hold the very first time. Post – Test loop - the loop condition gets evaluated at the end of the loop cycle. Therefore, the body of the loop will get executed at least once, regardless of the condition. This is a major difference between a pretest loop and a posttest loop. You may choose a posttest loop if the problem description justifies the body of the loop be executed at least once. Repetition Sequence/ Set of statements - A repetition structure causes a statement or set of statements to......

Words: 1912 - Pages: 8

Premium Essay

Home Page » Computers and Technology Pt1420 Unit 1 in: Computers and Technology Pt1420 Unit 1 “Unit 1 Assignment 1” Itt Technical Institute Intro to Programming – Pt1420 Unit 1 Assignment 1 Short Answer Questions 1.

...Home Page » Computers and Technology Pt1420 Unit 1 In: Computers and Technology Pt1420 Unit 1 “Unit 1 Assignment 1” ITT Technical Institute Intro to Programming – PT1420 Unit 1 Assignment 1 Short Answer Questions 1. Why is the CPU the most important component in a computer? The reason the CPU is the most important component in a computer is because without the CPU you can’t run any software. 2. What number does a bit that is turned on represent? What number does a bit that is turned off represent? The number in a bit that represents a turned on position is 1. The number in a bit that represents a turned off position is 0. 3. What would call a device that works with binary data? A digital device is a device that works with binary data. 4. What are the words that make up a high-level programming language called? Keywords or Reserved Words are words that make up a high-level programming language. 5. What are short words that are used in assembly language called? Mnemonics are short words that are used in assembly language. 6. What is the difference between a compiler and an interpreter? The difference between a compiler and an interpreter is that a compiler translates high-level language into separate machine language program while an interpreter translates AND executes the instructions in a high-level language program. 7. What type of software controls the internal operations of the computer’s hardware? An......

Words: 393 - Pages: 2

Baixar APK | Professional WordPress Plugin Development | Milf in Time [v.0.0.7f Rus / v.0.0.8 Eng + Walkthrough] (2018) (Rus/Eng) [Ren'Py] [MacOS] [Android]