COMP 110 - Quiz 0

Ace your homework & exams now with Quizwiz!

What is the numerical operator for remainder "modulo"?

%

What is the numerical operator for multiplication?

*

What is the numerical operator for exponentiation?

**

What is the numerical operator for addition?

+

What is the numerical operator for negation?

-

What is the numerical operator for subtraction?

-

Which operator is used to find the remainder of an integer division calculation and results in an int typed value? - / - // - % - rem

- %

Given the string "12345", what is the evaluation of: "12345"[0] - Error: string index out of range - '0' - '1' - '2'

- '1'

What is the evaluation of: "U" + "N" + "C" - 'UNC' - ' U N C' - "U""N""C" - 'U+N+C'

- 'UNC'

What character is represented by the bit pattern 0b01100001? - 'a' - 'b' - 'c' - 'd'

- 'a'

What is the evaluation of: "spooky season"[2 + 2] - Error: string index out of range - 3 - 4 - 'o' - 'k'

- 'k'

Which operator is used to raise one number to the power of another? - ^ - * - ** - %

- **

Stored Python programs typically end in what file extension suffix? - .python - .python3 - .py - .pyt

- .py

In the following expression, which operator would be evaluated first using standard order of operations? 1 + 2 / 4 * 5 - 6

- /

Which operator is used for integer division and results in an int typed value? - / - // - % - div

- //

What are the two values of bits?

- 0 or 1

What is the weight of in-lecture polling questions?

- 0%

What do bit patterns begin with?

- 0b

In the following function call expression which symbol is an argument? int(0b01000001) - int - ( - 0b01000001 - )

- 0b01000001

How many different questions can you expect help with during a 1-on-1 office hours meeting concerning a specific assignment or project?

- 1

How many quizzes are you permitted to be absent for?

- 1

Which of the following boolean expressions results in a value of False? Choose all that apply. - 1 > 0 - 1 > 1 - 1 > 2 - 1 >= 0 - 1 >= 1 - 1 >= 2

- 1 > 1 - 1 > 2 - 1 >= 2

When a graded assignment (outside or quizzes/final) is turned in during the grace period, it will still be marked as late but it will not have any late penalty applied. How long is the grace period?

- 1 hour

Where should you go for help with programming exercises and projects? - 1-on-1 office hours - Tutoring

- 1-on-1 office hours

Where should you go for conceptual help questions? - 1-on-1 office hours - Tutoring

- 1-on-1 office hours - Tutoring

What are the dates for the four quizzes?

- 1/20 Thursday (Quiz 0) - 2/10 Thursday (Quiz 1) - 3/3 Thursday (Quiz 2) - 3/31 Thursday (Quiz 3)

If you miss one quiz, what is the weight of each individual quiz you do take?

- 10%

If you take all four quizzes, what is the weight of each individual quiz, before you take the final exam?

- 10%

What is the evaluation of...? 1_000 + 1_000_000 - Error: Invalid numbers. - 1100000 - 1001000

- 1001000

What is the late penalty applied after the grace period to either lesson responses or programming assignments?

- 15%

What does the final variable access expression evaluate to in this sequence of statements: >>> x: int = 1 >>> x = x + 1 >>> x - Error - 1 - 2

- 2

If you take all four quizzes, and your final exam's score exceeds your lowest quiz score, what is the weight of your final exam?

- 20%

How many different patterns can be formed with 16 bits?

- 2^16

How many bits of precision do floats use?

- 2^64

How do you determine how many bits are possible given a certain amount of bits?

- 2^bits

What is the evaluation of: 10 / 2 - 10/2 - 5 - 5.0

- 5.0

How many late percentages will be forgiven at the end of the semester?

- 60

In a sequence with 10 items, the last item's index is...?

- 9

What int value is represented by the bit pattern 0b01100001? - 65 - 66 - 97 - 98

- 97

What is the type of True? - <class 'int'> - <class 'bool'> - <class 'str'> - <class 'logic'> - NameError

- <class 'bool'>

The random package has many functions for generating random numbers. There's a random function defined in the random package, you can import and call using a function call expression like so: >>> from random import random >>> random() Try calling the random function many times. What type does a call to the random function evaluate too? - <class 'str'> - <class 'float'> - <class 'int'>

- <class 'float'>

The random package also has many functions for random selections. There's a choice function defined in the random package, you can import and call using a function call expression with a sequence as an argument, like so: >>> from random import choice >>> choice("wxyz") Try calling the choice function many times and with different str values as input arguments. What type does a call to the choice function evaluate to in these examples? - <class 'str'> - <class 'float'> - <class 'int'>

- <class 'str'>

Which of the following relational operators tests whether two values are equal to one another? - = - == - ===

- ==

What are character sets? What are some examples?

- A character set is a set of valid characters acceptable by a programming language in scripting. In this case, we are talking about the Python programming language. So, the Python character set is a valid set of characters recognized by the Python language. - Arabic, Emoji, English

What is a function call expression? What are some examples?

- A function call is an expression that includes the name of the function being called or the value of a function pointer and, optionally, the arguments being passed to the function. - Examples: >>> round(3.5) >>> randint(0, 100) >>> sqrt(2)

What is a function call expression?

- A function call is an expression that starts with the name of the function being called and the arguments being passed to the function.

What is a function? What are some examples of functions?

- A function can often be thought of as a procedure, or a named algorithm, which you can use to carry out some complex operation more simply. - Examples: round, randint, sqrt

What is a method call expression?

- A method is a special function associated with an object. - Examples: >>> "hello, world".upper() 'HELLO, WORLD' >>> msg: str = "hello, world" >>> msg.capitalize() 'Hello, world' >>> msg.startswith("help") False >>> msg.startswith("hello") True >>> msg 'hello, world'

What is an interpreter?

- A program that reads other programs in a specific language - Read --> Checking syntax - Evaluation --> Follows your instructions

What does every expression evaluate too?

- A specific, concrete type.

What is a variable access?

- A variable access will evaluate to the last value bound to the variable's name. - Example: >>> x: int = 110 >>> x 110 >>> x * 2 220 >>> x = 3 >>> x 3 >>> x * 2 6

What is a variable?

- A variable is a name you associate with a block of memory that refers to an object.

How many hours per week can you expect to need to spend on COMP 110 in order to succeed, counting both lesson/lecture time AND coursework time? - About 2.5 hours per week - About 9 hours per week - About 11.5 hours per week

- About 11.5 hours per week

Where should you bring positive energy? - Interactions with peers - Interactions with course staff - Group Chats and Lecture - All of the above

- All of the above

What is the one caveat to the rule stated previously?

- An expression formed with the standard division operator will always evaluate to a float, even if both sides of the operator are an int.

What is an index?

- An index, in your example, refers to a position within an ordered list. - Python strings can be thought of as lists of characters; each character is given an index from zero (at the beginning) to the length minus one (at the end). - Examples: >>>"hello!" [0] 'h' >>>"hello!" [1] 'e' >>>"hello!" [4] 'o'

What is an object?

- An object is a typed unit of data in memory.

When is the final exam?

- April 30th at 8am

What is housed within the function call expression parentheses?

- Arguments

What is an example of an argument?

- BIT PATTERNS - 0b01100001

After your 15-minute appointment concludes, where should you continue working?

- Back in the Lobby of Sitterson Hall

How is an object's bit pattern given its meaning?

- Based on the TYPE of data you decide to classify it as.

How are transistors represented?

- Bits

What does the bool function stand for?

- Booleans

Whom are you permitted to collaborate with on graded work? - Paid tutors - Paid tutoring organizations - Unpaid tutors - Unpaid tutoring organizations - Peers - COMP friends - Parent(s) - Strangers on the internet - COMP 110 TAs while they are working as a TA - COMP 110 TAs while they are NOT working as a TA

- COMP 110 TAs while they are working as a TA

What are the three primary components of hardware we're concerned within this course? - Operating System - CPU (Central Processing Unit) - Memory (Ephemeral, Fast) - Storage (Persistent, Slower)

- CPU (Central Processing Unit) - Memory (Ephemeral, Fast) - Storage (Persistent, Slower)

Where are the names of everything (identifiers, functions, classes, and so on) defined in a process bound? - Built-ins - Call Stack - Storage - CPU

- Call Stack

What is the function of the hardware Central Processing Unit (CPU)?

- Carry out instructions

What does the function name chr stand for?

- Character

What is another name for Shell?

- Command-Line Interface (CLI)

When are constructor call expressions more commonly used?

- Constructor call expressions are more commonly used to construct objects of types that do not have literal syntax.

What is the purpose of a constructor function?

- Constructor functions allow objects of one type to be converted to a different type. - Example: >>> str <class 'str'> >>> type("110") <class 'str'> >>> int("110") 110 >>> type(int("110")) <class 'int'> >>> int <class 'int'> >>> type(110) <class 'int'> >>> str(110) '110' >>> type(str(110)) <class 'str'>

What are docstrings used for?

- DOCUMENTATION - A docstring is a special kind of string in Python used to document the programs you write.

What does the numerical operator integer division do?

- Division that results into whole number adjusted to the left in the number line. - Example: 7 // 5 result is 1

What is the syntax of a docstring?

- Docstrings begin and end with three double quotes strung together. - Example: """Hello, world!"""

What is the syntax for str literals?

- Double quoted - "Hello, world!" - The characters following the first double-quote character " begin the contents of the string value and the matched pairing double quote ends the str value.

Which step is responsible for carrying out your instructions? - During the READING step of the interpreter - During the EVALUATION step of the interpreter

- During the EVALUATION step of the interpreter

When do syntax errors occur? - During the READING step of the interpreter - During the EVALUATION step of the interpreter

- During the READING step of the interpreter

Which step is responsible for checking syntax? - During the READING step of the interpreter - During the EVALUATION step of the interpreter

- During the READING step of the interpreter

If you have an emergency, such as hospitalization or severe illness, what should you do?

- E-mail [email protected]

If a str begins and ends with a double quote, how can you have a double quote within a string?

- ESCAPING - Place a backslash \ before some character with special meaning. - >>>"The students rejoiced, \"We love programming!\"" - >>>'The students rejoiced, "We love programming!"'

What classifies as an integer in Python?

- Either a zero or a nonzero digit followed by zero or more digits

What are transistors?

- Electronic cells found within computer's memory.

Is the MEMORY of hardware short-term or long-term?

- Ephemeral - Short-term - Fast

Assuming the evaluation of len("spooky") is 6, what is the evaluation of: "spooky"[len("spooky")] - Error: string index out of range - 'y' - 'spooky'

- Error: string index out of range

What essentially happens when you use an escape code in str data?

- Escape codes in str data only appear in the code you write and when that code is evaluated to become a true str object, the \" is interpreted as simply a ".

When using relational operators with strings, how does the evaluation take place?

- Every character has a numerical value associated with it. - Comparing two str values using relational operators uses each character of the string's ASCII values, in order, and it thus case-sensitive. - RECOGNIZE THAT COMPARING TWO STR VALUES WITH RELATIONAL OPERATORS CAN LEAD TO SURPRISING RESULTS.

What are the two big ideas of expressions?

- Every expression evaluates to a typed value at runtime. Every expression evaluates to a specific, concrete type. The evaluation of an expression only occurs when the program is running or when you ask the interactive Python interpreter to evaluate it. - Anywhere you can write an expression, you can substitute any other expression of the same type and still have a validly typed program (though it may have bugs!).

Which of the following statements are true of expressions? - Every expression will evaluate to a value. - Every expression evaluates to a specific type. - Anywhere you can write an expression that evaluates to one type, you could write another expression in its place as long as it evaluates to the same type and still have a validly typed program.

- Every expression will evaluate to a value. - Every expression evaluates to a specific type. - Anywhere you can write an expression that evaluates to one type, you could write another expression in its place as long as it evaluates to the same type and still have a validly typed program.

What is a benefit of expressions?

- Expressions enable creativity in solutions. - Expressions are a fundamental building block in programs. - The artful use of expressions gives you the freedom to compose and express precise ideas and computations.

What do expressions operate on?

- Expressions operate on objects and the types of objects inform the kinds of expressions you can write to operate on them or with them.

True/False: An if statement always requires a corresponding else.

- FALSE

True/False: Auto-graded points that I fail to earn on programming assignments will be manually graded later.

- FALSE

True/False: If your program has correct syntax it will not have any bugs.

- FALSE

True/False: The following statement CANNOT be a valid line of code in a program because it is illogical: age = age + 1

- FALSE

True/False: The following two statements are equivalent to one another in Python: age = 18 18 = age

- FALSE

True/False: The then and else blocks of an if-then statement are written at the same level of indentation as the if keyword and else keyword.

- FALSE

True/False: To begin a Python process in interactive mode, run python -m [directory].[python filename not including .py].

- FALSE

True/False: Tutoring is limited to 15-minute walk-in appointments.

- FALSE

True/False: When control reaches an if statement, and the condition evaluates False, control will continue on into the then block.

- FALSE

True/False: You can receive help on programming and graded assignments in tutoring.

- FALSE

True/False: A low-level program is one whose format is primarily intended for humans to read and write.

- FALSE - A high-level program is one whose format is primarily intended for humans to read and write.

True/False: An algorithm is a set of instructions that is fixed in length and can only process a fixed amount of data.

- FALSE - An algorithm is a set of instructions that is fixed in length, but can process arbitrary sized problems.

True/False: User Space Processes must always be visible.

- FALSE - Might be visible or not

True/False: The first item in a sequence is always at index one.

- FALSE - The first item in a sequence is always at index zero.

True/False: The operations you can perform on numbers, such as adding or subtracting them, are NOT different than the operations you can perform on strings.

- FALSE - They are different!! - When working with numbers, you must use int or float and when working with characters, you must use str, and when working with logic, use bool.

True/False: Comparing two string values using relational operators always works the way you would expect to in the English language?

- False

What is the result of evaluating the expression "A" > "b" ? - True - False - Error

- False

The str class defines a method named isalpha for testing whether a string is made entirely of all alphabetical characters. It also has a method named isdigit, whose documentation you can read about here. Given the three following expressions, what is the order of their evaluations? >>> "comp110" .isalpha() >>> "110" .isdigit() >>> "comp110"[0] .isalpha()

- False, True, True

If you have a suggestion for how to improve the course or want to offer positive, encouraging feedback, what should you do?

- Fill out the FEEDBACK form

If you have a grievance about Kris or the course, what should you do?

- Fill out the GRIEVANCES form

What does float stand for?

- Floating-point Decimal Numbers

Will the integer division operator return an int back into an int or will it keep it a float after converting it to a float?

- For integer division, the // operator will return an int and will always truncate, or remove, and remainder.

What does a function call expression start with?

- Function name - int - chr

Which of the following kinds of shells exist? - Graphical User Interface (GUI) - Textual (Command-Line Interface - CLI)

- Graphical User Interface (GUI) - Textual (Command-Line Interface - CLI)

What are two examples of Shells?

- Graphical User Interface (GUI) - Textual (Command-Line Interfaces)

Of the four components of computer systems, which plays a role with the "physical device"?

- Hardware

What are the the three criteria required to pass COMP 110?

- Have a passing grade given the rubric of weights above and grading scale below. - Be present for and take at least 3 quizzes. - Score greater than 40% on the final exam.

What are operators?

- In Python, operators are special symbols that designate that some sort of computation should be performed. - The values that an operator acts on are called operands. - Examples: +, -, *, /

When your ticket is called, where should you go?

- In to Sitterson 008

What does the function name int stand for?

- Integer

What are the two types of modalities for interpreters?

- Interactive Program - Stored Program

What is the verbalization for the relational operator symbol, != ?

- Is NOT equal to?

What is the verbalization for the relational operator symbol, >= ?

- Is at least?

What is the verbalization for the relational operator symbol, <= ?

- Is at most?

What is the verbalization for the relational operator symbol, == ?

- Is equal to?

What is the verbalization for the relational operator symbol, > ?

- Is greater than?

What is the verbalization for the relational operator symbol, < ?

- Is less than?

What is data abstraction?

- It is more important to understand the types of data you are working with rather than exactly how they are represented as bit patterns.

What are literal expressions?

- Literals are the simplest form of an expression because their evaluation is straightforward. - When a literal expression is evaluated, it results in an object guided by what was literally written in code. - The str "hello" evaluates to hello (quotation marks are removed).

Complete the analogy with memory and objects: __________ is your canvas and ___________ are your paint.

- Memory is your canvas and objects are your paint.

Are imports considered function call expressions?

- NO

Do floats have infinite or arbitrary precision?

- NO

Is there a textbook for COMP 110?

- NO

Is it possible to perform numerical computation within a str?

- NO - Example: >>>"110" + "110" '110110'

Are integers and floating-point values sequences?

- NO - They are singular numerical values. Thus, you cannot subscript them like a str.

Can you use commas to denote places in large numbers? If not, what can you use instead?

- NO - Underscore (1_000)

How are booleans named?

- Named by its inventor, George Bool

When defining a variable, what does the = mean?

- Notice the single = symbol does not mean the same as what it does in mathematics. It can be read as "is bound to a value of."

What are the four different types of built-in data types?

- Numerical (integers, decimal numbers, complex numbers) - Textual - Logical - Collections of many objects (sequences, sets, dictionaries)

What part of the system is responsible for controlling what resources are available to processes? - User Space Processes - Shell - OS Kernel - Hardware

- OS Kernel

What are some examples of user space processes?

- Office - Chrome - Instagram

Why do we not call the str function text?

- Text often conveys a bias toward thinking in words and visible symbols like letters, whereas "characters" can be invisible (such as spaces, tabs, and new line breaks), non-"textual" (digits, code, special symbols, etc), and from many different character sets (Arabic, Chinese, English, Emoji, German, etc).

What can the symbol x represent? - The English letter pronounced phonetically as "ex" - The Roman Numeral digit for 10 - A "kiss" in the context of XOXO - An unknown variable in a math expression - A mark on a map

- The English letter pronounced phonetically as "ex" - The Roman Numeral digit for 10 - A "kiss" in the context of XOXO - An unknown variable in a math expression - A mark on a map

Where should you wait until your ticket is called?

- The Lobby of Sitterson Hall

The generic format of a variable declaration and initialization statement is the following: A: B = C What is B? - The initial value of the variable being declared - The data type of the variable being declared - The name of the variable being declared

- The data type of the variable being declared

The generic format of a variable declaration and initialization statement is the following: A: B = C What is C? - The initial value of the variable being declared - The data type of the variable being declared - The name of the variable being declared

- The initial value of the variable being declared

What happens when you attempt to form an expression between an int and a float?

- The int will first be converted to a float and then the expression will be evaluated.

What is concatenation?

- The joining of two or more strings. - Example: >>>"110" + "110" '110110' - Example: >>>"2" + "100" '2100'

The generic format of a variable declaration and initialization statement is the following: A: B = C What is A? - The initial value of the variable being declared - The data type of the variable being declared - The name of the variable being declared

- The name of the variable being declared

In an environment diagram, what goes in the Globals frame? - The values every expression in our program evaluate to - The names of variables declared globally and their assigned values - The printed values of our program

- The names of variables declared globally and their assigned values

What decides whether an operator is defined for a specific type?

- The object's type. - Example: >>> "SETH" + "TYSOR" SETHTYSOR >>> 1 + 2 3

Does the order matter for the relational operators that contain two different characters, such as !=, >=, and <=? Can you place a space in between them?

- The order of the characters matters and you cannot place any spaces between the two characters.

What does the randint function do?

- The randint function took two inputs in the form of two int values, and when the randint function evaluated it returned a random int value between those two numbers.

What are the primary purposes of the operating system kernel? - To fairly share the resources of your machine - Protects processes from each other - It's the layer of the system where your program exists - Controls running multiple processes at once

- To fairly share the resources of your machine - Protects processes from each other - Controls running multiple processes at once

Where are docstrings typically written within a file?

- Top of every file describing its purpose

Which of the following are valid bool values in Python? - true - false - True - False - tRuE - FaLsE

- True - False

What are the two possible values for booleans?

- True or False

What does the function str.isalpha() do?

- True: If all characters in the string are alphabetic. - False: If NOT all characters in the string are alphabetic (int or floats included).

What does the function str.isdigit() do?

- True: If all characters in the string are digits. - False: If NOT all characters in the string are digits (str included).

If you have questions about lecture or general course concepts and want to work with TAs and small groups of peers in a less time-constrained space than 1-on-1 office hours, where should you seek help? - Tutoring - Email

- Tutoring

Lesson responses (on Gradescope) can be turned in late for how long?

- Two days beyond original deadline

What is the function of types?

- Types are important because they decide how data is interpreted and inform how you can make use of the object and its capabilities.

What is the purpose of reserved words?

- Used for special meanings

Of the four components of computer systems, which plays a role with "apps"?

- User Space Processes

What layer of a computing system will the programs you write exist? - User Space Processes - Shell - OS Kernel - Hardware

- User Space Processes

What are the four components of computer systems?

- User Space Processes - Shell - OS Kernel - Hardware

How can you find the number of items in any sequence?

- Using the built-in len function

What software do we use for programming in this class?

- Visual Studio Code (VSCode)

When using the randint or sqrt function, what must we do before?

- We must import the functions from their packages! - The randint function comes from the random import package, while the sqrt comes from the math Import package. - Example: >>> from random import randint >>> from math import sqrt

What is semantics?

- What the intended/expected effect of an instruction (meaning) is - Language of programming meaning

What does an object's type tell you?

- What you can do with it.

When are bool values used?

- When making logical decisions

When does the evaluation of an expression only occur?

- When the program is running or when you ask the interactive Python interpreter to evaluate it.

When running, User Space Processes know what two things?

- Where in instruction steps it is currently working on or needs to do next - Memory it has available to it

Are booleans binary?

- YES

Are docstrings written for humans to read?

- YES

Can the int function evaluate some integer arithmetic expressions?

- YES

Is Python case-sensitive?

- YES

Is the "round off" error ignored when using floats?

- YES

Can you also use single quotes instead of double quotes when using the str function?

- YES - 'Hello, world!'

Is there a connection between binary digits 0 and 1 and booleans?

- YES, there is a direct connection. - Example: >>>110 > 101 True >>>110 < 101 False

Is 0 an integer? Is 1 an integer? Is 2020 an integer? Is 0110 an integer?

- Yes - Yes - Yes - No

In general, when you apply a numerical operator between two values of the same type, whether int or float, what will you always get in return?

- You will get back a value of the same type.

What number does index numbering start from?

- ZERO

What type always results when using a relational operator?

- booleans - Example: >>> 1 == 1 True >>> 1 < 0 False

What type will standard division operators always result in?

- floats

Give the components of a function call expression.

- function_name (arguments)

What is an example of Graphical User Interfaces (GUI)?

- iOS - Androids - Windows

What does the final type function call evaluate to in this sequence of statements: >>> course: str = "110" >>> type(int(course)) - float - str - int

- int

How can you always find the last item's index using the len function?

- len(sequence) - 1

Which has a higher numerical representation: lowercase or uppercase letters?

- lowercase letters

What type of value does the input function always result in? - int - bool - str - float

- str

Supplementary written information and tutorials about subjects you will learn throughout the course (such as variables, expressions, environment diagrams, etc.) can be found on which top-level navigation page on the course web site? - resources - topics - support

- topics

What built-in function should you use to learn the type of classification of any object in Python?

- type

When will you commonly use bool values in your programs? - when performing computations - when working with textual data - when making logical decisions - bool values are uncommonly used in programs

- when making logical decisions

What is the syntax of an if-else statement?

if condition : THEN BLOCK else: ELSE BLOCK

True/False: The names you define in your code exist in the globals area of your call stack.

- TRUE

True/False: The only opportunity to make-up a missed quiz for credit is with a University Approved Absence.

- TRUE

True/False: The purpose of the interpreter is to read and evaluate the instructions we write in an interpreted language, such as Python, so that our central processing unit can carry out our instructions.

- TRUE

True/False: The standard mode of control flow in our programs is linear, meaning statements are evaluated one after another after another.

- TRUE

True/False: To begin a Python process such that it evaluates a stored Python program, run python -m [directory].[python filename not including .py].

- TRUE

True/False: To begin a Terminal Shell, go to Terminal > New Terminal.

- TRUE

True/False: Types such as str and int have literal syntax and constructor functions.

- TRUE

True/False: Use the built-in function quit() to end an interactive Python interpreter session.

- TRUE

True/False: We can typically only work with students in one-on-one office hours once per day, in order to fairly serve all students who need help.

- TRUE

True/False: When you see >>> that you can type in, you are working in an interactive Python interpreter process.

- TRUE

True/False: When your program is running as a process, the process keeps track of what step of the instructions it is currently working on or needs to do next.

- TRUE

True/False: When your program is running as a process, the process knows what memory it has available to it.

- TRUE

True/False: With an if-else statement, control flow can fork in one, or two, possible different directions.

- TRUE

True/False: You must be present and synchronous for at least 3 of the 4 quiz dates.

- TRUE

True/False: When a programming expression is evaluated, precedence and orders of operation apply.

- TRUE (PEMDAS)

What is the name of the program or VSCode pane that you use to run a textual shell? - OS Kernel - User Space Process - Terminal - CPU

- Terminal

Select which of the following are permitted resources on graded coursework: - Official programming language documentation. - Asking for help on an assignment on GroupMe, or any other mobile or web applications, group chat, or forum. - Materials on the course website and any linked resources. - Talking about specific assignments with peers in the course or anyone outside the course with the exception of UTAs. - Looking at someone else's screen, whether in person or shared remotely, while working on an assignment. Letting someone else look at or share your screen. - Copying code found on any website or community such as StackOverflow, Github, Chegg, or CourseHero. - Instruction received from UTAs. - Sharing or reusing code with any peer currently in the course or anyone who has previously taken the course. - Online documentation for specific errors you encounter.

- Official programming language documentation. - Materials on the course website and any linked resources. - Instruction received from UTAs. - Online documentation for specific errors you encounter.

What are the two states of transistors?

- On or off

What is the designated theme for VSCode?

- One Monokai

Projects and reading assignments can be turned in late for how long?

- One week beyond original deadline

Is the STORAGE of hardware short-term or long-term?

- Persistent - Long-term - Slow

Which of the following is a "program in motion"? - CPU (Central Processing Unit) - Process - Memory - Storage

- Process

What is the function of Python Interpreter Environment Diagrams?

- Process memory

What is syntax?

- Punctuation, spacing, rules for names, numbers - Language of programming rules

What does the numerical operator remainder "modulo" do?

- Remainder of the division of the left operand by the right. - Example: 7 % 5 result is 2

What word describes the MEANING implied by the punctuation, spacing, words, rules, and names in your program? - Syntax - Semantics

- Semantics

What layer of a computing system's purpose is to make it easy for you as the user to start, control, and stop the processes running on a computing system? - User Space Processes - Shell - OS Kernel - Hardware

- Shell

Of the four components of computer systems, which plays a role with the "operating system"?

- Shell - OS Kernel

Where are in-person office hours held?

- Sitterson Hall

Would you want to use floats when working with medical devices and rockets or would you want to use slower, more specialized options available?

- Slower, more specialized options

What does str stand for?

- Strings of Characters for "Textual Data"

If I need to be absent for a quiz, for any reason, I should:

- Submit the form linked to in the syllabus

How is subscription syntax formed?

- Subscription syntax is formed by pairs of square brackets following a compound value.

Where are textual shells ran?

- TERMINAL

True/False: A built-in is a function whose name is bound and defined before the code of your program begins.

- TRUE

True/False: A program is a sequence of steps.

- TRUE

True/False: After either the then block or else block completes, control continues to the next statement following the if-else statement, which is written at the same level of indentation of the if-else construct.

- TRUE

True/False: All deadlines are at 11:59pm EST on their due date.

- TRUE

True/False: Bits are binary.

- TRUE

True/False: Collaboration on ungraded, general course concepts is permitted.

- TRUE

True/False: I am permitted to resubmit programming assignments, before the deadline without penalty.

- TRUE

True/False: If a program you submit contains exceeds a high enough level of similarity to a peer's work, as detected by automated detection algorithms developed by computer scientists over the past 30 years, or is deemed suspicious for any other reason, you may be asked to submit a "code review" oral/zoom exam where you can explain any lines of code or decisions made in your code.

- TRUE

True/False: If your final submission on a graded programming assignment is made 48 hours or more before its due date you will receive a 5% early hand-in bonus on that assignment's auto-graded points. If it is between 24-48 hours, you will receive a 3% early hand-in bonus.

- TRUE

True/False: It is possible to nest if-else statements inside of either the then block or the else block of another if-else statements.

- TRUE

True/False: Lesson Responses on Gradescope are graded for correctness.

- TRUE

True/False: Programming languages are designed by and for humans.

- TRUE

True/False: The "flow of control" or "control flow" in a program is the logic which governs what statement the computer will evaluate next, in other words the order in which statements are evaluated.

- TRUE

True/False: The File Explorer lists the directories (folders) and files in your workspace. These are normal directories and files saved on your computer.

- TRUE

True/False: The best way to get back to your workspace in VSCode is through File > Open Recent.

- TRUE

True/False: The built-in, primitive types of programming language often have literal syntax for constructing and representing objects directly in your programs.

- TRUE

True/False: The condition of an if statement should always be a bool expression.

- TRUE

What is the numerical operator for division?

/

What is the numerical operator for integer division?

//

Which is the variable assignment operator? = or ==

=


Related study sets

PrQ13: Practice Quiz - Ch. 13: Monopoly

View Set

15.2.3 Public Key Infrastructure Practice Questions

View Set

Circuits and Electricity AP Physics

View Set

Technology Marketing Ch 1-3 Quizzes

View Set