Mashdemy 6-10 AI/ML

Mashdemy 6-10 AI/ML

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Python массив

Python массив

9th - 12th Grade

10 Qs

Dadakan quiz 1

Dadakan quiz 1

12th Grade

10 Qs

conditional and iterative statements

conditional and iterative statements

11th Grade

10 Qs

Data Frame1

Data Frame1

12th Grade

10 Qs

DS 3

DS 3

12th Grade

10 Qs

A3 IIIB - Básicas de EDA

A3 IIIB - Básicas de EDA

11th Grade - University

10 Qs

انواع البيانات(date)

انواع البيانات(date)

10th Grade

8 Qs

advanced storage techniques ( arrays , DataFrame)

advanced storage techniques ( arrays , DataFrame)

9th - 10th Grade

9 Qs

Mashdemy 6-10 AI/ML

Mashdemy 6-10 AI/ML

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?