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. deletes an item from a list
round()
#
del
append()
2. This keyword begins the simplest form of a conditional statement.
*=
is not
if
a%b
3. Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand. a << 2 will give 240 which is 1111 0000
file.truncate()
<<
*readline
read
4. add AND assignment operator
readline
-=
+=
print
5. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
int()
~
try
|
6. Function to read the contents of a file
len()
%s
read
>>
7. Create a variable.
-=
file.readline()
=
*
8. multiply AND assignment operator
%r
=
#
*=
9. returns the length of a string (number of characters)
else
%=
def
len()
10. exponent AND assignment operator
floating point number
**=
>
is not
11. modulus AND assignment operator
%=
<
**=
print()
12. deletes an item from a list
del
*write(stuff)
n
a**b
13. divide AND assignment operator
close
/=
+
argv
14. A statement that ends the current iteration of a loop but continues looping.
==
continue
-=
/
15. Prints a string to the screen which is converted using repr()
*truncate
+
%r
16. turns an object into an integer
readline
int()
/
>=
17. exponentiation
|
a**b
str()
len()
18. Symbol to multiply things
argv
try
.py
*
19. An operator to check whether two variables refer to the same object.
is
<<
is not
round()
20. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
>
if
&
/
21. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
is
~
<
truncate
22. Adds something to a variable
=
readline
n
in
23. multiply AND assignment operator
*=
()
>>
readline
24. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
and
truncate
argument variable
append()
25. sets the file's current position
float
input()
#
file.seek()
26. A built-in function that converts integers and strings to floating-point numbers.
%d
float
*
**=
27. A logical operator which returns a value of True if either of the conditions is true.
%=
or
argv
truncate
28. Function to open or read a file
:
open()
argv
/
29. A statement that assigns a value to a variable.
<=
assignment
close
insert()
30. Function to read the contents of a file
read
input()
<=
~
31. add AND assignment operator
a%b
file.truncate()
+=
%
32. Function to empty the contents of a file - no recovery is possible
%
truncate
()
+=
33. Symbol used to create comments
if
print
#
/
34. inserts an item inside a list at a certain index
file.truncate()
n
print
insert()
35. Less than or equal to symbol
%
<=
int()
36. Greater than or equal symbol.
float
>=
file.seek()
del
37. Create a variable.
/=
=
format string
a//b
38. Adds something to a variable
=
insert()
int
()
39. modulo
a%b
and
else
int()
40. 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
a%b
+=
41. Writes stuff to the file.
*write(stuff)
read
>
+
42. Greater than or equal symbol.
a**b
is not
>=
>
43. Command to print to the screen
print
>=
str()
**=
44. Reads just one line of a text file.
print
return
for
*readline
45. Reads the contents of the file you can assign the result to a variable.
truncate
*read
*=
print()
46. turns an object into a string
str()
float
abs(a)
|
47. square root
for
:
math.sqrt(a)
str()
48. The keyword beginning a header that will create a loop.
*=
#
<=
for
49. modulus AND assignment operator
while
%=
readline
=
50. adds an item to a list
break
append()
int()
%=