
PART1_M
Quiz
•
Architecture
•
1st - 5th Grade
•
Practice Problem
•
Medium
Aristia Villa
Used 1+ times
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following Python arithmetic expression: (3*(1+2)**2 - (2**2)*3)
What is the result?
3
13
15
69
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Northwind Traders has hired you as an intern on the coding team that creates e-commerce 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?
3.
FILL IN THE BLANK QUESTION
1 min • 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?
4.
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?
Place the notes after the last line of code separated by a blank line.
Place the notes inside of parentheses on any line.
Place the notes after the # sign on any line.
Place the notes before the first line of code separated by a blank line.
5.
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?
from math import sqrt as squareRoot
from math.sqrt as squareRoot
import math.sqrt as squareRoot
import sqrt from math as squareRoot
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This question requires that you evaluate the underlined text to determine if it is correct. You write the following code:
The out.txt file does not exist. You run the code. The code will execute without error. Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes the statement correct.
No change is needed.
The code runs, but generates a logic error.
The code will generate a runtime error.
The code will generate a syntax error.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are writing a Python program to automate inventory. Your first task is to read a file of inventory transactions. The file contains sales from the previous day, including the item id, price, and quantity. The following shows a sample of data from the file:
10, 200, 5
20, 100, 1
The code must meet the following requirements: . Each line of the file must be read and printed . If a blank line is encountered, it must be ignored . When all lines have been read, the file must be closed You create the following code. Line numbers are included for reference only.
Which code should you write for line O5 and line 06?
05 if line != ‘‘:
06 if line !=””:
05 if line != ‘\n’:
06 if line != None:
05 if line != ‘\n’:
06 if line != “”:
05 if line != ‘‘:
06 if line != “\n”:
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
Already have an account?
Similar Resources on Wayground
40 questions
aqidah akhlak kelas 4
Quiz
•
4th Grade - University
40 questions
Vocational Aptitude Third Grade
Quiz
•
3rd Grade
35 questions
Sujeito, tipos de sujeito e predicado
Quiz
•
2nd Grade - University
41 questions
BACCALAURÉAT
Quiz
•
1st - 2nd Grade
41 questions
TIẾNG ANH
Quiz
•
2nd Grade
42 questions
CCL2P1
Quiz
•
1st - 5th Grade
37 questions
Comunicación y representación técnica
Quiz
•
1st - 3rd Grade
35 questions
PTS TEMA 6
Quiz
•
4th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Architecture
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
10 questions
Area
Quiz
•
3rd Grade
10 questions
Context Clues
Quiz
•
5th Grade
