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 subtract things from each other
-
//=
int()
truncate
2. modulo
a%b
a//b
and
for
3. floor division
a//b
readline
<=
a%b
4. Function to write something to a file
write
*write(stuff)
//=
append()
5. 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
continue
insert()
*truncate
>>
6. End header line.
:
for
<=
|
7. absolute value
except
insert()
abs(a)
read
8. The keyword beginning a header that will create a loop.
str()
/
for
assignment
9. Adds a new line character
n
.py
a//b
str()
10. floor division AND assignment operator
>
//=
argument variable
try
11. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
%r
&
*
%
12. Prints a string to the screen which will be Unicode.
=
*truncate
truncate
%s
13. Greater than or equal symbol.
%=
%=
>=
abs(a)
14. modulus AND assignment operator
%=
int()
assignment
=
15. Symbol to add things together
+
int()
def
is not
16. The extension for Python scripts
n
=
.py
file.truncate()
17. Command to print to the screen
for
%=
elif (Else if)
print
18. unction to read one line of a file
.py
in
and
readline
19. subtract AND assignment operator
except
-=
and
abs(a)
20. Symbol to multiply things
%r
*truncate
insert()
*
21. Argument variable
argv
int()
>=
insert()
22. exponentiation
n
%=
#
a**b
23. inserts an item inside a list at a certain index
insert()
continue
-
write
24. A built-in function that converts integers and strings to floating-point numbers.
float
<=
/
str()
25. Where the parameters go. A necessary punctuation after any function even if it's empty.
()
argv
format string
not
26. prints its parameter to the console
<=
print()
%r
=
27. divide AND assignment operator
/=
*=
=
=
28. A statement that assigns a value to a variable.
len()
print()
assignment
insert()
29. Symbol used to create comments
=
#
argv
.py
30. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
|
file.readline()
n
argv
31. The keyword beginning a header that will create a loop.
=
not in
str()
for
32. Writes stuff to the file.
*write(stuff)
a%b
len()
round()
33. Turns a line into a comment instead of executable code.
%r
for
=
#
34. This keyword begins a header for a body that repeats until the condition is no longer true.
while
()
.py
=
35. End header line.
%=
:
*readline
in
36. An operator to check whether two variables refer to the same object.
*
is
=
%r
37. Reads just one line of a text file.
file.seek()
*readline
open()
print()
38. single line comment
#
-
Variables
in
39. add AND assignment operator
abs(a)
+=
*=
a%b
40. This statement causes an exception.
=
input()
raise
and
41. The extension for Python scripts
a%b
//=
readline
.py
42. Symbol to multiply things
*
%d
for
file.truncate()
43. Prints a string to the screen which will be Unicode.
%s
print()
-=
input()
44. 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
insert()
Variables
^
&
45. Symbol to divide by the number to the right of the symbol
^
*write(stuff)
<<
/
46. modulus AND assignment operator
=
%=
in
<<
47. This statement exits a function. The remaining lines of the function are not executed.
*=
return
n
()
48. inserts an item inside a list at a certain index
|
insert()
format string
:
49. Greater than or equal symbol.
/
>=
open()
def
50. A logical operator which negates an expression so that it returns a value of True if the expression is false.
+=
not
int()
/