Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Answer all questions. You may refer to the textbook in class. Do not use any com

ID: 3865041 • Letter: A

Question


Answer all questions. You may refer to the textbook in class. Do not use any computer or a calculator. If you prefer, each question answered in the exam booklet provided, Hand in all papers, with answer clearly and with your name each sheet. The question is worth the points indicated Answer TRUE or FALSE: In Python, a reserved word can be used as a variable name. A large part of computer science is devoted to the study of algorithms. The statement from math import includes many math functions into a program, but no constants. Mathematical functions are implemented in the hardware of a computer base 2. The star class is a mutable class. The most precise representation of an amount of money, in a Python, program, is as a float value. The list class is a mutable class. The Python function ord (c) returns the code of the 1-character string c. A file object in Python is created by calling the function open. The value of the expression [1, 2, 3] * 2 is [2, 4, 6].

Explanation / Answer

1. False

we cant use reserved words as variables. Even if we use it throws the error.

2. True

For every thing we design in computer science we first need to develop an algorithm.

3. True

In libraries generally contains functions to include in the programs.

4.True

beacuse usally computers only understand only base 2 system

5. False

str class is a immutable because we cant perform modication on strings

6.True

money is always represented in decimal notation so float is a perfect representation

7.True

on lists we can perform modifications

8.True

ord(c) means it returns integer ordinal of a one-charecter string

9.True

in python we open a file object using open method.

10.False

[1,2,3]*2 means [1,2,3,1,2,3] so it is false.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote