Search Header Logo
Python

Python

Assessment

Presentation

Computers

University

Hard

Created by

Norita Ahmad

Used 13+ times

FREE Resource

1 Slide • 6 Questions

1

Python

Ch 1

media

2

Multiple Choice

What is the function of the secondary memory in a computer?

1

Execute all of the computation and logic of the program

2

Retrieve web pages over the Internet

3

Store information for the long term, even beyond a power cycle

4

Take input from the user

3

Multiple Choice

What is a program?

1

A sequence of Phyton statements

2

An interpreter that translates code

3

A group of codes

4

A low-level conceptual pattern

4

Multiple Choice

What is the difference between a compiler and an interpreter?

1

A compiler translates one statement at a time into a machine code.

2

A compiler translates the entire program into machine code at once.

3

A compiler compiles the given statements into machine code.

4

There is no difference between them.

5

Multiple Choice

Which of the following contains "machine code"?

1

The Python interpreter

2

The keyboard

3

Python source file

4

A word processing document

6

Multiple Choice

Where in the computer is a variable such as "x" stored after the following Python line finishes?

x = 123

1

CPU

2

Main Memory

3

Secondary Memory

4

Input Devices

7

Multiple Choice

What will the following program print out:

x = 43

x = x + 1

print(x)

1

43

2

44

3

x+1

4

Error message

Python

Ch 1

media

Show answer

Auto Play

Slide 1 / 7

SLIDE