

Tough PCEP Questions
Presentation
•
Computers
•
12th Grade
•
Hard
Dr. Moriarty
FREE Resource
6 Slides • 17 Questions
1
Tough PCEP Questions
By Dr. Moriarty
2
What is CPython?
It's the default implementation of Python!
This means that unless you change it on purpose, this is the version you'll use. WE use CPython in here, and the PCEP tests on it :)
Be careful not to confuse this with Cython, which is a version of Python that converts your code to the C programming language!
3
Multiple Choice
Which of the following is true about CPython?
It must be installed separately from Python
It is only used for web programming
It is the version of Python most people use by default
It is a paid version of Python
4
Multiple Choice
What is CPython?
A library that adds C++ features to Python
The default implementation of Python
A Python module used for data science
A special editor for writing Python code
5
Multiple Choice
What does Cython do that CPython does not?
Converts Python code into the C programming language
Runs Python code faster without changes
Provides a built-in IDE for Python
Acts as the official test version of Python
6
What is source code?
A program written in a high-level programming language!
When you write code in this class using Python, C++, Javascript, or others, you're creating source code.
Source code is a bit different than a source file: source files are the actual .py or .cpp files you can see in your folders, while source code is the code itself...
7
Multiple Choice
What is source code?
The binary instructions the CPU executes
A program written in a high-level programming language
A type of computer hardware component
A compressed version of program files
8
Multiple Choice
Which of the following is an example of source code?
print("Hello, world!") written in Python
A .exe file running on Windows
The binary machine code stored in RAM
A .zip file containing programs
9
Multiple Choice
What is the difference between source code and a source file?
They are the same thing, just different words
Source code is the code itself, and a source file stores that code
A source file is compiled code, while source code is not
Source code only exists in Python, but source files exist in all languages
10
Multiple Choice
Which of the following would typically be considered a source file?
11
Integrated Development Environments (IDEs) like Thonny and Visual Studio put a bunch of coding applications together that used to be separate a long time ago.
In Thonny, the editor is where you type, and the console is at the bottom where the code prints out.
Debuggers are tools that let you go through code step by step and help you find mistakes. You can activate it from the toolbar in Thonny.
What are debuggers, consoles, and editors?
12
Multiple Choice
In Thonny, where do you type your code?
Debugger
Editor
Console
Toolbar
13
Multiple Choice
What is the role of the console in an IDE like Thonny?
It stores project files
It displays the output of the code you run
It highlights syntax errors in your code
It is where you write and edit code
14
Multiple Choice
Which statement best describes an Integrated Development Environment (IDE)?
A single-purpose tool for editing text files
A combination of tools like an editor, console, and debugger in one program
A separate program that only runs compiled files
A type of operating system for coding
15
What version of Python are we on?
We are currently using Python 3
It is NOT backwards compatible with Python 2 or other earlier verions. This means that if you have something written in Python 2, putting Python 3 code into it might break it.
16
Multiple Choice
Which version of Python are we currently using in this class?
Python 1
Python 2
Python 3
Python 4
17
Multiple Choice
Which of the following statements is true about Python 3?
It is fully backwards compatible with Python 2
It is the version most commonly used today
It can only run on Windows systems
It is used only for web development
18
Multiple Choice
What does “not backwards compatible” mean in the context of Python 3?
Python 3 cannot run Python 2 code without changes
Python 3 only runs slower than Python 2
Python 3 cannot be installed on older computers
Python 3 programs are always less stable than Python 2
19
Multiple Choice
What might happen if you try to run Python 3 code inside a Python 2 interpreter?
It will always run without errors
It may break or produce errors
It will automatically convert to Python 2
It will delete the source file
20
Compiling vs Interpreting
Compiling is when you translate the ENTIRE code into machine language (0s and 1s a computer can run). This creates an executable you can send to other people. The other user doesn't need a compiler to run it!
People can't see your original code when they just have the executable, so one benefit of compiled languages is that it hides your source code from people wanting to copy it.
Interpreting is when you translate one line at a time. It's a bit slower, but more flexible as it works on just about every system (you don't need a separate executable for different operating systems). To run interpreted code, the system running it needs an interpreter too.
Python is an interpreted language, C++ is a compiled language.
21
Multiple Choice
What happens during compiling?
Each line of code is run immediately
The entire program is translated into machine code before running
The code is checked only for spelling mistakes
The program automatically hides all errors
22
Multiple Choice
Which of the following is TRUE about interpreted languages?
They run one line at a time using an interpreter
They always run faster than compiled languages
They do not need an interpreter on the system
They automatically produce executable files
23
Multiple Choice
One benefit of compiled languages is:
They are easier to edit once compiled
The compiled executable hides the original source code
They can only run on Python
They always run slower than interpreted languages
Tough PCEP Questions
By Dr. Moriarty
Show answer
Auto Play
Slide 1 / 23
SLIDE
Similar Resources on Wayground
17 questions
Business Cycle
Presentation
•
12th Grade
20 questions
Tragedy
Presentation
•
12th Grade
20 questions
Skeletal System
Presentation
•
12th Grade
20 questions
Nutrition in Plants
Presentation
•
12th Grade
17 questions
Jaringan komputer
Presentation
•
12th Grade - University
18 questions
Protecting Your Data in the Online World
Presentation
•
12th Grade
16 questions
Vocabulary Cooking verbs
Presentation
•
12th Grade
15 questions
Computers and Devices
Presentation
•
KG - University
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
22 questions
Regular Preterite -AR-ER-IR-
Quiz
•
12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade