PCEP · topic practice

Computer Programming and Python Fundamentals practice questions

Practise RAM questions covering identification, installation, speeds, dual-channel, and troubleshooting for the PCEP exam.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security
17 questionsDomain: Computer Programming and Python Fundamentals

What the exam tests

What to know about Computer Programming and Python Fundamentals

RAM tests your ability to identify, install, and troubleshoot memory types, speeds, and configurations for PCs.

Identifying DDR3 vs DDR4 vs DDR5 physical and electrical differences

Matching RAM speed (MHz) to motherboard and CPU support

Calculating total memory capacity from module size and slots

Troubleshooting common RAM errors like beep codes and blue screens

Why learners struggle

Why Computer Programming and Python Fundamentals questions are commonly missed

RAM questions are commonly missed because learners confuse physical form factors (DIMM vs SO-DIMM) and fail to distinguish between memory speed (MHz) and latency (CL).

  • ·DIMM vs SO-DIMM — desktop vs laptop form factor confusion
  • ·DDR3 vs DDR4 vs DDR5 — notch position and voltage differences
  • ·MHz vs CL — speed vs latency trade-offs in performance
  • ·Single-channel vs dual-channel — bandwidth impact misconception
  • ·ECC vs non-ECC — error correction support in servers vs desktops
  • ·32-bit vs 64-bit — maximum addressable RAM limit

Watch out for

Common Computer Programming and Python Fundamentals exam traps

  • Confusing DDR3 and DDR4 notch positions and voltage requirements
  • Assuming dual-channel requires identical size modules only
  • Mixing ECC and non-ECC RAM in a single system
  • Forgetting that 32-bit OS limits usable RAM to 4 GB

Practice set

Computer Programming and Python Fundamentals questions

17 questions · select your answer, then reveal the explanation

A developer writes a script that prompts the user for their age and stores it in a variable. Which code snippet correctly converts the input to an integer?

Which of the following is the correct way to define a function that takes no arguments and returns the value 42?

Question 3mediummultiple choice
Study the full Python automation breakdown →

A program uses a variable named 'list' that shadows the built-in list type. Later, the code tries to create a new list using list([1,2,3]) but gets a TypeError. What is the most likely cause?

Question 4mediummultiple choice
Study the full Python automation breakdown →

A programmer writes: x = 5; y = 2; result = x / y. What is the type of result?

Given the code: a = [1, 2, 3]; b = a; b.append(4). What is the value of a?

Which of the following statements about Python indentation is true?

Question 7mediummultiple choice
Study the full Python automation breakdown →

A developer needs to iterate over the indices of a list named 'items' and print each index and its corresponding value. Which loop construct is most appropriate?

What is the output of: print(2 ** 3 ** 2)?

Question 9mediummultiple choice
Study the full Python automation breakdown →

A student writes the code: x = 10; if x > 5: print("big"); else: print("small"). What is the output?

Which TWO of the following are valid Python variable names? (Choose two.)

Which THREE of the following are Python data types? (Choose three.)

Which TWO of the following code snippets will result in a SyntaxError? (Choose two.)

Which THREE of the following are valid ways to create a list with elements 1, 2, 3? (Choose three.)

A junior developer is working on a script that processes user data. The script reads a CSV file into a list of dictionaries. Each dictionary represents a user with keys 'name', 'age', and 'email'. The developer needs to filter out users under 18 and store their names in a list. The current code is:

users = [{'name': 'Alice', 'age': 17, 'email': 'alice@example.com'}, {'name': 'Bob', 'age': 22, 'email': 'bob@example.com'}]

minors = []

for user in users:
    if user['age'] < 18:

minors.append(user['name'])

print(minors)

The code works, but the senior developer says it is not idiomatic and suggests a more concise solution. Which of the following approaches is the best replacement?

Question 15mediummultiple choice
Study the full Python automation breakdown →

A system administrator is writing a Python script to monitor disk usage. The script uses the psutil library (not part of PCEP scope, but the scenario is generic). The administrator writes:

import psutil

disk = psutil.disk_usage('/')

print(disk.free)

But the script fails with an ImportError because psutil is not installed. The administrator decides to handle this gracefully: if the module is missing, the script should print a custom error message and exit without crashing. Which code snippet achieves this?

Question 16mediummultiple choice
Study the full Python automation breakdown →

A developer writes a Python script that calculates the average of a list of numbers. The script sometimes produces a ZeroDivisionError. Which of the following is the MOST appropriate way to handle this error to keep the script running?

A Python program is designed to process user input and store results in a dictionary. The code uses the statement: my_dict[user_key] = value. Under which condition will this statement raise a TypeError?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Computer Programming and Python Fundamentals sessions

Start a Computer Programming and Python Fundamentals only practice session

Every question in these sessions is drawn from the Computer Programming and Python Fundamentals domain — nothing else.

Related practice questions

Related PCEP topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the PCEP exam test about Computer Programming and Python Fundamentals?
RAM tests your ability to identify, install, and troubleshoot memory types, speeds, and configurations for PCs.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Computer Programming and Python Fundamentals questions in a focused session?
Yes — the session launcher on this page draws every question from the Computer Programming and Python Fundamentals domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other PCEP topics?
Use the topic links above to move to related areas, or go back to the PCEP question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the PCEP exam covers. They are not copied from any real exam or dump site.