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)

CMN 152V - Introduction to Python / Python Basics Study Guide Comprehensive Resource To Help You Ace Exams Includes Frequently Tested Questions With ELABORATED 100% Correct COMPLETE SOLUTIONS Guaranteed Pass First Attempt!! Current Upda

Rating
-
Sold
-
Pages
86
Grade
A+
Uploaded on
16-05-2026
Written in
2025/2026

CMN 152V - Introduction to Python / Python Basics Study Guide Comprehensive Resource To Help You Ace Exams Includes Frequently Tested Questions With ELABORATED 100% Correct COMPLETE SOLUTIONS Guaranteed Pass First Attempt!! Current Update!! Instant Download Pdf 1. How do you write pi in Python? Correct Answer: 2. How do you write e in Python? Correct Answer: math.e 3. How do you gain access to a module’s functionality in Python? Correct Answer: import it Example: import math 4. If you do not use print(), what output will you normally see when running code? Correct Answer: the last output in the block 5. Which function is used to display output in Python? Correct Answer: print() 6. Write an example of assigning a value to a variable. Correct Answer: x = 6 7. Can an underscore (_) be used at the beginning of a variable name? Correct Answer: yes 8. Is _x a valid variable name in Python? Correct Answer: yes 9. Can some names not be used as variables in Python? Correct Answer: yes 10. Give an example of a name that should not be used as a variable. Correct Answer: math 11. Which function is used to determine the type of a value? Correct Answer: type() 12. What data type is the value 1? Correct Answer: integer int 13. What data type is the value 1.0? Correct Answer: float 14. What data type is produced by 3 + 5.0? Correct Answer: float 15. What is a value enclosed in quotation marks (' ') called? Correct Answer: string str 16. What is the Boolean data type called in Python? Correct Answer: bool 17. What is the result of not False? Correct Answer: True 18. What is the result of not not False? Correct Answer: False 19. Which function is used to find the length of a string? Correct Answer: len() 20. How would you print the length of a string? Correct Answer: print(len())

Show more Read less
Institution
CMN 152V
Course
CMN 152V

Content preview

CMN 152V - Introduction to Python / Python Basics

Study Guide Comprehensive Resource To Help You Ace
2026-2027 Exams Includes Frequently Tested Questions
With ELABORATED 100% Correct COMPLETE SOLUTIONS

Guaranteed Pass First Attempt!! Current Update!!

Instant Download Pdf



1. How do you write pi in Python?
Correct Answer: math.pi

2. How do you write e in Python?
Correct Answer: math.e

3. How do you gain access to a module’s functionality in Python?
Correct Answer: import it
Example: import math

4. If you do not use print(), what output will you normally see when running
code?
Correct Answer: the last output in the block

5. Which function is used to display output in Python?
Correct Answer: print()

6. Write an example of assigning a value to a variable.
Correct Answer: x = 6

7. Can an underscore (_) be used at the beginning of a variable name?
Correct Answer: yes

,8. Is _x a valid variable name in Python?
Correct Answer: yes

9. Can some names not be used as variables in Python?
Correct Answer: yes

10. Give an example of a name that should not be used as a variable.
Correct Answer: math

11. Which function is used to determine the type of a value?
Correct Answer: type()

12. What data type is the value 1?
Correct Answer: integer
int

13. What data type is the value 1.0?
Correct Answer: float

14. What data type is produced by 3 + 5.0?
Correct Answer: float

15. What is a value enclosed in quotation marks (' ') called?
Correct Answer: string
str

16. What is the Boolean data type called in Python?
Correct Answer: bool

17. What is the result of not False?

, Correct Answer: True

18. What is the result of not not False?
Correct Answer: False

19. Which function is used to find the length of a string?
Correct Answer: len()

20. How would you print the length of a string?
Correct Answer: print(len())

21. What can you use if a string contains quotation marks?
Correct Answer: ''' '''

22. Which keyword is used to check whether something exists inside
another value?
Correct Answer: in

23. What is the output of:
print('H' in 'Hello')
Correct Answer: True
24. What does format() do when used with curly brackets {} in a string?
Correct Answer: it replaces the curly brackets with whatever variable is
inside format()

25. What is the term used for replacing values inside a string with format()?
Correct Answer: string interpolation

26. What is the output of the following code?

name = 'deb'

, print('Hello {}'.format(name))

Correct Answer: Hello deb

27. What is the output of:

print('Hello' + ' ' + 'World')

Correct Answer: Hello World

28. What is the output of:

print('comma ' * 3 + 'chameleon')

Correct Answer:
comma comma comma chameleon

29. Which operator is used to test if two values are equal?
Correct Answer: ==

30. Which operator is used to test if two values are not equal?
Correct Answer: !=

31. What type of collection is created using square brackets [ ]?
Correct Answer: a list

32. How do you retrieve an item from a list?
Correct Answer:
print(highways[1])

33. What number do list indexes start at in Python?
Correct Answer: 0

Written for

Institution
CMN 152V
Course
CMN 152V

Document information

Uploaded on
May 16, 2026
Number of pages
86
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$15.99
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

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.
NURSINGDICTIONARY Harvard University
Follow You need to be logged in order to follow users or courses
Sold
269
Member since
2 year
Number of followers
87
Documents
2990
Last sold
1 week ago
NURSING ENCYCLOPEDIA

As a Career Tutor, I understand the pressure of managing demanding coursework, exams, and practical requirements across multiple disciplines. These professionally organized revision materials are designed to support students in nursing, healthcare administration, business, information systems, Engineering, health, IT, or trade courses management programs by simplifying complex concepts and reinforcing high-yield academic content. The materials are developed to help students: Understand core theories and practical applications across Multiple Disciplines Review exam relevant content aligned with undergraduate and graduate curriculam To Strengthen critical thinking, analytical reasoning, and decision-making skills Save time with clear, structured summaries instead of overwhelming textbooks Prepare efficiently for tests, assignments, case studies, and professional exams Each resource is created with academic standards in mind, integrating real world examples, industry terminology, and evidence based concepts commonly required in professional programs. Whether you are studying nursing fundamentals, healthcare management, information systems, project management, business strategy, Engineering these materials provide focused, reliable support for academic success. These revision guides are ideal for: Nursing and allied health students Healthcare administration and public health students Business, MBA, and management students Information technology and information systems students, engineering, business, IT, or trade courses If you are looking for clear, student-friendly, exam-focused revision materials that support multiple career pathways, these resources are designed to help you study smarter, perform better, and stay confident throughout your academic journey. WISH YOU SUCCESS!!

Read more Read less
4.2

34 reviews

5
18
4
7
3
7
2
1
1
1

Recently viewed by you

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