Search Header Logo

PCEP Section 1E: Perform Input/Output console operations

Authored by Misti McDaniel

Computers

12th Grade

Used 8+ times

PCEP Section 1E: Perform Input/Output console operations
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

30 sec • 1 pt

Which function is used in Python to display output to the console?

input()

print()

output()

display()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `input()` function in Python?

To print text to the screen

To receive data from the user via the console

To convert strings to integers

To end a program

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword parameter in the `print()` function allows you to specify what is printed between multiple arguments?

end

sep

between

join

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? ```python print("Hello", "World", sep="-") ```

Hello World

Hello-World

Hello,World

HelloWorld

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements will print "Hello" and "World" on the same line with no space between them?

print("Hello", "World")

print("Hello", "World", sep="")

print("Hello", "World", end="")

print("Hello" + "World")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of executing the following code? ```python x = input("Enter a number: ") print(type(x)) ```

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function would you use to convert a string "3.14" to a floating-point number in Python?

int("3.14")

float("3.14")

str("3.14")

input("3.14")

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?