QMB3302 Week 1
Comments are – answer not run as code.
How do you write comments? - answer With a hashtag
Markdown cells write ______. - answer Text
What are the building blocks of any programming language? - answer Operators
Operators definition - answerSpecial symbols that perform operations on variables and
values
What are the types of operators? - answer Arithmetic- basic mathematic operations
Comparison- compare values/variables for decision making
Logical- combine conditional statements
Assignment- assign values to variables
Integer division operator - answer//
Modulus/remainder operator - answer%
Exponent operator - answer**
What do comparison operators return? - answerEither true or false
What is the equal to operator sign? - answer==
What is the not equal to operator sign? - answer!=
Logical operators are - answerand, or, not
And operator - answerTrue if both operands are true
Or - answerTrue if at least one of the operands is true
Not - answerTrue if the operand is false
Variables can be thought of as _______. - answerpointers
Variables are ________. - answerMutable, they can be changed
Assign a variable with - answeran equal sign
Comments are – answer not run as code.
How do you write comments? - answer With a hashtag
Markdown cells write ______. - answer Text
What are the building blocks of any programming language? - answer Operators
Operators definition - answerSpecial symbols that perform operations on variables and
values
What are the types of operators? - answer Arithmetic- basic mathematic operations
Comparison- compare values/variables for decision making
Logical- combine conditional statements
Assignment- assign values to variables
Integer division operator - answer//
Modulus/remainder operator - answer%
Exponent operator - answer**
What do comparison operators return? - answerEither true or false
What is the equal to operator sign? - answer==
What is the not equal to operator sign? - answer!=
Logical operators are - answerand, or, not
And operator - answerTrue if both operands are true
Or - answerTrue if at least one of the operands is true
Not - answerTrue if the operand is false
Variables can be thought of as _______. - answerpointers
Variables are ________. - answerMutable, they can be changed
Assign a variable with - answeran equal sign