(Terms) UPDATED ACTUAL Exam
Questions and CORRECT Answers
assignment operator - CORRECT ANSWER = is an assignment operator (a = b assigns a
with the value of b)
== - CORRECT ANSWER == is the question are these values equal? (a == b compares a
and b)
It is a binary operator with left-sided binding. It needs two arguments and checks if they are
equal.
Unary - CORRECT ANSWER +-
**
*/%
Binary - CORRECT ANSWER +-
< <= > >=
== !=
conditional instruction (or conditional statement) - CORRECT ANSWER This conditional
statement consists of the following, strictly necessary, elements in this and this order only:
the if keyword;
one or more white spaces;
, an expression (a question or an answer) whose value will be interpreted solely in terms of True
(when its value is non-zero) and False (when it is equal to zero);
a colon followed by a newline;
an intended instruction or instructions (at least one instruction is absolutely required); the
indentation may be achieved in two ways - by inserting a particular number of spaces, or by
using the tab character (the latter way is recommended); note: if there is more than one
instruction in the indented part, the indentation should be the same in all lines; it may look the
same if you use tabs mixed with spaces, but it's important to make all indentations exactly the
same)
elif - CORRECT ANSWER used to check more than just one condition, and to stop when
the first statement which is true is found.
pseudocode - CORRECT ANSWER a high-level description of the actions of a program or
algorithm, using a mixture of English and informal programming language syntax
logical operators - CORRECT ANSWER operators to build conjunctions and disjunctions
conjunction - CORRECT ANSWER Something depends on the simultaneous fulfillment
of two conditions. Or in the language of logic, a connection of conditions.
disjunction - CORRECT ANSWER In logic, something depends on at least one of two
conditions.
bitwise operators - CORRECT ANSWER operators that allow you to manipulate single
bits of data
& (ampersand) bitwise conjunction
| (bar) bitwise disjunction
~ (tilde) bitwise negation