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. Modulus operator. It's the remainder after division
and
%
a**b
<<
2. Function to close a file - it will not be able to be used again unless the file is opened.
a//b
close
open()
in
3. Create a variable.
argv
()
+
=
4. A logical operator which compares two operands and produces True if they are equal and False otherwise
a%b
==
try
n
5. floor division AND assignment operator
for
^
//=
*readline
6. A keyword that does nothing but fill space to indicate code which will be written later.
>>
pass
//=
+=
7. Greater than or equal symbol.
>=
+
//=
a//b
8. exponent AND assignment operator
**=
int()
^
try
9. Function to open or read a file
truncate
=
is
open()
10. Greater than or equal symbol.
and
>=
round()
**=
11. This keyword begins the simplest form of a conditional statement.
print
is not
if
a//b
12. Symbol used to create comments
>>
#
=
Variables
13. multiply AND assignment operator
*
*readline
*=
a//b
14. A statement that breaks out of a loop.
break
del
%=
>
15. asks the user for a response and returns that response
str
input()
argv
-
16. The keyword beginning a header that will create a loop.
=
%d
for
def
17. Function to read the contents of a file
%r
==
append()
read
18. A logical operator which compares two operands and produces True if they are equal and False otherwise
==
>=
=
int()
19. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
^
()
Variables
math.sqrt(a)
20. writes stuff to the file
insert()
file.write(stuff)
truncate
print()
21. Reads just one line of a text file.
%s
*readline
a%b
-=
22. prints its parameter to the console
input()
print()
~
append()
23. Writes stuff to the file.
round()
>
<<
*write(stuff)
24. assignment operator
|
a**b
=
()
25. This keyword in the body of a conditional - gives an alternative execution.
#
else
not
*
26. Symbol used to create comments
#
class
**=
=
27. exponentiation
def
a**b
del
open()
28. divide AND assignment operator
else
/=
-=
pass
29. End header line.
if
:
open()
~
30. Prints a string to the screen which will be Unicode.
a%b
%s
=
append()
31. A logical operator which returns a value of True if either of the conditions is true.
open()
or
a**b
in
32. deletes an item from a list
del
assignment
elif (Else if)
str
33. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
#
floating point number
|
<=
34. A statement that assigns a value to a variable.
abs(a)
assignment
str
%s
35. Function to write something to a file
%d
truncate
open()
write
36. This keyword begins the simplest form of a conditional statement.
#
int()
in
if
37. The keyword beginning a header that will create a new function.
def
and
<
#
38. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
|
>=
pass
a**b
39. square root
<=
%r
()
math.sqrt(a)
40. Less than or equal to symbol
readline
%s
<=
**=
41. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
round()
str()
Variables
#
42. A logical operator which requires two expressions to both be true.
in
str()
file.write(stuff)
and
43. returns the length of a string (number of characters)
()
len()
/=
a//b
44. An operator that removes a value from a list.
del
-=
<=
:
45. multiply AND assignment operator
=
.py
*=
in
46. Less than or equal to symbol
&
elif (Else if)
<=
del
47. turns an object into a string
truncate
str()
%s
//=
48. Prints a string to the screen which is a signed decimal.
a%b
truncate
<
%d
49. Prints a string to the screen which will be Unicode.
readline
<=
%s
math.sqrt(a)
50. prints its parameter to the console
print()
assignment
else
else