• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 15 pages
Exam (elaborations)

Python Institute Entry Level

Document preview thumbnail
Preview 2 out of 15 pages

What is CPython? - answer-It's the default, reference implementation of Python, written in the C language What do you call a file containing a program written in a high-level programming language? - answer-A source file What is the expected behavior of the following program? print("Hello!") - answer-The program will output: Hello! to the screen What is machine code? - answer-A low-level programming language consisting of binary digits/bits that the computer reads and understands What are the four fundamental elements that make a language? - answer-An alphabet, a lexis, phonetics, and semantics What is true about compilation? - answer-- It tends to be faster than interpretation - The code is converted directly into machine code executable What is the best definition of a script? - answer-It's a text file that contains instructions which make up a Python program What is the expected behavior of the following program? prin("Goodbye!") - answer-The program will generate an error message on the screen Select the true statements: - Python it free, open-source, and multiplatform - Python 3 is backwards compatible with Python 2 - Python is a good choice for creating and executing tests for applications - Python is a good choice for low-level programming, e.g., when you want to implement an effective driver - answer-- Python it free, open-source, and multiplatform - Python is a good choice for creating and executing tests for applications What do you call a command-line interpreter which lets you interact with your OS and execute Python commands and scripts? - answer-A console Python is an example of: - answer-High-level programming language A complete set of known commands is called: - answer-an instruction list What is a source code? - answer-A program written in a high-level programming language What do you call a computer program which directly executes instructions written in a programming language? - answer-An interpreter What Python version is covered in this course? - answer-Python 3 What is CPython (Quiz)? - answer-The default implementation of the Python programming language What is IDLE? - answer-An acronym that stands for Integrated Development and Learning Environment for Python What do you call a tool that lets you launch your code step-by-step and inspect it at each moment of execution? - answer-A debugger How did Python, the programming language, get its name? - answer-Guido van Rossum named it to honor Monty Python's Flying Circus, a BBC comedy series popular in the 1970s Which one of the following is an example of a Python file extension? - answer-py The escape character owes its name to the fact that it: - answer-changes the meaning of the character next to it The meaning of the positional parameter is determined by its: - answer-position The most important difference between integer and floating-point numbers lies in the fact that: - answer-they are stored differently in the computer memory The 0x prefix means that the number after it is denoted as - answer-a hexadecimal The // operator - answer-performs integer division The result of the following addition: 123 + 0.0 - answer-is equal to 123.0 Only one of the following statements is true: - addition precedes multiplication - multiplication precedes addition - neither statement can be evaluated - answer-multiplication precedes addition Right-sided binding means that the following expression: 1 ** 2 ** 3 will be evaluated: - answer-from right to left A keyword is a word that (select two): - is the most important word in the whole program - cannot be used a as a variable name - cannot be used as a function name - answer-- cannot be used a as a variable name - cannot be used as a function name A value returned by the input() function is: - answer-a string Which of the following variable names are illegal? (select two) - TRUE - true - and - True - answer-- True - and What is the output of the following snippet? y = 2 + 3 * 5. print(Y) - answer-the snippet will cause an execution error Left-sided binding determines that the result of the following expression 1 // 2 * 3 is equal to: - answer-0 What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively? x = input() y = input() print(x+y) - answer-24 What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively? x = int(input()) y = int(input()) print(x + y) - answer-6 The 0o prefix means that the number after it is denoted as: - answer-octal The n digraph forces the print() function to: - answer-break the output line The result of the following division: 1 /1 - answer-is equal to 1.0 The print() function can output values of: - answer-any number of arguments (including zero) What is the output of the following snippet? x = 1 y = 2 z = x x = y y = z print(x,y) - answer-2 1 The ** operator: - answer-performs exponentiation What is the output of the following snippet if the user enters two lines containing 3 and 6 respectively? x = input() y = int(input()) print(x * y) - answer-333333 The value twenty point twelve times ten raised to the power of eight should be written as: - answer-20.12E8 Which of the following statements are true? (select two) - The right argument of the % operator cannot be zero - The ** operator uses right-sided binding - Addition precedes multiplication - The result of the / operator is always an integer value - answer-- The right argument of the % operator cannot be zero - The ** operator uses right-sided binding What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively? x = int(input()) y = int(input()) x = x // y y = y // y print(y) - answer-the code will cause a runtime error

Content preview

PYTHON INSTITUTE ENTRY LEVEL
What is CPython? - answer-It's the default, reference implementation of Python, written in the C
language

What do you call a file containing a program written in a high-level programming language? - answer-A
source file

What is the expected behavior of the following program?
print("Hello!") - answer-The program will output: Hello!
to the screen

What is machine code? - answer-A low-level programming language consisting of binary digits/bits that
the computer reads and understands

What are the four fundamental elements that make a language? - answer-An alphabet, a lexis,
phonetics, and semantics

What is true about compilation? - answer-- It tends to be faster than interpretation
- The code is converted directly into machine code executable

What is the best definition of a script? - answer-It's a text file that contains instructions which make up a
Python program

What is the expected behavior of the following program?
prin("Goodbye!") - answer-The program will generate an error message on the screen

Select the true statements:
- Python it free, open-source, and multiplatform
- Python 3 is backwards compatible with Python 2
- Python is a good choice for creating and executing tests for applications
- Python is a good choice for low-level programming, e.g., when you want to implement an effective
driver - answer-- Python it free, open-source, and multiplatform
- Python is a good choice for creating and executing tests for applications

What do you call a command-line interpreter which lets you interact with your OS and execute Python
commands and scripts? - answer-A console

Python is an example of: - answer-High-level programming language

A complete set of known commands is called: - answer-an instruction list

What is a source code? - answer-A program written in a high-level programming language

What do you call a computer program which directly executes instructions written in a programming
language? - answer-An interpreter

, What Python version is covered in this course? - answer-Python 3

What is CPython (Quiz)? - answer-The default implementation of the Python programming language

What is IDLE? - answer-An acronym that stands for Integrated Development and Learning Environment
for Python

What do you call a tool that lets you launch your code step-by-step and inspect it at each moment of
execution? - answer-A debugger

How did Python, the programming language, get its name? - answer-Guido van Rossum named it to
honor Monty Python's Flying Circus, a BBC comedy series popular in the 1970s

Which one of the following is an example of a Python file extension? - answer-py

The escape character owes its name to the fact that it: - answer-changes the meaning of the character
next to it

The meaning of the positional parameter is determined by its: - answer-position

The most important difference between integer and floating-point numbers lies in the fact that: -
answer-they are stored differently in the computer memory

The 0x prefix means that the number after it is denoted as - answer-a hexadecimal

The // operator - answer-performs integer division

The result of the following addition:
123 + 0.0 - answer-is equal to 123.0

Only one of the following statements is true:
- addition precedes multiplication
- multiplication precedes addition
- neither statement can be evaluated - answer-multiplication precedes addition

Right-sided binding means that the following expression:
1 ** 2 ** 3
will be evaluated: - answer-from right to left

A keyword is a word that (select two):
- is the most important word in the whole program
- cannot be used a as a variable name
- cannot be used as a function name - answer-- cannot be used a as a variable name
- cannot be used as a function name

A value returned by the input() function is: - answer-a string

Which of the following variable names are illegal? (select two)

Document information

Uploaded on
August 14, 2024
Number of pages
15
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
TOPDOCTOR
5.0
(1)
Sold
10
Followers
5
Items
3387
Last sold
1 year ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions