python ch 1
A Python line comment begins with _____
#
A Python paragraph comment uses the style ___
''' comments '''
One gigabyte is approximately ________ bytes
1 billion
One byte has ________ bits.
8
python was created by __________
Guido van Rossum
__ is a device to connect a computer to a local area network (LAN).
NIC
Which of the following statements is true?
Python 3 is a newer version, but it is not backward compatible with Python 2.
why do computers use zeros and ones?
because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.
_________ translates high-level language program into machine language program
compiler
____ is the brain of a computer.
cpu
Which of the following are storage devices?
floppy and hard disk, flash stick, CD ROM
The speed of the CPU may be measured in _________
gig and megahertz
________ is the physical aspect of the computer that can be seen.
hardware
In Python, a syntax error is detected by the ________ at _______
interpreter/at runtime
______ is an object-oriented programming language.
java, c++, python, C#
A ___________ error does not cause the program to abort, but produces incorrect results.
logic
Computer can execute the code in ____________
machine language
A computer?s _______ is volatile; that is, any information stored in it is lost when the system?s power is turned off
memory
__________ is a program that runs on a computer to manage and control a computer's activities.
operating system
Which of the following code is correct?
print("Programming is fun") print("Python is fun")
______ is interpreted.
python
o start Python from the command prompt, use the command ______
python
To run python script file named t.py, use the command ______
python t.py
__________ are instructions to the computer
software, programs
Python syntax is case-sensitive
true
To draw a circle with radius 50, use _________
turtle.circle(50)
To move the turtle to a point at (4, 5), use __
turtle.goto(4, 5)
To lift the pen, use _____
turtle.penup()
To show the current location and direction of the turtle object, use ________
turtle.showTurtle()
_________ is an operating system.
windows xp