Masigaderic
On this page, you find all documents, package deals, and flashcards offered by seller masigaderic.
- 486
- 0
- 13
Community
- Followers
- Following
518 Reviews received
499 items
Python Practice Exam Questions with complete Solutions 2024
True 
 If a file with the specified name already exists when the file is opened and the file is opened in 
'w' mode, then an alert will appear on the screen: T/F - False 
 If the last line in a file is not terminated with n, the readline method will return the line without 
n: T/F - True 
 When a piece of data is read from a file, it is copied from the file into the program: T/F - False 
 Which mode specifier will erase the contents of a file if it already exists and create the file if i...
- Exam (elaborations)
- • 6 pages •
True 
 If a file with the specified name already exists when the file is opened and the file is opened in 
'w' mode, then an alert will appear on the screen: T/F - False 
 If the last line in a file is not terminated with n, the readline method will return the line without 
n: T/F - True 
 When a piece of data is read from a file, it is copied from the file into the program: T/F - False 
 Which mode specifier will erase the contents of a file if it already exists and create the file if i...
Python Mocking Exam Questions with merged Answers
1. Which of the following is correct about Python? 
a. Python is a high-level, interpreted, interactive and object-oriented scripting language. 
b. Python is designed to be highly readable. 
c. It uses English keywords frequently where as other languages use punctuation, and it 
has fewer syntactical constructions than other languages. 
d. All of the above - d. All of the above. 
2. Is Python case sensitive when dealing with identifiers? 
a. yes 
b. no 
c. it depends on context 
d. it depends...
- Exam (elaborations)
- • 6 pages •
1. Which of the following is correct about Python? 
a. Python is a high-level, interpreted, interactive and object-oriented scripting language. 
b. Python is designed to be highly readable. 
c. It uses English keywords frequently where as other languages use punctuation, and it 
has fewer syntactical constructions than other languages. 
d. All of the above - d. All of the above. 
2. Is Python case sensitive when dealing with identifiers? 
a. yes 
b. no 
c. it depends on context 
d. it depends...
Python Mock Exam Questions with merged Answers
Which of the following statements is true about comments in coding? - Comments are a form of 
communication with other programmers (including yourself) 
In the following line of Python code, what is the argument to the input function? 
user_status = input("How are you today?") - "How are you today?" 
Which symbol is used to assign a value to a variable in Python? - = 
Which of the following is not a valid variable name in Python? - my_2_cents 
In Python, whole numbers like -3, 5 or 11 are s...
- Exam (elaborations)
- • 6 pages •
Which of the following statements is true about comments in coding? - Comments are a form of 
communication with other programmers (including yourself) 
In the following line of Python code, what is the argument to the input function? 
user_status = input("How are you today?") - "How are you today?" 
Which symbol is used to assign a value to a variable in Python? - = 
Which of the following is not a valid variable name in Python? - my_2_cents 
In Python, whole numbers like -3, 5 or 11 are s...
Python MIS Exam Questions and detailed Answers 2024
Booleans can only be 
-true false 
-numbers 
-letters - True and False 
What symbol would you use to see if two things are equal to each other? 
> 
== 
= 
!= - == 
What letter do we put in front of a String if we want to put variables in it? 
-f 
-s 
-j 
-x - f 
Which of the following is an Int? 
-hello 
-43 
-43.3 - 43 
it is a whole number 
Which of the following is not a string? 
-'Hello' 
-43 
-"Hello" - 43 
It has no quotes around it 
To use the Random module, what must we include a...
- Exam (elaborations)
- • 4 pages •
Booleans can only be 
-true false 
-numbers 
-letters - True and False 
What symbol would you use to see if two things are equal to each other? 
> 
== 
= 
!= - == 
What letter do we put in front of a String if we want to put variables in it? 
-f 
-s 
-j 
-x - f 
Which of the following is an Int? 
-hello 
-43 
-43.3 - 43 
it is a whole number 
Which of the following is not a string? 
-'Hello' 
-43 
-"Hello" - 43 
It has no quotes around it 
To use the Random module, what must we include a...
Python Mid-Term Exam Study Questions and Answers
False - True or False: Computer science is the study of computers 
CPU - The "brain" of the computer is the 
RAM (Random Access Memory) - Main memory is also called 
main memory - All information that a computer is currently working on is stored in 
Syntax - _______ of a language is its form 
Semantics - _______ of a language is its meaning 
Compiler - A complex computer program that takes another program written in a high-level language 
and translates it into an equivalent program in the ma...
- Exam (elaborations)
- • 16 pages •
False - True or False: Computer science is the study of computers 
CPU - The "brain" of the computer is the 
RAM (Random Access Memory) - Main memory is also called 
main memory - All information that a computer is currently working on is stored in 
Syntax - _______ of a language is its form 
Semantics - _______ of a language is its meaning 
Compiler - A complex computer program that takes another program written in a high-level language 
and translates it into an equivalent program in the ma...
Python Final Examination Study Questions and Answers
1. The sys module is used to perform which function? - Gives the user access to display and 
process system information 
2. Which argument is used in an open command when one wants to open a file but not make 
changes to the file? - r (read) 
3. Select the correct code entry from the drop-down in the code sample that will complete the 
datetime function. - import datetime 
4. Which code entry, when used with the random module, can be used to generate a random 
number between one and ten? - r...
- Exam (elaborations)
- • 4 pages •
1. The sys module is used to perform which function? - Gives the user access to display and 
process system information 
2. Which argument is used in an open command when one wants to open a file but not make 
changes to the file? - r (read) 
3. Select the correct code entry from the drop-down in the code sample that will complete the 
datetime function. - import datetime 
4. Which code entry, when used with the random module, can be used to generate a random 
number between one and ten? - r...
Python Final Exam Study Questions with complete solutions merged 2024
Output file - a file that data is written to 
Input file - a file that data is read from 
Three steps when a program uses a file - Open the file 
Process the file 
Close the file 
Text file - contains data that has been encoded as text 
Binary file - contains data that has not been converted to text 
Sequential access - file read sequentially from beginning to end, can't skip ahead 
Direct access - can jump directly to any piece of data in the file 
Filename extensions - short sequences of char...
- Exam (elaborations)
- • 17 pages •
Output file - a file that data is written to 
Input file - a file that data is read from 
Three steps when a program uses a file - Open the file 
Process the file 
Close the file 
Text file - contains data that has been encoded as text 
Binary file - contains data that has not been converted to text 
Sequential access - file read sequentially from beginning to end, can't skip ahead 
Direct access - can jump directly to any piece of data in the file 
Filename extensions - short sequences of char...
Python Final Exam Questions with Complete solutions 2024
A(n) __________ program translates a high-level language program into a separate machine language 
program. 
translator 
assembler 
compiler 
utility - compiler 
The rules that must be followed when writing a program are called __________. 
operators 
punctuation 
syntax 
key words - syntax 
The __________ translates an assembly language program to a machine language program. 
assembler 
translator 
compiler 
interpreter - assembler 
Computers can only execute programs that are written...
- Exam (elaborations)
- • 29 pages •
A(n) __________ program translates a high-level language program into a separate machine language 
program. 
translator 
assembler 
compiler 
utility - compiler 
The rules that must be followed when writing a program are called __________. 
operators 
punctuation 
syntax 
key words - syntax 
The __________ translates an assembly language program to a machine language program. 
assembler 
translator 
compiler 
interpreter - assembler 
Computers can only execute programs that are written...
Python Final Exam Guide Questions with Complete Solutions 2024
What is computational thinking? - 1. Understand the problem 
2. Create a strategy for solving the problem 
3. Express the solution using code 
 Algorithm - A sequence of well-defined instructions a computer can execute to perform 
calculations or solve problems. 
 Code - A set of instruction to a computer to carry out a specific task 
 Program - A complete piece of code that the computer executed to achieve a desired 
objective 
 Python - A widely used, general-purpose programming language, e...
- Exam (elaborations)
- • 7 pages •
What is computational thinking? - 1. Understand the problem 
2. Create a strategy for solving the problem 
3. Express the solution using code 
 Algorithm - A sequence of well-defined instructions a computer can execute to perform 
calculations or solve problems. 
 Code - A set of instruction to a computer to carry out a specific task 
 Program - A complete piece of code that the computer executed to achieve a desired 
objective 
 Python - A widely used, general-purpose programming language, e...
Python Final Certification Exam Questions with merged Answers 2024 updates.
intro-2-1: What is the most important skill for a computer scientist? 
A. To think like a computer. 
B. To be able to write code really well. 
C. To be able to solve problems. 
D. To be really good at math. - C. To be able to solve problems. 
intro-2-2: An algorithm is: 
A. A solution to a problem that can be solved by a computer. 
B. A step by step list of instructions that if followed exactly will solve the problem under consideration. 
C. A series of instructions implemented in a programming ...
- Exam (elaborations)
- • 70 pages •
intro-2-1: What is the most important skill for a computer scientist? 
A. To think like a computer. 
B. To be able to write code really well. 
C. To be able to solve problems. 
D. To be really good at math. - C. To be able to solve problems. 
intro-2-2: An algorithm is: 
A. A solution to a problem that can be solved by a computer. 
B. A step by step list of instructions that if followed exactly will solve the problem under consideration. 
C. A series of instructions implemented in a programming ...
OCR 2023 Biology A H020/02: Depth in biology AS Level Question Paper & Mark Scheme (Merged)
OCR 2023 Biology A H020/01: Breadth in biology OCR 2023Biology AH020/01: Breadth in biology AS Level Question Paper & Mark Scheme (Merged)AS Level Question Paper & Mark Scheme (Merged)
OCR 2023 Biology A H020/02: Depth in biology AS Level Question Paper & Mark Scheme (Merged)
OCR 2023 GCE ENGLISH LITERATURE H472/01: DRAMA AND POETRY PRE-1900 A LEVEL QUESTION PAPER & MARK SCHEME (MERGED
OCR 2023 COMPUTER SCIENCE H046/01: COMPUTING PRINCIPLES AS LEVEL QUESTION PAPER & MARK SCHEME (MERGED