Fun quiz

Fun quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Impresa e siti web

Impresa e siti web

8th - 12th Grade

10 Qs

2021.10.15_ Đề kiểm tra tin học 12

2021.10.15_ Đề kiểm tra tin học 12

12th Grade

20 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

flowol week 3

flowol week 3

9th - 12th Grade

17 Qs

حاسب2 / اختبار الوحدة الثالثة

حاسب2 / اختبار الوحدة الثالثة

10th - 12th Grade

10 Qs

2.3.1 Graph Traversal & Path Finding Algorithms

2.3.1 Graph Traversal & Path Finding Algorithms

12th Grade - University

20 Qs

Virtual Private Server

Virtual Private Server

12th Grade

15 Qs

Computer Lab Rules

Computer Lab Rules

9th - 12th Grade

13 Qs

Fun quiz

Fun quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Hajrul Hajrul

Used 10+ 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

45 sec • 1 pt

What does the following code snippet do?

print(21 + 40)

Reads two numbers from the console

Adds two numbers and prints the result

Multiplies two numbers and prints the result

None of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the following code represent?

age = 25

Printing the age variable

Storing the value 25 in the age variable

Declaring the age as a constant

Initializing a boolean variable

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In Python, what statement do you use to output the number 42 to the screen?

print(42).

print 42;

print(42)

print 42

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the following code do?

marks = 75
if marks >= 60:
grade = 'A'
else:
grade = 'B'

Assigns 'A' to grade if marks are greater than or equal to 60

Assigns 'B' to grade if marks are greater than or equal to 60

Assigns 'A' to grade if marks are less than 60

Assigns 'B' to grade if marks are less than 60

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following code?

x is greater

y is greater

Both are equal

Error

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What does the following code snippet do?

Prints numbers 0 to 4 with spaces

Prints numbers 1 to 5 with spaces

Prints numbers 0 to 4 without spaces

Prints numbers 1 to 5 without spaces

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What happens if the initial condition of a while loop is false?

The loop executes once.

The loop runs indefinitely

The loop is skipped, and the code inside is not executed

The loop throws an error

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?