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. Greater than or equal symbol.
#
>=
is not
print
2. 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
>>
read
a**b
len()
3. Argument variable
*write(stuff)
argv
or
else
4. Prints a string to the screen which is converted using repr()
/=
%r
n
+=
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
and
>>
while
6. A logical operator which requires two expressions to both be true.
len()
else
str
and
7. multiply AND assignment operator
//=
str
*=
/
8. This keyword in the body of a conditional allows chained conditionals.
close
elif (Else if)
<
&
9. Prints a string to the screen which is a signed decimal.
>>
%d
%r
file.truncate()
10. A keyword that does nothing but fill space to indicate code which will be written later.
pass
and
==
if
11. This keyword begins the simplest form of a conditional statement.
=
floating point number
if
a**b
12. 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
=
not in
^
print
13. asks the user for a response and returns that response
>>
#
input()
14. Empties the file - watch out if you care about the file.
%s
()
*truncate
file.seek()
15. divide AND assignment operator
*read
:
=
/=
16. exponent AND assignment operator
def
>>
*readline
**=
17. Symbol to divide by the number to the right of the symbol
append()
/
break
<=
18. End header line.
floating point number
:
==
19. Greater than symbol
del
math.sqrt(a)
>
<=
20. An operator that removes a value from a list.
truncate
int()
del
read
21. A statement that displays a value on the screen.
%d
print
|
a//b
22. returns the length of a string (number of characters)
%
+
break
len()
23. Argument variable
=
format string
argv
or
24. Reads the contents of the file you can assign the result to a variable.
-
*read
while
print
25. turns an object into a string
continue
int()
str()
not
26. empties the file
%r
#
open()
file.truncate()
27. A built-in function that converts integers and strings to floating-point numbers.
**=
<<
class
float
28. Function to open or read a file
truncate
==
*=
open()
29. returns the length of a string (number of characters)
%=
len()
not
insert()
30. Symbol to add things together
+
else
|
~
31. deletes an item from a list
:
+
del
class
32. The keyword beginning a header that will create a loop.
for
try
file.readline()
len()
33. A statement that assigns a value to a variable.
assignment
str()
>>
not
34. absolute value
<<
**=
abs(a)
pass
35. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
|
readline
<=
return
36. Adds something to a variable
=
Variables
%s
int()
37. 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
*truncate
^
is
/
38. Less than or equal to symbol
<=
()
truncate
truncate
39. exponent AND assignment operator
def
**=
<<
read
40. inserts an item inside a list at a certain index
close
insert()
**=
del
41. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
~
%s
n
while
42. Symbol to multiply things
+=
*
int
else
43. This keyword in the body of a conditional - gives an alternative execution.
=
insert()
else
close
44. writes stuff to the file
-=
file.write(stuff)
=
float
45. unction to read one line of a file
//=
del
input()
readline
46. modulo
print()
>
a%b
str()
47. prints its parameter to the console
try
print()
insert()
%d
48. inserts an item inside a list at a certain index
file.readline()
-
**=
insert()
49. Less than symbol
+
<
+=
50. This keyword begins a header for a body that repeats until the condition is no longer true.
while
open()
>=
round()