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 to subtract things from each other
len()
elif (Else if)
+=
-
2. The keyword beginning a header that will create a new function.
round()
def
a//b
-=
3. Where the parameters go. A necessary punctuation after any function even if it's empty.
a%b
()
Variables
close
4. Symbol to multiply things
def
*
/=
abs(a)
5. exponentiation
input()
a**b
//=
Variables
6. absolute value
abs(a)
*write(stuff)
argv
a//b
7. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
def
try
=
/
8. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
|
and
a//b
<=
9. This keyword in the body of a conditional allows chained conditionals.
elif (Else if)
/
if
%d
10. Function to read the contents of a file
file.seek()
<=
read
*readline
11. divide AND assignment operator
/=
#
^
/
12. The keyword beginning a header that will create a new function.
def
file.seek()
not
13. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.
class
a%b
argv
**=
14. Argument variable
readline
argv
for
file.write(stuff)
15. This keyword begins the simplest form of a conditional statement.
*=
#
if
and
16. Function to write something to a file
write
pass
print()
+
17. 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
>>
else
return
or
18. Less than or equal to symbol
==
**=
and
<=
19. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
def
~
*=
str
20. Less than symbol
a**b
>>
<
:
21. inserts an item inside a list at a certain index
==
file.seek()
<=
insert()
22. add AND assignment operator
+=
^
<
23. Command to print to the screen
abs(a)
print
not
#
24. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
def
and
truncate
*
25. Command to print to the screen
>>
in
print
/
26. Symbol to divide by the number to the right of the symbol
read
not
/
continue
27. assignment operator
file.truncate()
=
%s
%
28. deletes an item from a list
del
int()
%r
print
29. subtract AND assignment operator
read
floating point number
-=
append()
30. A logical operator which compares two operands and produces True if they are equal and False otherwise
*
not
==
#
31. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
readline
&
pass
<=
32. inserts an item inside a list at a certain index
:
>>
for
insert()
33. A built-in function that converts integers and strings to floating-point numbers.
-=
>
float
write
34. prints its parameter to the console
print()
and
a**b
argv
35. A logical operator which returns a value of True if either of the conditions is true.
insert()
#
or
~
36. Create a variable.
=
round()
for
a%b
37. deletes an item from a list
del
insert()
==
n
38. Evaluates to true if it does not finds a variable in the specified sequence and false otherwise. x not in y - here not in results in a 1 if x is a member of sequence y.
%
<
not in
file.write(stuff)
39. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
<=
<=
+
Variables
40. Symbol used to create comments
#
in
print
^
41. ,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
+=
~
42. End header line.
n
:
|
>>
43. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
insert()
**=
Variables
int()
44. Adds something to a variable
else
=
else
/
45. Function to open or read a file
open()
%
or
%d
46. modulo
a%b
<
%d
**=
47. Adds a new line character
==
n
|
elif (Else if)
48. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
<=
a%b
+
in
49. writes stuff to the file
try
file.write(stuff)
print()
#
50. turns an object into a string
str()
Variables
*write(stuff)
%r