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. Symbol to multiply things
class
>=
*
del
2. Binary XOR Operator copies the bit if it is set in one operand but not both. (a ^ b) will give 49 which is 0011 0001
~
>=
&
^
3. assignment operator
*
in
del
=
4. Where the parameters go. A necessary punctuation after any function even if it's empty.
print()
del
a//b
()
5. Writes stuff to the file.
del
*write(stuff)
argument variable
&
6. An operator that removes a value from a list.
def
>=
del
%
7. floor division AND assignment operator
raise
//=
print()
+
8. Less than or equal to symbol
#
<=
int()
**=
9. A logical operator which requires two expressions to both be true.
abs(a)
and
=
*read
10. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
%s
write
round()
&
11. square root
<<
close
math.sqrt(a)
write
12. Symbol used to create comments
#
a**b
>>
+=
13. inserts an item inside a list at a certain index
str()
insert()
read
assignment
14. turns an object into a string
else
str()
str
len()
15. modulo
Variables
a%b
del
~
16. This keyword in the body of a conditional - gives an alternative execution.
except
else
or
def
17. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
~
*readline
math.sqrt(a)
&
18. This keyword begins a header for a body that repeats until the condition is no longer true.
while
open()
%r
del
19. The extension for Python scripts
>=
raise
.py
~
20. add AND assignment operator
+=
/=
n
file.truncate()
21. Prints a string to the screen which is a signed decimal.
a%b
*=
is not
%d
22. The keyword beginning a header that will create a loop.
%
or
for
assignment
23. Function to write something to a file
a**b
open()
write
+=
24. exponentiation
a**b
:
len()
//=
25. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
in
**=
argument variable
%d
26. Command to print to the screen
file.seek()
**=
()
print
27. Adds something to a variable
%
//=
=
float
28. Function to open or read a file
a//b
open()
<=
%=
29. Function to read the contents of a file
read
open()
format string
while
30. exponent AND assignment operator
len()
%d
^
**=
31. Symbol to multiply things
input()
+
a%b
*
32. A logical operator which negates an expression so that it returns a value of True if the expression is false.
not
file.readline()
argv
close
33. A logical operator which returns a value of True if either of the conditions is true.
or
&
|
-
34. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
~
insert()
if
-=
35. turns an object into a string
not
str()
def
#
36. modulus AND assignment operator
print()
:
%=
a%b
37. This variable holds the arguments you pass to your Python script when you run it. Then you unpack it in your script so you have variables you can work with.
print
len()
%r
argument variable
38. Symbol to divide by the number to the right of the symbol
/
<<
%
del
39. Command to print to the screen
*
print
&
&
40. Argument variable
argv
=
#
len()
41. divide AND assignment operator
or
=
-=
/=
42. End header line.
%=
open()
|
:
43. Modulus operator. It's the remainder after division
if
**=
a%b
%
44. Prints a string to the screen which is a signed decimal.
continue
*truncate
n
%d
45. Greater than or equal symbol.
close
>=
/=
int
46. multiply AND assignment operator
*=
and
try
=
47. The keyword beginning a header that will create a loop.
=
()
for
*truncate
48. subtract AND assignment operator
assignment
-=
argv
float
49. Argument variable
&
argv
while
*read
50. Prints a string to the screen which will be Unicode.
>
readline
%s
^