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

COSC Final Exam Questions and Answers

Rating
-
Sold
-
Pages
16
Grade
A+
Uploaded on
06-12-2025
Written in
2025/2026

COSC Final Exam Questions and Answers

Institution
COSC
Course
COSC










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

Written for

Institution
COSC
Course
COSC

Document information

Uploaded on
December 6, 2025
Number of pages
16
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

COSC Final Exam Questions and
Answers16

Data types must be specified for function parameters in Python. - ANSWERS-false



Function parameters specify a template for data that a function can accept. - ANSWERS-true



A function parameter is data that is passed to a function, whereas a function argument is listed
as a variable inside the parentheses at the end of the function name. - ANSWERS-false



A(n) ____ variable is accessible to an entire program whereas a(n) ____ variable is limited to a
specific part of a program. - ANSWERS-global, local



What statement describes the purpose of function parameters in a function declaration? -
ANSWERS-Function parameters specify a template for data that a function can accept.



A function call can pass a variable, as well as a literal, to a function parameter. - ANSWERS-true



A function can have multiple parameters. - ANSWERS-true



The popular programming languages Python and ________ are the two most widely used data-
science languages. - ANSWERS-R



Which logical unit of the computer is the receiving section? - ANSWERS-input unit

,Python recently surpassed the programming language ________ as the most popular data-
science programming language. - ANSWERS-R



T/F : Translator programs called assemblers convert high-level-language source code into
machine language. - ANSWERS-False



T/F : Computing costs are rising dramatically, due to the increasing complexity of hardware and
software technologies. - ANSWERS-False



A(n) ________ is the smallest data item in a computer. It can have the value 0 or 1. - ANSWERS-
bit



In which IPython interpreter mode do you enter small bits of Python code called snippets and
immediately see their results? - ANSWERS-interactive mode



T/F : a gigabyte is 1024 megabytes. - ANSWERS-true



T/F: Interpreter programs, developed to execute high-level language programs directly, avoid
the delay of compilation, and run faster than compiled programs. - ANSWERS-false



In the following expression, the addition operators (+) group as if we parenthesized the
expression as a+(b+c). - ANSWERS-false



Python ignores all white space. - ANSWERS-



If an expression contains several exponentiation operations, Python applies them from left to
right. - ANSWERS-false

, What does the int function attempt to do in the following code? - ANSWERS-Convert a string to
an integer



Which of the following statements about arithmetic operators is false? - ANSWERS-Expressions
containing an integer and a floating-point number are mixed-type expressions-these always
produce an integer.



Placing two backslashes back-to-back tells print to display a blank line. - ANSWERS-false



Each suite contains zero or more statements. - ANSWERS-false



Using the assignment symbol (=) instead of the equality operator (==) in an if statement's
condition is a common logic error. - ANSWERS-false



The value of the following expression is 3:



17 % 5 - ANSWERS-false



To square a number, you can use the exponent 1/2 (that is, 0.5), as in:



9 ** () - ANSWERS-false



The value of the expression '7' + '3' is the ________. - ANSWERS-string '73'



The expression -13 // 4 evaluates to -3. - ANSWERS-false

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.
Bensuda Oxford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
847
Member since
3 year
Number of followers
445
Documents
21474
Last sold
2 days ago
ECONOMICS,NURSING,BIOLOGY AND ALL REVISION MATERIALS

DEDICATED TO PROVIDE YOU WITH THE BEST LEARNING MATERIALS THAT WILL IMPROVE YOUR GRADES ,WELCOME TO ALIZGRADES AND LETS DO IT TOGETHER!!! GOODLUCK!!!!!!!

3.7

158 reviews

5
74
4
24
3
25
2
11
1
24

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