ENGR102 Chapter 1 Flashcards - (Python & Computer Basics)

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/79

flashcard set

Earn XP

Description and Tags

A set of fill-in-the-blank flashcards based on the lecture notes (50 total).

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

80 Terms

1
New cards

A script is a program whose instructions are executed by another program called an __.

interpreter

2
New cards

Interpreted execution is slower because it requires multiple __ instructions to execute one script instruction.

interpreter instructions

3
New cards

Guido van Rossum began creating a scripting language called __.

Python

4
New cards

Python was derived from an existing language called __.

ABC

5
New cards

The name Python came from the TV show __.

Monty Python's Flying Circus

6
New cards

Python 1.0 was released in __.

1994

7
New cards

Python 2.0 introduced automatic memory management (garbage collection) and features from __.

Haskell

8
New cards

Python 2 officially reached 'end-of-life' in __.

2020

9
New cards

Python 3.0 was released in __.

2008

10
New cards

Python 3.x versions have become widely used as new projects adopted the version; the statement is __.

True

11
New cards

A January 2023 survey found Python (16.36%) is the most popular language, about __%.

16.36%

12
New cards

Python was first implemented in __.

1994

13
New cards

The statement 'Python is a high-level language that excels at creating exceptionally fast- executing programs' is __.

False

14
New cards

The claim that Python code is more difficult to read than code in most other programming languages is __.

True

15
New cards

Python is an __ language with a large community.

open-source

16
New cards

The Python interactive interpreter displays a prompt of __.

>

17
New cards

The names wage, hours, weeks, and salary are __.

variables

18
New cards

A new variable is created by performing an assignment using the __ symbol.

=

19
New cards

The function that displays values in Python is __.

print()

20
New cards

Comments in Python start with the __ symbol.

#

21
New cards

IDE stands for __.

Integrated Development Environment

22
New cards

Common IDE features include __ highlighting.

syntax

23
New cards

To use the random number module, you write __.

import random

24
New cards

random.randrange(10) returns an integer between 0 and __ (exclusive).

10

25
New cards

random.randint(min, max) returns a random integer between min and max __.

inclusive

26
New cards

Programmers can set a specific sequence of random numbers using random __.

seed

27
New cards

Moore's Law predicts IC capacity doubles roughly every __ months.

18

28
New cards

The first single-IC processor named the __ was produced by Intel in 1971.

4004

29
New cards

By 2012, a single IC had several __ transistors.

billion

30
New cards

RAM is __, losing its contents when powered off.

volatile

31
New cards

SSDs are non-volatile storage; HDDs use spinning magnetic disks. SSD storage is __.

non-volatile

32
New cards

A byte is 8 __.

bits

33
New cards

BIOS stands for __.

Basic Input/Output System

34
New cards

A computer is basically a __ interacting with memory.

processor

35
New cards

When powered on, the processor typically starts executing at memory location __.

0

36
New cards

A processor may contain a small amount of RAM on its own chip called __.

cache

37
New cards

A processor's speed is measured by its __.

clock

38
New cards

The images show transistors were integrated onto a single chip called an __.

integrated circuit

39
New cards

The first single-IC processor 4004 had about __ transistors.

2300

40
New cards

Moore's Law predicts doubling has varied from about __ months.

18

41
New cards

Machine instructions are stored as __.

0s and 1s

42
New cards

An __ translates high-level language instructions into machine instructions.

assembler

43
New cards

Originally, the term computer referred to a person who performed computations by __.

hand

44
New cards

CPUs stands for __.

Central Processing Unit(s)

45
New cards

A computer's RAM and storage distinctions include RAM being volatile and storage like SSDs being __.

non-volatile

46
New cards

The prefix 'micro-' in microprocessor means __.

small

47
New cards

An IDE typically includes a built-in __ for user input and program output.

console

48
New cards

CLI stands for __.

Command-line interface

49
New cards

The command 'ls -a' contains a __ argument after the program name.

command-line

50
New cards

The random module’s function random() returns a random floating-point number in the range __.

0 (inclusive) to 1 (exclusive)

51
New cards

Python's syntax highlighting helps identify errors by showing different code elements in __ colors.

different

52
New cards

A line starting with '#' is considered a __ in Python.

comment

53
New cards

The math module in Python provides functions for various operations like __, sin, cos, and log.

sqrt

54
New cards

The symbol '*' is used in Python for __.

multiplication

55
New cards

The Python print() function is used to display __ or expressions.

values

56
New cards

An interactive Python session is started by running the __ interpreter.

Python

57
New cards

A statement in Python is a program __.

instruction

58
New cards

In Python, a variable is created by an __ using the '=' symbol.

assignment

59
New cards

The modulus operator is represented by the symbol __.

%

60
New cards

The floor division operator in Python is represented by '//' and rounds down to the __ integer.

closest smaller

61
New cards

The standard arithmetic operators include +, -, *, /, //, and __.

%

62
New cards

random.randrange(a, b) returns an integer in the range __.

a to b-1

63
New cards

The legacy term for a program that translates high-level language into machine code is a __.

compiler

64
New cards

The term 'software' distinguishes programs from the __ on which they run.

hardware

65
New cards

A Python file containing code is typically named with the extension __.

.py

66
New cards

The 'print' statement in Python 2.x was replaced by the __ function in Python 3.x.

print()

67
New cards

The process of invoking a function is called a __ in programming.

function call

68
New cards

The symbol 'def' in Python is used to define a __.

function

69
New cards

In Python, a string literal is enclosed in __ quotes or double quotes.

single

70
New cards

The 'import' statement is used to access a __ from another module.

module

71
New cards

The 'seed' function in the random module sets the sequence of __ numbers.

pseudo-random

72
New cards

A 'bit' can have the value of 0 or __.

1

73
New cards

The 'OS' in computing stands for __ System.

Operating

74
New cards

The primary purpose of the BIOS is to initialize hardware and boot the __.

computer

75
New cards

A keyboard and mouse are examples of __ devices.

input/output

76
New cards

A 'prompt' like '>>>' indicates the interpreter is ready for __ input.

user

77
New cards

The 'range' of a Python expression can be extended using the '__' function for iteration.

range

78
New cards

The 'print' function can display multiple items separated by __.

commas

79
New cards

A 'variable' is a named reference to a value stored by the __.

interpreter

80
New cards

In programming, 'assignment' stores a new value in a __.

variable