Search Header Logo

PSP Week3

Authored by 过蒋 过蒋

Computers

University

Used 8+ times

PSP Week3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are the essential steps in the software engineering process? planet in the Solar System?

Writing code, debugging, testing
Understanding the problem, coming up with a solution, writing the program, and testing
Gathering requirements, coding, and documentation

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How can source code be converted into machine code for execution?

It's directly executed by the machine.

compilation or interpretation

Trace table

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a valid variable name in Python?

123a
a123b
a_b

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How can you read user input in Python?

input("Enter your name: ")
read("Enter your name: ")
get("Enter your name: ")

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How can you display information to the user in Python?

show("Hello, world!")
output("Hello, world!")
print("Hello, world!")

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which programming construct is used to make decisions in Python?

Iteration
Selection
Looping

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the len function return for a string?

The number of spaces in the string
The length of the string
The number of characters in the string

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?