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. A logical operator which negates an expression so that it returns a value of True if the expression is false.
not
>
*readline
write
2. Function to read the contents of a file
read
/
assignment
truncate
3. turns an object into an integer
int()
>
%
is not
4. Prints a string to the screen which is converted using repr()
%r
input()
argv
*read
5. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
abs(a)
for
int
format string
6. The extension for Python scripts
==
+=
=
.py
7. 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
argv
<<
return
*
8. 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
>>
argv
-=
break
9. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
break
file.readline()
try
~
10. Function to write something to a file
write
abs(a)
break
if
11. Symbol to subtract things from each other
read
-
write
Variables
12. modulo
str
except
a%b
else
13. A keyword that does nothing but fill space to indicate code which will be written later.
argv
break
pass
file.write(stuff)
14. Adds a new line character
n
if
def
round()
15. floor division
a//b
argv
>
return
16. The keyword beginning a header that will create a new function.
round()
or
try
def
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
+=
int()
>>
int
18. A built-in function that converts its argument to a string.
str
in
*
.py
19. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
truncate
>>
Variables
or
20. Writes stuff to the file.
read
*write(stuff)
<<
del
21. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
+
def
raise
&
22. prints its parameter to the console
abs(a)
%d
print()
**=
23. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
input()
write
<<
try
24. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
Variables
n
argv
~
25. empties the file
or
:
close
file.truncate()
26. exponent AND assignment operator
+
**=
%d
*
27. A logical operator which requires two expressions to both be true.
#
-=
a**b
and
28. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
Variables
read
try
in
29. A logical operator which returns a value of True if either of the conditions is true.
append()
or
in
Variables
30. Less than symbol
argv
>>
close
<
31. Prints a string to the screen which will be Unicode.
/=
-
%s
except
32. reads just one line of a text file & keeps track of where in the file you're at
<<
.py
=
file.readline()
33. Symbol to add things together
int()
open()
+
-
34. Symbol used to create comments
*write(stuff)
if
*truncate
#
35. Symbol to add things together
break
%
+
>>
36. The keyword beginning a header that will create a new function.
close
input()
%=
def
37. Prints a string to the screen which will be Unicode.
print()
not in
%s
round()
38. 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).
file.write(stuff)
//=
is not
argument variable
39. rounds a number to the number of decimal points you choose
round()
//=
a**b
%d
40. Function to empty the contents of a file - no recovery is possible
truncate
n
insert()
*=
41. Less than or equal to symbol
*read
abs(a)
Variables
<=
42. absolute value
>=
#
raise
abs(a)
43. exponentiation
a**b
+=
~
str
44. adds an item to a list
|
append()
def
()
45. Greater than symbol
len()
a%b
>
raise
46. The keyword beginning a header that will create a loop.
raise
not
close
for
47. Empties the file - watch out if you care about the file.
*truncate
append()
print
write
48. 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
in
^
raise
>>
49. modulo
def
a%b
/=
raise
50. Prints a string to the screen which is a signed decimal.
-
except
%=
%d
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests