Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 12 pages
Exam (elaborations)

C173 Scripting and Programming Foundations Questions with and Answers with Verified Solutions | Latest 2026 Update

Document preview thumbnail
Preview 2 out of 12 pages

C173 Scripting and Programming Foundations Questions with and Answers with Verified Solutions | Latest 2026 Update

Content preview

C173 Scripting and Programming Foundations Questions with and
Answers with Verified Solutions | Latest 2026 Update




Q: return <value> Specifies the value to be returned by a function back to its
function call

Answer:
def <Name>(<Parameters>): Defines a function in Python.
terminal A value that cannot be broken down further. Once you get to a terminal
there is
nothing else you can replace it with. In programming grammar, these never appear
on the left
side of a rule.
non-terminal A value that can be reduced further by the grammar rules until it is
reduced to
a terminal value.
cost (time,memory) depends on the input.
worst case When analysing programs it's the worst-case execution time that is
important.
The worst-case execution time is the time it takes for the case where the input for a
given size
takes the longest to run

, Q: Making lookup Faster hash function. Given a keyword, the hash function will
tell you where

Answer:
to look in the index. It will map the keyword to a numbe
Expression → Expression Operator Expression Expression → Expression Operator
Expression
Logical Operators 1. NOT is evaluated first
2. AND is evaluated next
3. OR is evaluated last
NOT Evaluator The Logical NOT Operator is used to reverse the logical state of its
operand.
For example, if a condition is evaluated to false then the Logical NOT operator will
make the
answer true. Here are a few examples:
not True → False
not False → True
not (True and False) → True
not (True or False) → False
AND Evaluator When work with AND evaluator, if the first expression evaluates to
false,
then the second expression is ignored and the entire statement evaluates to false.
Here are a
few examples:
false AND true → false

Document information

Uploaded on
July 1, 2026
Number of pages
12
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.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.
SpencerHenderson
3.7
(53)
Sold
269
Followers
117
Items
47781
Last sold
18 hours 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