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. Prints a string to the screen which is a signed decimal.
&
<
%d
#
2. unction to read one line of a file
del
is not
len()
readline
3. Where the parameters go. A necessary punctuation after any function even if it's empty.
()
#
=
insert()
4. inserts an item inside a list at a certain index
insert()
n
argument variable
/=
5. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
math.sqrt(a)
open()
%d
and
6. Adds something to a variable
write
a%b
=
close
7. A logical operator which compares two operands and produces True if they are equal and False otherwise
abs(a)
print
Variables
==
8. Command to print to the screen
print
math.sqrt(a)
*read
9. floor division AND assignment operator
is not
//=
pass
file.write(stuff)
10. exponent AND assignment operator
**=
return
.py
*=
11. Modulus operator. It's the remainder after division
%
>
*truncate
n
12. Less than or equal to symbol
<=
=
=
append()
13. Adds a new line character
&
<=
n
*=
14. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
except
<<
abs(a)
format string
15. add AND assignment operator
file.seek()
+=
open()
<<
16. Evaluates to false if the variables on either side of the operator point to the same object and true otherwise. x is not y - here is not results in 1 if id(x) is not equal to id(y).
is not
not
not in
del
17. absolute value
if
abs(a)
Variables
a//b
18. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
<
a**b
|
str()
19. Argument variable
=
.py
argv
abs(a)
20. Greater than symbol
>>
insert()
file.write(stuff)
>
21. Modulus operator. It's the remainder after division
continue
len()
%
%d
22. This statement causes an exception.
and
*readline
raise
n
23. A keyword that does nothing but fill space to indicate code which will be written later.
pass
if
print
<<
24. Symbol to divide by the number to the right of the symbol
=
except
/
insert()
25. 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
len()
#
/
<<
26. 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
close
format string
>>
int()
27. Function to close a file - it will not be able to be used again unless the file is opened.
close
n
not in
=
28. Argument variable
*write(stuff)
>=
argv
*truncate
29. Function to close a file - it will not be able to be used again unless the file is opened.
+=
*write(stuff)
except
close
30. Prevents a runtime error from stopping the program.
len()
except
close
truncate
31. Prints a string to the screen which is converted using repr()
%r
=
raise
read
32. Reads the contents of the file you can assign the result to a variable.
=
math.sqrt(a)
input()
*read
33. A built-in function that converts its argument to a string.
len()
math.sqrt(a)
abs(a)
str
34. Greater than symbol
file.write(stuff)
>
=
35. adds an item to a list
-
/=
append()
for
36. 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
//=
^
*=
#
37. Greater than or equal symbol.
=
def
append()
>=
38. This keyword begins the simplest form of a conditional statement.
*truncate
%r
=
if
39. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
=
for
=
&
40. turns an object into an integer
int()
print
**=
>
41. modulus AND assignment operator
elif (Else if)
*write(stuff)
%=
not
42. multiply AND assignment operator
+=
=
except
*=
43. rounds a number to the number of decimal points you choose
round()
read
in
class
44. Function to open or read a file
open()
=
argument variable
**=
45. The keyword beginning a header that will create a loop.
assignment
round()
n
for
46. A logical operator which returns a value of True if either of the conditions is true.
not in
continue
or
>=
47. Function to write something to a file
write
class
read
for
48. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
//=
try
del
raise
49. Prints a string to the screen which is converted using repr()
<=
#
int
%r
50. Symbol to add things together
elif (Else if)
+
-=
insert()