comp sci ch 2

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

type

A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).

expression

A combination of variables, operators, and values that represents a single result value.

mnemonic

A memory aid. We often give variables mnemonic names to help us remember what is stored in the variable.

variable

A name that refers to a value.

keyword

A reserved word that is used by the compiler to parse a program; you cannot use keywords like if, def, and while as variable names.

statement

A section of code that represents a command or action. So far, the statements we have seen are assignments and print expression statement.

operator

A special symbol that represents a simple computation like addition, multiplication, or string concatenation.

assignment

A statement that assigns a value to a variable.

floating point

A type that represents numbers with fractional parts.

string

A type that represents sequences of characters.

integer

A type that represents whole numbers.

modulus operator

An operator, denoted with a percent sign (%), that works on integers and yields the remainder when one number is divided by another.

comment

Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.

value

One of the basic units of data, like a number or string, that a program manipulates.

operand

One of the values on which an operator operates.

rules of precedence

The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.

concatenate

To join two operands end to end.

evaluate

To simplify an expression by performing the operations in order to yield a single value.


संबंधित स्टडी सेट्स

Pharmacology HESI Comprehensive Review

View Set

Chapter 4: Integrity Constraints

View Set

FCS 342 Final Exam (ch.3.4.5.6.11)

View Set

Far 600 T5 PYQ Conceptual Framework

View Set

7th Grade Social Studies - Chapter 16: Section 4 Assessment - The Republican Party Emerges

View Set