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

INTRO TO PYTHON - CMPSC 101 (EXAM 1) QUESTIONS WITH CORRECT ANSWERS!!

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
25-02-2025
Written in
2024/2025

Machine language - ANSWER0's and 1's that contain instructions that can be understood by a computer; Compiled language - ANSWERCode written by programmer is reduced to a set of machine-specific instructions prior to runtime; these then saved as an executable that can be run (e.g., Ada, c/c++, Cobol, FORTRAN) Interpreted language - ANSWERCode written by programmer is saved in the same format as it was, which is then converted to machine-specific instructions at runtime; often easier for developing code (e.g., JavaScript, Perl, Python, MATLAB) Guido van Rossum - ANSWERCreated Python in the Netherlands in 1990 Python - ANSWERHigh-level, object-oriented programming language; used in Google, NASA, NYSE Compiler - ANSWERReads program and translates it completely before running it; typically faster than its counterpart Interpreter - ANSWERProcesses program little at a time; reads high-level language and executes it Integrated Development Environment (IDLE) - ANSWERSingle program that provides tools to write, execute, and test a program; automatically installed with Python; runs in interactive mode; has built in text editor

Show more Read less
Institution
INTRO TO PYTHON - CMPSC 101
Course
INTRO TO PYTHON - CMPSC 101









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

Written for

Institution
INTRO TO PYTHON - CMPSC 101
Course
INTRO TO PYTHON - CMPSC 101

Document information

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

Subjects

Content preview

INTRO TO PYTHON - CMPSC 101
(EXAM 1) QUESTIONS WITH CORRECT
ANSWERS!!
Machine language - ANSWER0's and 1's that contain instructions that can be
understood by a computer;

Compiled language - ANSWERCode written by programmer is reduced to a set of
machine-specific instructions prior to runtime; these then saved as an executable
that can be run (e.g., Ada, c/c++, Cobol, FORTRAN)

Interpreted language - ANSWERCode written by programmer is saved in the same
format as it was, which is then converted to machine-specific instructions at runtime;
often easier for developing code (e.g., JavaScript, Perl, Python, MATLAB)

Guido van Rossum - ANSWERCreated Python in the Netherlands in 1990

Python - ANSWERHigh-level, object-oriented programming language; used in
Google, NASA, NYSE

Compiler - ANSWERReads program and translates it completely before running it;
typically faster than its counterpart

Interpreter - ANSWERProcesses program little at a time; reads high-level language
and executes it

Integrated Development Environment (IDLE) - ANSWERSingle program that
provides tools to write, execute, and test a program; automatically installed with
Python; runs in interactive mode; has built in text editor

Program Development Cycle - ANSWERDesign, write code, correct syntax errors,
test, correct logic errors

Algorithm - ANSWERSet of well-defined logical steps that must be taken to perform
a task

Pseudocode - ANSWERFake code; informal language that has no syntax rules; not
meant to be compiled or executed; no worry of syntax errors so can focus on
program design; can be translated directly to code in any programming language

Assignment statement - ANSWERExpression used to create and give value to a
variable

False, True, & None - ANSWEROnly Python keywords with capital letters

, Integers - ANSWERWhole numbers; no fractional parts; can be positive,negative, or
zero; to print( ), does not need quotes

Real/Floating point numbers - ANSWERNumbers with a decimal point; have
fractional parts (1/2, 1/4,...); can be positive or negative; to print( ), does not need
quotes


Flowchart - ANSWERDiagram that graphically depicts the steps in a program;
ovals=terminals, parallelograms=input/output, rectangles=processing,
diamond=if statement

Statement - ANSWERA program instruction; execute in order, top to bottom

Expression - ANSWERCode that returns a value when entered; combination of
values, literals, variables, and operators

Function - ANSWERPiece of prewritten code that performs an operation

Argument - ANSWERData given to a function

String - ANSWERSequence of characters that is used as data

String literal - ANSWERString that appears in actual code of a program; must be
enclosed in single or double quotes

End-line comment - ANSWERAppears at the end of a line of code; typically explains
purpose of that line

Object - ANSWERCreated to represent value assigned to a variable; interpreter
creates and manipulates to run code

Variable - ANSWERName that refers to a value; used to access and manipulate data
stored in memory; can be passed as an argument to a function; name cannot start
with a digit; can only use if it has assigned value
..., end=' ') - ANSWERPrints a space between two statements

\n - ANSWERNewline character; causes output to the next line

\t - ANSWERHorizontal tab; causes following statement to tab over

\' or \" - ANSWERTo print single or double quotes within a string

Rules for naming variables - ANSWERCannot be Python keyword; cannot contain
spaces; first character must be letter or underscore, after which letters, digits or
underscores may be used; case sensitive; use meaningful one

and, as, assert - ANSWERA Python keywords

break - ANSWERB Python keywords

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.
papersbyjol West Virginia
View profile
Follow You need to be logged in order to follow users or courses
Sold
421
Member since
2 year
Number of followers
253
Documents
13986
Last sold
1 week ago

3.8

72 reviews

5
27
4
18
3
17
2
2
1
8

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