
G1Q1
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
HASAN YIGIT
Used 3+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
__________ is the built-in function to know the type of a variable or function.
id()
type()
data_type()
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
__________ keyword is used for creating a function in Python.
define
fun
def
function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best solution to repeated code? Select the correct answer.
All options are wrong.
Wrapping the code into one function.
Leave the code as is.
Split code into multiple functions.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following Python function:
def dbl_plus(x):
return 2*x + 1
What is the purpose of the function dbl_plus(x)?
Doubles the input and subtracts 1
Multiplies the input by 2
Doubles the input and adds 1
Adds 1 to the input
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the code snippet:
val = -5
if val < 0:
result = -val
else:
result = val
print(result)
What will be printed as the output?
5
-5
0
10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the code snippet for i in [30, 40, 50]: print(i), what is being printed?
Fahrenheit to Celsius conversion for each value
Values along with their square roots
Values along with their increments
Values as they are in the list
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Based on the provided code for the variable height: Suppose the variable height is given the value of 75. What will be printed?
if height > 100:
print("space")
elif height > 50:
print("mesosphere")
elif height > 20:
print("stratosphere")
else:
print("troposphere")
mesosphere
space
stratosphere
troposphere
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
20 questions
DBMS-QUIZ
Quiz
•
Professional Development
20 questions
PC Troubleshooting
Quiz
•
Professional Development
20 questions
U.T. 7: Configuración de Routers y Encaminamiento
Quiz
•
Professional Development
20 questions
MS OFFICE QUIZ 01
Quiz
•
Professional Development
15 questions
JS
Quiz
•
Professional Development
20 questions
Round-1 Technical Aptitude
Quiz
•
11th Grade - Professi...
20 questions
Prueba de Diagnostico
Quiz
•
Professional Development
16 questions
CPU scheduling
Quiz
•
Professional Development
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 Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
