Python-Midterm

Python-Midterm

46 Qs

quiz-placeholder

Similar activities

Safety Exam

Safety Exam

12th Grade - University

46 Qs

Test Prep: The Earth-Sun-Moon System

Test Prep: The Earth-Sun-Moon System

6th - 8th Grade

46 Qs

Earth, Moon and Celestial Cycles Test

Earth, Moon and Celestial Cycles Test

KG - University

41 Qs

Unit 3 & 5 Preassessment

Unit 3 & 5 Preassessment

KG - University

43 Qs

SBK 2023

SBK 2023

KG - University

41 Qs

REPASO  UND 4  EL DERECHO Y LA EMPRESA

REPASO UND 4 EL DERECHO Y LA EMPRESA

Professional Development

48 Qs

CN 12 CK2

CN 12 CK2

KG - University

51 Qs

Python-Midterm

Python-Midterm

Assessment

Quiz

others

Practice Problem

Hard

Created by

Chun-Jung Lin

FREE Resource

AI

Enhance your content in a minute

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

46 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 10 pts

What is true about compilation? (Select two answers)

Both you and the end user must have the compiler to run your code
It tends to be slower than interpretation
The code is converted directly into machine code executable by the processor
It tends to be faster than interpretation

2.

MULTIPLE SELECT QUESTION

30 sec • 10 pts

Select the true statements. (Select two answers)

Python is free, open-source, and multiplatform
Python 3 is backwards compatible with Python 2
Python is a good choice for low-level programming, e.g., when you want to implement an effective driver
Python is a good choice for creating and executing tests for applications

3.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the expected behavior of the following program? print("Hello!")

The program will output ("Hello!") to the screen
The program will output Hello! to the screen
The program will output "Hello!" to the screen
The program will generate an error message on the screen

4.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the expected behavior of the following program? prin("Goodbye!")

The program will generate an error message on the screen
The program will output Goodbye! to the screen
The program will output "Goodbye!" to the screen
The program will output ("Goodbye!") to the screen

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

The \n digraph forces the print() function to:

break the output line
stop its execution
duplicate the character next to the digraph
output exactly two characters: \ and n

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

The value twenty point twelve times ten raised to the power of eight should be written as:

20E12.8
20.12E8.0
20.12*10^8
20.12E8

7.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

The ** operator:

performs floating-point multiplication
performs exponentiation
performs duplicated multiplication
does not exist

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?