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. Where the parameters go. A necessary punctuation after any function even if it's empty.
()
close
if
write
2. absolute value
abs(a)
%d
def
<<
3. Symbol to add things together
=
read
abs(a)
+
4. turns an object into a string
format string
+
str()
in
5. Argument variable
**=
Variables
a%b
argv
6. 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
file.write(stuff)
>>
*=
:
7. Prints a string to the screen which will be Unicode.
open()
Variables
%s
:
8. prints its parameter to the console
**=
print()
()
.py
9. The keyword beginning a header that will create a loop.
len()
for
int()
*read
10. Symbol used to create comments
#
len()
and
math.sqrt(a)
11. modulus AND assignment operator
()
del
%=
+
12. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
*
file.seek()
^
Variables
13. deletes an item from a list
del
=
*=
=
14. multiply AND assignment operator
a%b
for
*=
else
15. Where the parameters go. A necessary punctuation after any function even if it's empty.
~
float
()
**=
16. Less than or equal to symbol
>
<=
>=
>>
17. Prints a string to the screen which will be Unicode.
%s
~
int
-
18. modulo
a%b
append()
write
#
19. adds an item to a list
open()
<
append()
|
20. add AND assignment operator
+
>=
+=
or
21. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
#
&
+=
str()
22. Argument variable
argv
a%b
>>
~
23. A keyword that does nothing but fill space to indicate code which will be written later.
pass
read
|
//=
24. A built-in function that converts integers and strings to floating-point numbers.
*
float
readline
round()
25. returns the length of a string (number of characters)
return
append()
argv
len()
26. This keyword in the body of a conditional - gives an alternative execution.
round()
else
*read
abs(a)
27. Less than or equal to symbol
+
<=
Variables
%r
28. divide AND assignment operator
/=
if
<<
>=
29. assignment operator
str()
=
close
#
30. Command to print to the screen
print
pass
:
&
31. A statement that displays a value on the screen.
print
:
=
not in
32. Modulus operator. It's the remainder after division
n
try
%
read
33. adds an item to a list
continue
*read
append()
insert()
34. Less than symbol
<
|
>=
~
35. 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
^
=
abs(a)
==
36. divide AND assignment operator
float
/=
>>
()
37. A logical operator which compares two operands and produces True if they are equal and False otherwise
print()
len()
str()
==
38. Prints a string to the screen which is converted using repr()
%r
open()
else
else
39. Modulus operator. It's the remainder after division
^
len()
%
for
40. Symbol used to create comments
#
Variables
class
%r
41. rounds a number to the number of decimal points you choose
&
del
Variables
round()
42. square root
.py
math.sqrt(a)
else
is
43. Adds something to a variable
write
.py
=
==
44. add AND assignment operator
+=
-
len()
>=
45. Create a variable.
len()
+
~
=
46. Prints a string to the screen which is converted using repr()
floating point number
%r
&
/
47. Function to read the contents of a file
>=
read
not
except
48. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
Variables
//=
file.write(stuff)
#
49. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
~
while
()
else
50. Prints a string to the screen which is a signed decimal.
int()
%d
read
=