SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Basic Python Programming
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. sets the file's current position
>
int()
file.seek()
~
2. Empties the file - watch out if you care about the file.
file.write(stuff)
len()
*truncate
insert()
3. Adds a new line character
>>
write
//=
n
4. add AND assignment operator
+=
#
print
*=
5. prints its parameter to the console
#
print()
for
file.readline()
6. ,multi-line comment hard-code,Fix (data or parameters) in a program in such a way that they cannot easily be altered by the user.
or
*
()
7. The keyword beginning a header that will create a loop.
%s
for
%=
//=
8. Argument variable
argv
len()
argument variable
not in
9. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
try
else
<=
<
10. Symbol to multiply things
*
*=
**=
write
11. returns the length of a string (number of characters)
-
<=
def
len()
12. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
*=
&
Variables
insert()
13. Command to print to the screen
int
**=
for
print
14. subtract AND assignment operator
-=
#
not in
truncate
15. Reads just one line of a text file.
*readline
elif (Else if)
>=
/
16. divide AND assignment operator
/=
readline
%s
del
17. floor division
*read
**=
>>
a//b
18. Evaluates to false if the variables on either side of the operator point to the same object and true otherwise. x is not y - here is not results in 1 if id(x) is not equal to id(y).
is not
str()
del
19. This keyword begins a header for a body that repeats until the condition is no longer true.
-
<<
write
while
20. Symbol to multiply things
*
argv
file.readline()
.py
21. Function to open or read a file
a%b
open()
if
>=
22. A statement that ends the current iteration of a loop but continues looping.
insert()
continue
write
<<
23. A built-in function that converts its argument to a string.
^
*=
/
str
24. The extension for Python scripts
:
#
.py
and
25. writes stuff to the file
~
print
file.write(stuff)
len()
26. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
a**b
print
format string
argv
27. square root
int()
math.sqrt(a)
file.truncate()
str()
28. This keyword in the body of a conditional - gives an alternative execution.
abs(a)
pass
insert()
else
29. floor division AND assignment operator
int
math.sqrt(a)
//=
format string
30. Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand. a >> 2 will give 15 which is 0000 1111
input()
>>
*write(stuff)
-=
31. Prints a string to the screen which is a signed decimal.
del
insert()
#
%d
32. Function to close a file - it will not be able to be used again unless the file is opened.
a**b
*
close
read
33. Function to open or read a file
open()
>
except
<=
34. Command to print to the screen
/=
str()
print
if
35. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
read
and
len()
truncate
36. absolute value
-=
abs(a)
break
-
37. This keyword begins the simplest form of a conditional statement.
<
if
%
/=
38. returns the length of a string (number of characters)
len()
*read
else
=
39. deletes an item from a list
and
del
open()
//=
40. modulus AND assignment operator
&
float
%=
try
41. modulus AND assignment operator
=
==
if
%=
42. Adds something to a variable
str
|
%s
=
43. Greater than or equal symbol.
>=
assignment
argv
int()
44. subtract AND assignment operator
**=
truncate
-=
*truncate
45. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
~
<=
read
format string
46. absolute value
break
a%b
int()
abs(a)
47. The keyword beginning a header that will create a new function.
a%b
def
*readline
file.write(stuff)
48. reads just one line of a text file & keeps track of where in the file you're at
file.readline()
break
file.truncate()
argument variable
49. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
*read
round()
append()
Variables
50. Create a variable.
#
else
write
=
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests