
Mashdemy 6-10 AI/ML

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Mashdemy Tutor
Used 10+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following correctly defines a for loop in Python?
for i to 10:
for i in range(10):
for (i = 0; i < 10; i++):
for i = 1 to 10:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
python
for i in range(3):
print(i)
1 2 3
0 1 2 3
0 1 2
1 2 3 4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement correctly defines a while loop?
while i in range(10):
while (i = 10):
while i < 10:
while (i < 10) {
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop control statement is used to skip the rest of the code inside a loop for the current iteration only?
break
continue
pass
exit
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Creating Functions Using The def Keyword
How do you define a function in Python?
function my_function():
def my_function():
create my_function():
func my_function():
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which library do you need to import to use NumPy arrays?
import numpy
import pandas
import array
import math
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
number = 4
if number % 2 == 0:
print("The number is even.")
else:
print("The number is odd.")
The number is odd.
The number is even.
error
nothing
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
conditional and iterative statements

Quiz
•
11th Grade
10 questions
DS 3

Quiz
•
12th Grade
8 questions
انواع البيانات(date)

Quiz
•
10th Grade
10 questions
AI and Python: Ch.1 Revision

Quiz
•
9th Grade
8 questions
Numpy Revision Test

Quiz
•
10th Grade
15 questions
Hangman Game - Programming Questions

Quiz
•
7th - 11th Grade
9 questions
advanced storage techniques ( arrays , DataFrame)

Quiz
•
9th - 10th Grade
10 questions
Dadakan quiz 1

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade