CSC-121 Module 1 Review

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

The Program Development Cycle is generally made up of 5 steps that go in a certain order and then are repeating as a program is refined. What are the steps in the correct order as represented in the textbook.

1. Design the program 2. Write the code 3. Correct syntax errors 4. Text the program 5. Correct logic errors

result = 8 * 2 + 8 // 4 What will be the value of result after the code above is executed?

18

When applying the .3f formatting specifier to the number 76.15854, the result is ________.

76.159

In PyCharm, what feature will alter a code file so that it conforms to the Python.org PEP 8 coding style guide? A. Refactor B. Reformat Code C. Debug D. Help

B. Reformat Code

True or False: Python formats all floating-point numbers to two decimal places when outputting with the print statement.

False

After the execution of the following statement, the variable sold will reference the numeric literal value as a(n) ________ data type.sold = 256.752 float int currency str

Float

What is the output of the following print statement? print 'I\'m ready to begin' Im ready to begin I\'m ready to begin I'm ready to begin 'I\'m ready to begin'

I'm ready to begin

The % symbol is the remainder operator, also known as the ________ operator.

Modulus

True or False: Comments in Python begin with the # character.

True

True or False: Computer programs typically perform three steps: input is received, some process is performed on the input, and output is produced.

True

Which of the following are legal names for Python variables? _MESSAGE result8 time_2_finish 10%tax

_MESSAGE result8 time_2_finish

What symbol is used to mark the beginning and end of a string? a slash (/) an asterisk (*) a quote mark (") a comma (,)

a quote mark (")

The ________ function reads a piece of data that has been entered at the keyboard and returns that piece of data, as a string, back to the program. str_input() eval_input() output() input()

input()

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? source code flowchart algorithm pseudocode

pseudocode


Kaugnay na mga set ng pag-aaral

Complicated Pregnancy Practice Questions

View Set

MedSurg Ch 47- Assessment of Kidney and Urinary Function

View Set

ACCT 212 Chapter 10 Midterm Review

View Set

GBA 1 - Group Health Plan Design

View Set

Developmental Psychology FINAL EXAM REVIEW

View Set

Pharm Exam 1: Class NCLEX questions

View Set

Research Methods in Psych exam 3

View Set

Perry/Hockenberry chapter 9. Maternal and Fetal Nutrition

View Set

Accounting Chapter 13 - Payroll Liabilities and Tax Records

View Set

Manufacturing planning and control systems (MPC)

View Set

Module 7: Developing the Product

View Set