P1 Exam

P1 Exam

University

33 Qs

quiz-placeholder

Similar activities

Scratch Review

Scratch Review

KG - University

28 Qs

HTML and CSS

HTML and CSS

University

30 Qs

Herramientas básicas del procesador de textos

Herramientas básicas del procesador de textos

1st Grade - University

28 Qs

Dessain WEB Dinamis MM A

Dessain WEB Dinamis MM A

University

33 Qs

GIỮA KỲ 2 -  TIN 8

GIỮA KỲ 2 - TIN 8

8th Grade - University

36 Qs

SYSTEM UNIT CHAP3 T/F (2)

SYSTEM UNIT CHAP3 T/F (2)

University

28 Qs

Application Software

Application Software

University

29 Qs

P1 Exam

P1 Exam

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

John Prado

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does an if statement do in Python?

Repeats a block of code multiple times.
Executes a block of code if a condition is true.
Defines a function.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a programming language?

A set of rules for writing programs
A type of computer hardware
A method for data storage
An operating system

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct syntax for an if-else statement in Python?

if (condition): { code } else { code }
if condition: code else: code
if condition: code elif condition: code

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following code? num = 10 if num > 5: print("Greater") else: print("Smaller")

Greater
Smaller
10
Error

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a high-level language?

C
Python
Assembly
Machine Code

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following statements is used to check multiple conditions in Python?

if-else
elif
while
for

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In a nested if statement, what happens if the outer condition is false?

The inner if statement is still checked
The inner if statement is ignored.
The code exits the program.
None of the above.

Access all questions and much more by creating a free account

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