P1 Exam

P1 Exam

University

•

33 Qs

quiz-placeholder

Similar activities

CS 1400 Final Review

CS 1400 Final Review

University

•

31 Qs

CS 1: Big Idea #3 Practice

CS 1: Big Idea #3 Practice

9th Grade - University

•

32 Qs

IT security - 3

IT security - 3

9th Grade - University

•

30 Qs

Quiz#8: Elements of Film Form

Quiz#8: Elements of Film Form

University

•

31 Qs

Chapter13: Assessment

Chapter13: Assessment

7th Grade - Professional Development

•

28 Qs

Comptia Port Numbers

Comptia Port Numbers

University

•

34 Qs

INI011_2023

INI011_2023

University

•

30 Qs

Lesson 5 - Software Quality Assurance

Lesson 5 - Software Quality Assurance

University

•

30 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