CS1101 Python Final Exam practice

Quiz
•
Computers, English
•
University
•
Medium
Darlene M
Used 30+ times
FREE Resource
103 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Consider the following text from a Python interpreter.
>>> print(2 + 2)
4
What is the text ">>>" called?
a) a function
b) an operator
c) a prompt
d) a statement
e) a value
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Consider the following text from a Python interpreter.
>>> print(2 + 2)
4
What is the text "print" called?
a) a function
b) an operator
c) a prompt
d) a statement
e) a value
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is Python’s response to the command: type(123)
a) <class 'float'>
b) <class 'bool'>
c) SyntaxError: invalid syntax
d) <class 'int'>
e) <class 'str'>
4.
MATCH QUESTION
1 min • 5 pts
Match the following- part 1
debugging
The process of finding and removing any of the three kinds of programming errors.
interpreter
A programming language like Python that is designed to be easy for humans to read and write.
high-level language
An error in a program.
formal language
Any one of the languages that people have designed for specific purposes, such as representing mathematical ideas or computer programs; all programming languages are these kinds of languages.
bug
A program that reads another program and executes it.
5.
MATCH QUESTION
1 min • 5 pts
Match the following - Part 2
natural-language
An instruction that causes the Python interpreter to display a value on the screen.
parse
Any one of the languages that people speak that evolved naturally.
portability
A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language.
print statement
A property of a program that can run on more than one kind of computer.
low-level language
To examine a program and analyze the syntactic structure.
6.
MATCH QUESTION
1 min • 5 pts
Match the following - Part 3
token
A program stored in a file (usually one that will be interpreted).
syntax
One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.
script
The process of formulating a problem, finding a solution, and expressing the solution.
program
The structure of a program.
problem solving
A sequence of instructions that specifies to a computer actions and computations to be performed.
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which one of the following Python expressions has the value 64?
a) 8 ^ 2
b) 8 ** 2
c) 8 +- 2
d) 8 += 2
e) 8 -+ 2
Create a free account and access millions of resources
Similar Resources on Wayground
100 questions
Grammar Quiz #1

Quiz
•
KG - University
100 questions
M3 R5 Chapter 8

Quiz
•
12th Grade - University
100 questions
(ROOM 2) TEST QUIZIZ OPEN LREK ASLAB KOMPUTER 2024

Quiz
•
University
99 questions
Вопросы по Python

Quiz
•
University
105 questions
Tin học đại cương 6-7-8

Quiz
•
University
101 questions
CNE part 1

Quiz
•
University
99 questions
English Diagnostic Test

Quiz
•
10th Grade - University
100 questions
English Quiz Part 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University