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. Modulus operator. It's the remainder after division
()
/
%
len()
2. This keyword begins a header for a body that repeats until the condition is no longer true.
*=
file.write(stuff)
Variables
while
3. subtract AND assignment operator
-=
%=
readline
del
4. floor division AND assignment operator
/=
//=
if
readline
5. Turns a line into a comment instead of executable code.
-
print()
#
n
6. Prints a string to the screen which is converted using repr()
Variables
%r
-=
>>
7. writes stuff to the file
%=
>=
#
file.write(stuff)
8. Function to read the contents of a file
print
print()
append()
read
9. A logical operator which requires two expressions to both be true.
/=
and
insert()
assignment
10. unction to read one line of a file
input()
>>
readline
11. asks the user for a response and returns that response
()
a//b
print
input()
12. 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
>>
**=
file.truncate()
round()
13. turns an object into a string
else
not in
read
str()
14. inserts an item inside a list at a certain index
<=
%=
in
insert()
15. modulo
a//b
len()
n
a%b
16. single line comment
input()
int
#
<
17. Reads the contents of the file you can assign the result to a variable.
=
>>
a**b
*read
18. Less than symbol
>>
<
a%b
/
19. A built-in function that converts its argument to a string.
str
abs(a)
close
del
20. A data type for representing numbers with fractional values.
<<
=
floating point number
print
21. Greater than symbol
print
/
for
>
22. unction to read one line of a file
try
readline
print
%d
23. adds an item to a list
append()
*
//=
%
24. Function to close a file - it will not be able to be used again unless the file is opened.
read
in
class
close
25. add AND assignment operator
+=
if
is
str()
26. End header line.
:
float
if
-=
27. adds an item to a list
|
+
**=
append()
28. An operator that removes a value from a list.
#
#
del
=
29. floor division
try
print()
a//b
append()
30. Create a variable.
=
while
*=
round()
31. Argument variable
del
is
=
argv
32. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
&
<<
*read
()
33. subtract AND assignment operator
for
-=
**=
else
34. absolute value
%d
read
write
abs(a)
35. Argument variable
argv
%s
>
36. Prints a string to the screen which is converted using repr()
%r
insert()
print
int
37. assignment operator
=
argv
round()
def
38. Less than or equal to symbol
float
in
except
<=
39. exponentiation
in
is
a**b
len()
40. Symbol to add things together
math.sqrt(a)
>>
+
if
41. multiply AND assignment operator
del
*=
str
float
42. empties the file
file.truncate()
del
#
file.write(stuff)
43. This statement causes an exception.
=
open()
a%b
raise
44. A statement that displays a value on the screen.
print
-=
%s
math.sqrt(a)
45. Function to close a file - it will not be able to be used again unless the file is opened.
while
close
append()
n
46. deletes an item from a list
%d
+=
open()
del
47. End header line.
:
*write(stuff)
-=
Variables
48. square root
math.sqrt(a)
len()
//=
abs(a)
49. Function to open or read a file
open()
argument variable
Variables
>=
50. exponent AND assignment operator
n
*
print
**=
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