• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

Computer Programming: Python - Module 2 (Terms) UPDATED ACTUAL Exam Questions and CORRECT Answers

Document preview thumbnail
Preview 2 out of 9 pages

Computer Programming: Python - Module 2 (Terms) UPDATED ACTUAL Exam Questions and CORRECT Answers assignment operator - CORRECT ANSWER with the value of b) == - CORRECT ANSWER = is an assignment operator (a = b assigns a == 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 a

Content preview

Computer Programming: Python - Module 2
(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

Document information

Uploaded on
July 11, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
18
Followers
1
Items
4641
Last sold
2 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions