Python level 1 Autumn 2024

Python level 1 Autumn 2024

7th Grade

15 Qs

quiz-placeholder

Similar activities

Browser dan CMS

Browser dan CMS

7th - 9th Grade

20 Qs

Administrasi Sistem jaringan KD1

Administrasi Sistem jaringan KD1

1st - 10th Grade

20 Qs

Year 7 - Bohunt E-Mail

Year 7 - Bohunt E-Mail

7th Grade

10 Qs

Computer Hardware - CPU & GPU

Computer Hardware - CPU & GPU

7th Grade - University

16 Qs

6th to 19th Century

6th to 19th Century

7th Grade

11 Qs

EVALUACION FINAL 2022 GRADO SEPTIMO IESJC

EVALUACION FINAL 2022 GRADO SEPTIMO IESJC

7th Grade

20 Qs

التدريب الرابع - إنشاء المجلدات

التدريب الرابع - إنشاء المجلدات

KG - 7th Grade

10 Qs

Youtubers Charlie.C-J

Youtubers Charlie.C-J

3rd - 9th Grade

10 Qs

Python level 1 Autumn 2024

Python level 1 Autumn 2024

Assessment

Quiz

Computers

7th Grade

Practice Problem

Medium

Created by

Nagmun Onu

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to take input from a user in Python?

name = input("Enter your name: ")

name = get_input("Enter your name: ")

name = read("Enter your name: ")

name = scan("Enter your name: ")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct if-else statement in Python?

if x > 10: print("x is greater than 10") else: print("x is 10 or less")

if x > 10 then print("x is greater than 10") else print("x is 10 or less")

If x > 10: print("x is greater than 10") else print("x is 10 or less")

if x > 10: print("x is greater than 10") elseif: print("x is 10 or less")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in Python?

int x = 5

x = 5

declare x = 5

var x = 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of string concatenation in Python?

name = "John" + "Doe"

name = "John" & "Doe"

name = "John" * "Doe"

name = "John" - "Doe"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to use an f-string in Python?

name = "Onu"

print(f"Hello, {name}!"

name = "Onu"

print(f'Hello, {name}!')

name = "Onu"

print(f"Hello, name!")

name = "Onu"

fprint("Hello, name!")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert a string to an integer in Python?

int("123")

str(123)

float("123")

char("123")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code:

num1 = 15

num2 = 5

print(num1/num2)

15

3

20

10

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers