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. subtract AND assignment operator
-=
<=
/=
write
2. A statement that ends the current iteration of a loop but continues looping.
and
continue
close
readline
3. ,multi-line comment hard-code,Fix (data or parameters) in a program in such a way that they cannot easily be altered by the user.
^
%s
-
4. Greater than symbol
del
str()
not
>
5. A logical operator which compares two operands and produces True if they are equal and False otherwise
*truncate
+=
==
*write(stuff)
6. square root
math.sqrt(a)
>
//=
return
7. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
del
^
append()
|
8. exponentiation
a%b
a**b
+
and
9. prints its parameter to the console
int()
*readline
print()
readline
10. 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
<<
<=
+=
else
11. assignment operator
print()
+=
=
>
12. The extension for Python scripts
print
-=
.py
is not
13. The keyword beginning a header that will create a new function.
a**b
def
//=
file.seek()
14. An operator to check whether two variables refer to the same object.
/=
is
+
abs(a)
15. Greater than or equal symbol.
>=
=
file.seek()
==
16. writes stuff to the file
file.write(stuff)
open()
*read
append()
17. 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
^
n
%s
%r
18. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
len()
=
append()
and
19. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
//=
try
del
Variables
20. This keyword in the body of a conditional - gives an alternative execution.
+
else
-=
>
21. Adds something to a variable
%r
=
/=
append()
22. prints its parameter to the console
%
print()
#
/=
23. deletes an item from a list
if
print
a%b
del
24. empties the file
file.truncate()
%
close
readline
25. This keyword in the body of a conditional - gives an alternative execution.
%=
else
file.write(stuff)
continue
26. inserts an item inside a list at a certain index
insert()
:
:
print
27. A logical operator which returns a value of True if either of the conditions is true.
or
:
<
()
28. Turns a line into a comment instead of executable code.
+
a%b
%
#
29. The keyword beginning a header that will create a loop.
file.truncate()
try
a**b
for
30. Prints a string to the screen which is a signed decimal.
**=
^
%d
^
31. Less than symbol
|
int()
/=
<
32. This keyword begins the simplest form of a conditional statement.
()
round()
if
is
33. Argument variable
pass
argv
readline
truncate
34. floor division
+
a//b
/=
input()
35. Symbol to multiply things
is not
.py
str()
*
36. Prints a string to the screen which will be Unicode.
%
a%b
%s
file.write(stuff)
37. floor division AND assignment operator
or
read
//=
n
38. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
else
write
&
Variables
39. Less than symbol
=
%=
<
&
40. Function to open or read a file
print()
#
open()
:
41. returns the length of a string (number of characters)
print()
>>
len()
read
42. Greater than symbol
print
=
>
return
43. This keyword begins the simplest form of a conditional statement.
a%b
%s
if
for
44. Create a variable.
%r
append()
=
abs(a)
45. A keyword that does nothing but fill space to indicate code which will be written later.
not in
pass
print
%=
46. Prints a string to the screen which will be Unicode.
n
class
round()
%s
47. Function to read the contents of a file
a//b
<<
a**b
read
48. Modulus operator. It's the remainder after division
%
&
>=
except
49. single line comment
argument variable
pass
+=
#
50. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
Variables
**=
def
/