What is the informal language used by programmers use to create models of programs that has no syntax rules and is not meant to be compiled or executed quizlet?

Review Questions

Nội dung chính

  • Multiple Choice
  • Is an informal language that has no syntax rules and is not meant to be compiled or executed?
  • What is the informal language that programmers use to create models of programs that have no syntax rules and are not meant to be compiled or executed?
  • What is the informal language used by programmers use to create models of programs that has no syntax?
  • What is the informal language that programmers use to describe program function?

Multiple Choice

1. A ---error does not prevent the program from running, but causes it to preduce in( yrxfz:- -tsu^', syntax b. hardware c. logic d. fatal

2. A-is a single function that the program must perform in order to satisfy the customer.

a. task b. software requirement c. iite

3. A(u/--is a set of well-defined logical steps that must be taken to perform a k.

logarithn b. Dlan of artinn c. logic schedule algorithn

4. An informal language that has no syntax rules, and is not meant to be compiled or executed is called----..

a. faux code b. pseudocode c. Python d. a flowchart

5. A _ is a diagram that graphically depicts rhe steps that take place in a program.

a. flowchart b. step chart c. code graph d. program graph

6. A_is a sequence of characters.

a. char sequence b. character collection c. string d. text block

7. A-is a name that references a value in the computer's memory.

a. variable b. register c. RAM slot d. byte

8. A_is any hypothetical person using a program and providing input for it, a. designer b. user c. guinea pig d. test subject

9. A string literal in Python must be enclosed in a. parentheses b. single-quotes c. double-quotes d. either single-quotes or double-quotes

10. Short notes placed in different parts of a program explaining how those parts of the program work are called__

a. comments b. reference manuals c. tutorials d. external documentation

11. A(n)_makes a variable reference a value in the computer's memory.

a. variable declaration b. assignment statement c. math expression d. string literal

12. This symbol marks the beginning of a comment in Python.

13. Which of the following statements will cause an error?

14. In the expression 12 + 7, the values on the right and left of the + symbol are called_____

a. operands b. operators c. arguments d. math expressions

15. This is an operator that raises a number to a power.

16. This operator performs division, but instead of returning the quotient it returns the remainder.

17. Suppose the following statement is in a program: price = 99.0. After this statement executes, the price variable will reference a value of this data type.

a. int b. float c. currency d. str

18. This built-in function can be used to read a number that has been typed on the keyboard.

d. keyboard{)

19. This buiit-in function can be used ro convert an int value to a float.

20. This is the string format operator.

True or False

1. Programmers must be careful not to make syntax errors when writing pseudocode programs.

2. In a math expression, multiplication and division rakes place before addition and subtraction.

3. Variable names can have spaces in them.

4. In Python the first character of a variable name cannot be a number,

5. If you print a variable that has not been assigned a value, the number 0 will be displayed.

Short Answer

1. What does a professional programmer usually do first to gain an understanding of a problem?

2. What is pseudocode?

3. Computer programs typically perform what three steps?

4. Jf a math expression adds a float to an int, what will the data type of the result be?

5. How can the following statement be modified to make sure integer division does not take place?

Algorithm Workbench

1. Write Python code that prompts the user to enter his or her height and assigns the user's input to a variable named height.

2. Write Python code that prompts the user to enter his or her favorite color and assigns the user's input to a variable named color.

3. Write assignment statements that perform the following operations with the variables a, b, and c.

a. Adds 2 to a and assigns the result to b b. Multiplies b times 4 and assigns the result to a c. Divides a by 3.14 and assigns the result to b d. Subtracts 8 from b and assigns the result to a

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 value will be stored in result after each of the following statements execute?

5. Write a Python statement that assigns the sum of 10 and 14 to the variable total.

6. Write a Python statement that subtracts the variable down payment from the variable total and assigns the result to the variable due.

7. Write a Python statement that multiplies the variable subtotal by 0.15 and assigns the result to the variable total.

8. What would the following display? a = 5

9. What would the following display? num = 99

num = 5 print num

10. Assume the variable sales references a float value. Write a statement that displays the value rounded to two decimal points.

Continue reading here: Last Month Joe Purchased Some Stock In Acme Software Inc.

Was this article helpful?

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

Pseudocode is the informal language that we sometimes use to sketch out the structure of our code before actually writing it up with the correct language-specific syntax.

What is the informal language that programmers use to create models of programs that have no syntax rules and are not meant to be compiled or executed?

Introduction to Programming 02.

What is the informal language used by programmers use to create models of programs that has no syntax?

Programmers use pseudocode to create 'mock-ups' of programs because they do not have to worry about syntax rules.

What is the informal language that programmers use to describe program function?

Definition: Pseudocode is an informal way of programming description that does not require any strict programming language syntax or underlying technology considerations.

What is the informal language used by programmers use to create models of programs that has no syntax rules and is not meant to be compiled or Execu?

Definition: Pseudocode is an informal way of programming description that does not require any strict programming language syntax or underlying technology considerations. It is used for creating an outline or a rough draft of a program.

What is the informal language that programmers use to create models of programs that have no syntax?

Introduction to Programming 02.

What term is used for a string that appears in the actual code of a program?

When a string appears literally in source code, it is known as a string literal or an anonymous string.

What are programs commonly referred to as?

As a noun, a program, also called an application or software, is a set of instructions that process input, manipulate data, and output a result.