SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. Adds a new line character
input()
n
del
insert()
2. Prints a string to the screen which will be Unicode.
%s
==
#
**=
3. Argument variable
argv
<<
<=
or
4. Prints a string to the screen which is converted using repr()
open()
%r
not in
*=
5. Create a variable.
print()
str
=
<
6. Function to open or read a file
>>
open()
read
%r
7. Less than or equal to symbol
def
if
%d
<=
8. adds an item to a list
**=
*=
append()
9. 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
print
^
round()
print()
10. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
round()
and
file.seek()
def
11. unction to read one line of a file
/=
readline
-=
==
12. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
file.seek()
insert()
*write(stuff)
in
13. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
close
int
>
open()
14. Adds something to a variable
/=
int()
-
=
15. turns an object into an integer
+=
-=
int()
>=
16. Adds something to a variable
close
=
math.sqrt(a)
del
17. Symbol to divide by the number to the right of the symbol
()
*readline
/
<
18. Function to read the contents of a file
insert()
<<
%s
read
19. 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
:
^
<<
for
20. assignment operator
:
round()
=
elif (Else if)
21. add AND assignment operator
:
+
n
+=
22. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
/=
Variables
print()
a//b
23. Greater than symbol
#
>
float
=
24. Function to read the contents of a file
print
~
str()
read
25. An operator that removes a value from a list.
file.readline()
del
file.write(stuff)
>
26. A statement that assigns a value to a variable.
open()
assignment
format string
*write(stuff)
27. This statement causes an exception.
return
==
raise
in
28. turns an object into a string
print()
str()
^
()
29. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
int()
#
|
*
30. Command to print to the screen
/=
Variables
print
+=
31. The keyword beginning a header that will create a loop.
argument variable
for
*truncate
truncate
32. single line comment
#
not in
round()
abs(a)
33. Writes stuff to the file.
*write(stuff)
a**b
%d
=
34. A logical operator which negates an expression so that it returns a value of True if the expression is false.
write
if
not
readline
35. inserts an item inside a list at a certain index
insert()
print
int()
>=
36. deletes an item from a list
print
or
del
int()
37. 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).
and
is not
=
=
38. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
|
break
input()
int
39. Symbol to multiply things
<=
*
open()
print
40. subtract AND assignment operator
len()
>=
-=
open()
41. Modulus operator. It's the remainder after division
%
#
%=
*truncate
42. Turns a line into a comment instead of executable code.
*=
#
write
del
43. 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
print
-
-=
<<
44. floor division AND assignment operator
/=
str
append()
//=
45. absolute value
abs(a)
truncate
del
def
46. exponentiation
/=
def
a**b
|
47. Greater than or equal symbol.
raise
>=
*
>>
48. An operator to check whether two variables refer to the same object.
**=
input()
is
append()
49. Symbol to subtract things from each other
-
#
read
%r
50. assignment operator
<<
len()
=
round()