100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Exam Practice Questions and Answers for Introduction to Coding and Scripting

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
24-09-2024
Written in
2024/2025

- - Answers subtraction operator, outputs the difference between the two input numbers != - Answers a comparison operator used to compare if one operator is not equal to another % - Answers modulo operator, outputs the remainder of dividing the first number by the second * - Answers multiplication operator, outputs the product of the two input numbers ** - Answers exponentiation operator, outputs the result of multiplying <base> by itself <power> number of times / - Answers division operator, outputs the result of dividing the first number by the second + - Answers addition operator, outputs the sum of the two input numbers OR concatenation operator, joins two values together < - Answers a comparison operator used to compare if one operator is less than another < - Answers a comparison operator used to compare if one operator is less than another <= - Answers a comparison operator used to compare if one operator is less than or equal to another

Show more Read less
Institution
Programming
Course
Programming









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Programming
Course
Programming

Document information

Uploaded on
September 24, 2024
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Content preview

Exam Practice Questions and Answers for Introduction to Coding and Scripting

- - Answers subtraction operator, outputs the difference between the two input numbers

!= - Answers a comparison operator used to compare if one operator is not equal to another

% - Answers modulo operator, outputs the remainder of dividing the first number by the second

* - Answers multiplication operator, outputs the product of the two input numbers

** - Answers exponentiation operator, outputs the result of multiplying <base> by itself <power>
number of times

/ - Answers division operator, outputs the result of dividing the first number by the second

+ - Answers addition operator, outputs the sum of the two input numbers OR concatenation operator,
joins two values together

< - Answers a comparison operator used to compare if one operator is less than another

< - Answers a comparison operator used to compare if one operator is less than another

<= - Answers a comparison operator used to compare if one operator is less than or equal to another

= - Answers assignment operator, assigns a value

== - Answers a comparison operator used to compare if one operator is equal to another

> - Answers a comparison operator used to compare if one operator is greater than another

>= - Answers a comparison operator used to compare if one operator is greater than or equal to another

abstraction - Answers Focus on the essential qualities of something rather than one specific example.

actors - Answers In a use case, this is anything who lives outside of your system, but has a goal they
want to accomplish within.

algorithm - Answers A set of commands that returns a value. This differs from a procedure, which is a set
of commands that doesn't necessarily have to return a value.

append() - Answers Mutates <List> by adding <Element> to the end of the list.

arguments - Answers The inputs to a procedure. (may also be called parameters)

attributes - Answers Characteristics of an object which may be used to reference other objects or save
object state information.

, <name> = <expression> - Answers This is an assignment statement. A variable is named and also
assigned a value or expression. If multiple values are assigned to the same named variable, the last
assignment is the one used.

base case - Answers An expression that has a value and is not defined in terms of some other thing we
are defining. This breaks the chain of recursion.

Boolean - Answers A value that is either True or False

circular definition - Answers A definition that doesn't give us answers because it never finishes. It is stuck
in a loop with each reference pointing to another reference. It has no base case.

class - Answers Describes what an object will be, but it isn't the object itself. This is a blueprint for that
object.

class <ClassName> (<BaseClass>):

<Block> - Answers How to define a class in Python

class diagram (UML) - Answers Shows the system classes and relationships between them. Diagrams the
primary attributes and primary operations for each class.

code modularity - Answers Dividing software or an application into smaller modules. This provides
prewritten code which saves resources and provides greater manageability.

comparison operator - Answers Used to make a comparison between two values.

compiled language - Answers You write source code, and compiler goes through that code and creates a
separate file containing the machine code. That new file is used to run the program. Can be faster than
interpreted code. Must be compiled for a specific platform.

compiler - Answers A program that takes source code and converts it to machine code by producing a
separate file.

concatenate - Answers To connect or link in a series or chain.

constructor - Answers A special type of function used to create a class or object.

dictionary - Answers Provides a mapping between keys, which can be values of any immutable type, and
values, which can be any value. Because this is implemented using a hash table, the time to lookup a
value does not increase (significantly) even when the number of keys increases.

if <condition>:

Get to know the seller

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.
TutorJosh Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
342
Member since
1 year
Number of followers
16
Documents
28610
Last sold
2 days ago
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.6

53 reviews

5
18
4
14
3
12
2
0
1
9

Recently viewed by you

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

Frequently asked questions