Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 119 pages
Exam (elaborations)

Computing in Python I Fundamentals and Procedural Programming Certificate Practice Exam

Document preview thumbnail
Preview 4 out of 119 pages

This exam assesses foundational programming skills including variables, control flow, loops, functions, data types, file handling, and debugging. Candidates solve algorithmic problems, write structured code, and demonstrate understanding of computational thinking and program execution flow.

Content preview

Computing in Python I Fundamentals and
Procedural Programming Certificate Practice
Exam
**Question 1.** Which of the following best describes the role of abstraction in computer
science?

A) Storing data efficiently in memory

B) Hiding implementation details to focus on higher‑level concepts

C) Executing machine code directly on the CPU

D) Converting high‑level code to binary executables

Answer: B

Explanation: Abstraction allows programmers to work with simplified models, hiding lower‑level
details so they can concentrate on solving problems at a higher level.



**Question 2.** In the basic computer model, which component is primarily responsible for
performing arithmetic and logical operations?

A) Memory (RAM)

B) Input device

C) Central Processing Unit (CPU)

D) Hard disk drive

Answer: C

Explanation: The CPU contains the arithmetic‑logic unit (ALU) that carries out calculations and
logical decisions.



**Question 3.** Which statement correctly differentiates a compiled language from an
interpreted language?

A) Compiled languages execute line‑by‑line, while interpreted languages translate the whole
program before execution.

B) Compiled languages are converted to machine code before running; interpreted languages
are executed directly by an interpreter at runtime.

, Computing in Python I Fundamentals and
Procedural Programming Certificate Practice
Exam
C) Interpreted languages require a separate linking step; compiled languages do not.

D) Compiled languages cannot be used on multiple platforms, whereas interpreted languages
can.

Answer: B

Explanation: Compilation produces a standalone executable (machine code). Interpretation runs
source code via an interpreter each time.



**Question 4.** Which of the following file extensions indicates a Python script that can be
executed directly by the Python interpreter?

A) .txt

B) .pyc

C) .py

D) .exe

Answer: C

Explanation: The .py extension denotes a plain‑text Python source file.



**Question 5.** What is the purpose of the `#` character in a Python source file?

A) It indicates the start of a function definition.

B) It begins a multi‑line comment.

C) It marks the end of a statement.

D) It starts a single‑line comment.

Answer: D

Explanation: In Python, `#` begins a comment that extends to the end of the line.



**Question 6.** Which syntax correctly creates a multi‑line comment (docstring) in Python?

, Computing in Python I Fundamentals and
Procedural Programming Certificate Practice
Exam
A) `/* comment */`

B) `''' This is a comment '''`

C) `# This is a comment`

D) `-- comment --`

Answer: B

Explanation: Triple single quotes (or triple double quotes) create a string literal that can serve as
a multi‑line comment or docstring.



**Question 7.** What will be printed by the following code?

```python

print("Result:", 5 + 3 * 2)

```

A) Result: 16

B) Result: 11

C) Result: 13

D) Result: 10

Answer: B

Explanation: Multiplication has higher precedence than addition, so 3*2 = 6; then 5+6 = 11.



**Question 8.** Which function is used to receive input from the user in a Python console
program?

A) `read()`

B) `input()`

C) `scan()`

, Computing in Python I Fundamentals and
Procedural Programming Certificate Practice
Exam
D) `gets()`

Answer: B

Explanation: `input()` prompts the user and returns the entered text as a string.



**Question 9.** If a user enters the number `42` at an `input()` prompt, which of the following
statements correctly converts the value to an integer?

A) `num = int(input)`

B) `num = int(input())`

C) `num = input(int)`

D) `num = int(str)`

Answer: B

Explanation: `input()` returns a string; wrapping it with `int()` converts the string `"42"` to the
integer 42.



**Question 10.** Which of the following is a consequence of Python’s reliance on indentation?

A) Curly braces are required to define code blocks.

B) Whitespace is ignored by the interpreter.

C) Misaligned indentation causes a `IndentationError`.

D) Indentation determines variable scope only for global variables.

Answer: C

Explanation: Python uses indentation to delimit blocks; inconsistent indentation raises an
`IndentationError`.



**Question 11.** What is the type of the value returned by the expression `type(3.14)`?

A) `<class 'float'>`

Document information

Uploaded on
December 20, 2025
Number of pages
119
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
£66.64

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.
teamdiginova1
4.0
(2)
Sold
22
Followers
1
Items
29173
Last sold
1 month ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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