Python_1121-Midterm

Python_1121-Midterm

46 Qs

quiz-placeholder

Similar activities

Python-Final

Python-Final

KG - University

46 Qs

Signals and Systems Quiz

Signals and Systems Quiz

University

50 Qs

Blank Quiz

Blank Quiz

KG

48 Qs

GS34_MVIT_ME_AIML_Exam

GS34_MVIT_ME_AIML_Exam

KG - University

50 Qs

Soal Olimpiade Akademik Sekolah Bidang Informatika

Soal Olimpiade Akademik Sekolah Bidang Informatika

KG - University

50 Qs

Aircraft Systems

Aircraft Systems

KG - University

50 Qs

SUMATIF TENGAH SEMESTER INFORMATIKA GANJIL 2024/2025 KELAS 7

SUMATIF TENGAH SEMESTER INFORMATIKA GANJIL 2024/2025 KELAS 7

7th Grade

50 Qs

Python_1121-Midterm

Python_1121-Midterm

Assessment

Quiz

Created by

Chun-Jung Lin

others

1 plays

Medium

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

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?