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. This statement causes an exception.
del
~
raise
if
2. Function to open or read a file
Variables
write
int()
open()
3. Reads the contents of the file you can assign the result to a variable.
*read
%s
def
%=
4. Where the parameters go. A necessary punctuation after any function even if it's empty.
open()
()
<<
float
5. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
%
|
del
%d
6. single line comment
round()
#
readline
open()
7. An operator that removes a value from a list.
~
file.seek()
del
else
8. exponentiation
del
/=
close
a**b
9. Create a variable.
=
>=
return
del
10. Function to write something to a file
else
write
assignment
>=
11. Modulus operator. It's the remainder after division
%
=
()
%s
12. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
*write(stuff)
is
Variables
len()
13. returns the length of a string (number of characters)
/
int
len()
file.readline()
14. Symbol to multiply things
while
or
*
input()
15. divide AND assignment operator
close
argv
/=
-
16. Symbol to multiply things
*
&
print
floating point number
17. Prints a string to the screen which is converted using repr()
continue
%r
del
~
18. Argument variable
&
+
argv
is not
19. Symbol to divide by the number to the right of the symbol
/
close
a%b
not
20. The keyword beginning a header that will create a loop.
continue
n
for
+
21. 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
try
+
<<
/=
22. Symbol to divide by the number to the right of the symbol
/
print()
readline
raise
23. turns an object into an integer
not in
int()
int
Variables
24. returns the length of a string (number of characters)
file.truncate()
-=
len()
%r
25. Function to empty the contents of a file - no recovery is possible
truncate
print
n
or
26. Prevents a runtime error from stopping the program.
=
<<
int
except
27. modulus AND assignment operator
|
**=
<=
%=
28. A statement that displays a value on the screen.
<=
floating point number
close
print
29. Prints a string to the screen which will be Unicode.
%s
=
file.seek()
30. turns an object into an integer
elif (Else if)
**=
int()
not in
31. Symbol to subtract things from each other
len()
-
%r
str()
32. Symbol to subtract things from each other
print()
math.sqrt(a)
def
-
33. A logical operator which negates an expression so that it returns a value of True if the expression is false.
write
not
/
pass
34. modulo
def
^
close
a%b
35. Less than or equal to symbol
<=
del
argv
/=
36. add AND assignment operator
while
for
+=
/
37. unction to read one line of a file
str()
readline
-
a//b
38. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
**=
*
in
a**b
39. subtract AND assignment operator
-=
file.readline()
int()
in
40. unction to read one line of a file
readline
continue
~
argv
41. deletes an item from a list
del
<=
%d
append()
42. modulo
%s
argument variable
<
a%b
43. rounds a number to the number of decimal points you choose
math.sqrt(a)
n
round()
del
44. 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
>>
**=
==
*=
45. exponent AND assignment operator
a//b
**=
argv
:
46. floor division AND assignment operator
>=
continue
//=
47. exponent AND assignment operator
#
**=
Variables
truncate
48. Symbol to add things together
is
+
and
*=
49. This keyword in the body of a conditional allows chained conditionals.
elif (Else if)
<<
<
close
50. deletes an item from a list
:
=
readline
del