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
Exam (elaborations)

WGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON) QUESTION EXAM WITH RATIONALES

Rating
-
Sold
-
Pages
29
Grade
A+
Uploaded on
15-06-2026
Written in
2025/2026

WGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON) QUESTION EXAM WITH RATIONALES

Institution
WGU E010 FOUNDATIONS OF PROGRAMMING
Course
WGU E010 FOUNDATIONS OF PROGRAMMING

Content preview

WGU E010 FOUNDATIONS OF
PROGRAMMING (PYTHON) QUESTION
EXAM WITH RATIONALES
1. What is Python?
A) Low-level programming language
B) High-level programming language
C) Assembly language
D) Machine language
Answer: B
Rationale: Python is a high-level, interpreted programming language that
emphasizes code readability and simplicity. It's not low-level (A), assembly (C), or
machine language (D), which are closer to hardware.


2. Which of the following is the CORRECT way to print output in Python 3?
A) print "Hello"
B) echo "Hello"
C) print("Hello")
D) System.out.println("Hello")
Answer: C
Rationale: In Python 3, print() requires parentheses: print("Hello"). Option A is
Python 2 syntax, B is bash, and D is Java syntax.


3. What data type is the value: 42?
A) String
B) Float
C) Integer
D) Boolean
Answer: C
Rationale: 42 is an integer (int) - a whole number without decimal points. String
would be "42", float would be 42.0, and boolean would be True/False.

,4. Which of the following is a VALID variable name in Python?
A) 2myVariable
B) my_variable
C) my-variable
D) var$iable
Answer: B
Rationale: my_variable is valid: starts with letter, contains only
letters/numbers/underscores. Option A starts with number (invalid), C has hyphen
(invalid), D has $ (invalid).


5. What is the output of: print(type(3.14))?
A) int
B) str
C) float
D) double
Answer: C
Rationale: 3.14 is a float (floating-point number) in Python. Python doesn't have a
separate "double" type - floats are double-precision by default.


6. What data type is: True?
A) Integer
B) String
C) Boolean
D) Float
Answer: C
Rationale: True is a Boolean value (bool), one of two possible values: True or
False. Not an integer (A), string (B), or float (D).


7. Which operator is used for exponentiation in Python?
A) ^
B) **
C) pow()
D) ^^

, Answer: B
Rationale: ** is the exponentiation operator: 2**3 = 8. ^ is bitwise XOR, pow() is
a function (not operator), ^^ is invalid.


8. What is the result of: 10 // 3?
A) 3.33
B) 3
C) 3.0
D) 1
Answer: B
Rationale: // is floor division (integer division): 10//3 = 3 (discards decimal). /
would give 3.33, % would give remainder 1.


9. What is the result of: 10 % 3?
A) 3
B) 1
C) 3.33
D) 0
Answer: B
Rationale: % is the modulo operator (remainder): 10÷3 = 3 remainder 1, so 10%3
= 1.


10. Which of the following creates a string?
A) 42
B) True
C) "Hello"
D) 3.14
Answer: C
Rationale: "Hello" with quotes creates a string (str). 42 is int, True is bool, 3.14 is
float.

Written for

Institution
WGU E010 FOUNDATIONS OF PROGRAMMING
Course
WGU E010 FOUNDATIONS OF PROGRAMMING

Document information

Uploaded on
June 15, 2026
Number of pages
29
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$24.29
Get access to the full document:

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


Also available in package deal

Get to know the seller

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.
Drlima Chamberlain College Nursing
Follow You need to be logged in order to follow users or courses
Sold
31
Member since
1 year
Number of followers
0
Documents
1522
Last sold
6 days ago
Drlima

Hi! ,I'mDrlima , a certified TeachMe2 Totur with over 5 helping University and college students succeed. I am a Verified Nursing Tutor specializing in Ihuman Case Studies, Advanced pharmacology (NR565), HESI, TEAS 7, Pediatrics and More, creating HIGH QUALITY,EXAM FOCUSED STUDY GUIDES. Every document is crafted to be clear, accurate, and easy understanding saving you study time and improving your grades. Whatever you are preparing for Hesi A2, NCLEX or University coursework ,my notes are trusted by hundreds of students like you. ✅ Backed by toturing experience. ✅ Organized by topic and exam need. ✅ Instant access and affordable pricing. Let's help you pass smarter ,not harder. Browse my store now !

Read more Read less
1.3

3 reviews

5
0
4
0
3
0
2
1
1
2

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