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 used to create comments
#
read
<
()
2. Less than symbol
%=
file.write(stuff)
<
+=
3. A built-in function that converts its argument to a string.
str
int()
()
^
4. square root
:
math.sqrt(a)
class
-=
5. An operator to check whether two variables refer to the same object.
<
file.write(stuff)
^
is
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
>>
round()
%=
class
7. Symbol to multiply things
input()
*
a**b
floating point number
8. absolute value
abs(a)
=
readline
close
9. Function to write something to a file
=
close
append()
write
10. square root
math.sqrt(a)
:
**=
in
11. Prints a string to the screen which is converted using repr()
%r
floating point number
-
/
12. Empties the file - watch out if you care about the file.
%s
^
argument variable
*truncate
13. exponent AND assignment operator
input()
readline
append()
**=
14. Where the parameters go. A necessary punctuation after any function even if it's empty.
read
read
()
insert()
15. The keyword beginning a header that will create a loop.
/
for
and
a%b
16. Reads just one line of a text file.
^
*readline
del
%r
17. End header line.
#
:
truncate
append()
18. asks the user for a response and returns that response
+
input()
del
//=
19. prints its parameter to the console
int()
len()
print()
%
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
print()
&
<=
%s
21. Function to close a file - it will not be able to be used again unless the file is opened.
close
len()
~
for
22. Reads the contents of the file you can assign the result to a variable.
*read
+=
int()
<=
23. 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
>>
%r
+=
*=
24. Symbol to subtract things from each other
write
-
n
pass
25. Symbol to multiply things
^
*
//=
math.sqrt(a)
26. This statement exits a function. The remaining lines of the function are not executed.
return
*=
<=
file.write(stuff)
27. multiply AND assignment operator
*=
print
%d
round()
28. returns the length of a string (number of characters)
/=
len()
*
math.sqrt(a)
29. Prints a string to the screen which is a signed decimal.
round()
print
%d
%r
30. End header line.
%d
-=
:
pass
31. exponentiation
|
a**b
=
input()
32. empties the file
*
len()
>=
file.truncate()
33. reads just one line of a text file & keeps track of where in the file you're at
#
file.readline()
append()
==
34. exponentiation
a**b
Variables
#
else
35. divide AND assignment operator
write
write
abs(a)
/=
36. Command to print to the screen
pass
=
print
else
37. deletes an item from a list
file.truncate()
del
argv
def
38. A statement that breaks out of a loop.
else
not in
break
print
39. divide AND assignment operator
/=
len()
#
int()
40. inserts an item inside a list at a certain index
not
in
insert()
>>
41. A logical operator which negates an expression so that it returns a value of True if the expression is false.
-=
not
-
while
42. Symbol to add things together
%d
<=
open()
+
43. floor division AND assignment operator
//=
<
is
**=
44. Function to open or read a file
#
()
%=
open()
45. Symbol to divide by the number to the right of the symbol
open()
n
/
*truncate
46. assignment operator
and
%d
=
>
47. turns an object into a string
str()
pass
print
Variables
48. Less than symbol
&
for
print()
<
49. A logical operator which returns a value of True if either of the conditions is true.
if
del
or
-
50. A data type for representing numbers with fractional values.
readline
floating point number
>
==