PYTHON CERT REVIEWER
Quiz
•
Computers
•
University
•
Easy
Eimee Marzan
Used 30+ times
FREE Resource
Enhance your content in a minute
75 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are writing a Python program. The program collects customer data and stores it in a database.
The program handles a wide variety of data.
You need to ensure that the program handles the data correctly so that it can be stored in the database correctly.
Match the data type to the code segment. To answer, drag the appropriate data type from the column on the left to its code segment on the right. Each data type may be used once, more than once, or not at all.
Select and Place:
bool,float,int,str,int
bool,int,float,str,str
int,bool,str,float,str
int,bool,float,str,bool
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are creating a Python program that shows a congratulation message to employees on their service anniversary.
You need to calculate the number of years of service and print a congratulatory message.
You have written the following code. Line numbers are included for reference only.
You need to complete the program.
Which code should you use at line 03?
print("Congratulations on" + (int(end)-int(start)) + "years of service!")
print("Congratulations on" + str(int(end)-int(start)) + "years of service!")
print("Congratulations on" + int(end - start) + "years of service!")
print("Congratulations on" + str(end - start)) + "years of service!")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following Python arithmetic expression: (3*(1+2)**2 - (2**2)*3)
What is the result?
A. 3
B. 13
C. 15
D. 69
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Northwind Traders has hired you as an intern on the coding team that creates ecommerce applications. You must write a script that asks the user for a value. The value must be used as a whole number in a calculation, even if the user enters a decimal value. You need to write the code to meet the requirements. Which code segment should you use?
A. totalltems = int(input(”How many items would you like?”))
B. totalltems = str(input(”How many items would you like?”))
C. totalltems = float(input(”How many items would you like?”))
D. totalltems = input(”How many items would you like?”)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are creating a Python program that shows a congratulation message to employees on their service anniversary. You need to calculate the number of years of service and print a congratulatory message. You have written the following code. Line numbers are included for reference only.
01 start = input(”How old were you on your start date?)
02 end = input(’How old are you today?”)
03 You need to complete the program. Which code should you use at line 03?
A. print(“congratulations on “ + int(end - start) + “ years of service!”)
B. print(“congratulations on “ + (int(end) - int(start)) + “ years of service!”)
C. print(“congratulations on “ + str(end - start) + “ years of service!”)
D. print(”congratulations on “ + str(int(end) - int(start)) + “ years of service!”)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You develop a Python application for your company. You want to add notes to your code so other team members will understand it
What should you do?
A. Place the notes after the last line of code separated by a blank line.
B. Place the notes inside of parentheses on any line.
C. Place the notes after the # sign on any line.
D. Place the notes before the first line of code separated by a blank line.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are writing an application that uses the sqrt function. The program must reference the function using the name squareRoot. You need to import the function. Which code segment should you use?
A. from math import sqrt as squareRoot
B. from math.sqrt as squareRoot
C. import math.sqrt as squareRoot
D. import sqrt from math as squareRoot
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
77 questions
ICT for exam
Quiz
•
University
80 questions
CompTIA A+ Core 2 Practice Test A
Quiz
•
University
70 questions
GEL 211 - Quiz 1
Quiz
•
University
70 questions
Kuis 1 Komputer Grafis
Quiz
•
University
71 questions
Multimedia Systems Quiz
Quiz
•
University
70 questions
Compsys
Quiz
•
University
80 questions
Soal UAS Ganjil PBO Dasar 2024
Quiz
•
University
80 questions
KELAS 2-LATIHAN SOAL SAT INFORMATIKA SM2
Quiz
•
2nd Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
