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

Computer Science. Questions & Answers. Graded A+

Rating
-
Sold
-
Pages
16
Grade
A+
Uploaded on
09-05-2023
Written in
2022/2023

Computer Science. Questions & Answers. Graded A+ Document Content and Description Below output - Basic instruction types are input, process, and _____. variables - In an instruction like: z = x + y, the symbols x, y, and z are examples of _____. * - Which symbol represents the multiplication operation in programming? An Algorithm - A sequence of instructions that solves a problem is called _____. code - What is a common word for the textual representation of a program? print() - Which instruction displays variables or expression values? # - Which symbol is used in Python to create a comment? (x * y) / 2 - Which code example is an expression? print("I won't quit!") - Which statement outputs the text: "I won't quit!"? whitespace - Space, tab, and newline are all called _____ characters. print('First part...', end='') - Which statement does not print a newline character at the end?user_name = input() - Which statement reads a user-entered string into variable user_name? int() - Which function converts a string to an integer? prompt - In the statement: age = input('Enter your age: ') , the string 'Enter your age: ' is called a(n) _____. x + y = z - Which statement has a syntax error? Assume variables x, y, z, and age have already been defined. runtime - Dividing by zero is an example of which type of error? ValueError - Which runtime error type occurs when trying to convert 'abc' to an integer? logic error - Which type of error does not cause the program to crash? Which statement about Python is true? - Developers are not usually required to pay a fee to write a Python program. What is an IDE used for? - Program development, including writing the source code. IDLE editor - Which program can be used to create a Python file that can be used directly by the interpreter? bits - 0s and 1s are known as ___ . instructions - A processor is a circuit that executes a list of _____. compiler - Which type of program converts a high-level language program into machine instructions?disk - A _____ is a computer component that stores files and other data. Random Access Memory - RAM is an abbreviation that stands for: operating system - The _____ is a process that manages programs and interfaces with peripherals. Moore's Law - The capacity of ICs doubles roughly every 18 months interpreter - A(n) _____ is a program that executes a script. 1980 - The Python language began development in the late _____'s. backwards compatible - Because Python 2.7 programs cannot be run by the Python 3.0 interpreter, Python 3.0 is not _____. open-source - The Python language is developed by a public community of users, therefore Python is a(n) _____ language. variable - A _____ is a named item used to hold a value. 12 - What is the value of y after the following code is executed? Note that the question asks for y, not x. age + 2 = years - Which of the following statements has a syntax error? Assume age and years are variables that have already been defined. -2 - What is the value of x after the following code is executed? x = 15x = x + 1 x = x * 2 x = 30 - x _ (underscore) - Which of the following symbols can be used as part of an identifier? case sensitive - A language is called _____ when upper case letters in identifiers are considered different from lower case letters. keyword - A _____ is a word that is part of the Python language and can't be used as a variable name. max_age - Which of the following identifiers is valid? Garbage collection - _____ is the process where objects that are no longer needed are deleted. immutable - Objects like integers and strings that can't be modified are called _____ . id() - The built-in Python function that gives an object's identity is: float - What is the name of the data type used for floating point numbers The speed of a snail. - Which of the following data values is best represented with a floating point variable? 3.0004e-12 - In Python, which of the following literals is shown in valid scientific notation? overflow - Assigning a value to a floating point variable that is too large for the computer to represent is a condition called _____ .2x + 3y - Which of the following is NOT a valid expression? Assume x and y are integer variables. unary - According to Python's precedence rules, which of the following operators has the highest precedence? x - ((y * (-z)) / 3) - Which expression using parentheses is equivalent to the following expression: x - y * -z / 3 interest = (principal * interest) * time - The formula for calculating the amount of interest charged on a loan is: interest = [principal x rate of interest] x timeWhich Python statement correctly performs the interest calculation? compound - The operator *= is called a(n) _____ operator. x = x - (2 + y) - Which statement is equivalent to the following assignment? x -= 2 + y 2.3e7 - Which floating-point literal correctly represents the scientific notation value: 2.3 x 10^7? / - 15 _____ 3 = 5.0 % - 15 _____ 3 = 0 seconds // 60 - Which expression gives the number of whole minutes that corresponds to

Show more Read less
Institution
Computer Science.
Course
Computer Science.










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

Written for

Institution
Computer Science.
Course
Computer Science.

Document information

Uploaded on
May 9, 2023
Number of pages
16
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • process

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.
Savior NCSU
View profile
Follow You need to be logged in order to follow users or courses
Sold
93
Member since
2 year
Number of followers
70
Documents
3434
Last sold
1 month ago

3.5

25 reviews

5
9
4
7
3
3
2
0
1
6

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