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. Function to read the contents of a file
truncate
is not
read
2. exponentiation
return
a**b
input()
for
3. Reads just one line of a text file.
elif (Else if)
abs(a)
for
*readline
4. adds an item to a list
append()
input()
#
abs(a)
5. The extension for Python scripts
&
/
.py
while
6. Prints a string to the screen which is a signed decimal.
in
%d
()
break
7. Function to empty the contents of a file - no recovery is possible
%
file.write(stuff)
def
truncate
8. turns an object into a string
try
str()
#
/
9. exponent AND assignment operator
in
int()
**=
<=
10. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
<<
()
&
#
11. 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
#
>>
print
|
12. ,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.
==
%r
print
13. modulo
=
-=
a%b
.py
14. 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
<<
float
()
Variables
15. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
argument variable
try
a//b
>=
16. unction to read one line of a file
%d
readline
format string
del
17. Symbol to subtract things from each other
def
return
len()
-
18. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
floating point number
file.seek()
**=
|
19. deletes an item from a list
//=
del
<
or
20. This statement causes an exception.
raise
print()
print
-
21. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
in
n
Variables
in
22. Less than or equal to symbol
%s
float
is
<=
23. Greater than or equal symbol.
str()
()
&
>=
24. writes stuff to the file
-
Variables
+
file.write(stuff)
25. turns an object into a string
str()
%
-=
break
26. multiply AND assignment operator
*=
~
for
==
27. unction to read one line of a file
readline
write
n
-=
28. Symbol to divide by the number to the right of the symbol
class
/
Variables
()
29. exponent AND assignment operator
round()
**=
%
if
30. Symbol to add things together
*
-
+
>=
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
**=
&
not
int
32. The keyword beginning a header that will create a loop.
continue
for
int()
int()
33. inserts an item inside a list at a certain index
append()
truncate
insert()
del
34. turns an object into an integer
int()
readline
*truncate
try
35. sets the file's current position
=
int
del
file.seek()
36. deletes an item from a list
abs(a)
*
print
del
37. Adds something to a variable
=
+
float
<
38. Function to close a file - it will not be able to be used again unless the file is opened.
n
del
close
>
39. The keyword beginning a header that will create a new function.
|
def
file.write(stuff)
break
40. square root
len()
.py
math.sqrt(a)
readline
41. absolute value
def
write
//=
abs(a)
42. Function to empty the contents of a file - no recovery is possible
truncate
n
*
43. empties the file
%d
str()
=
file.truncate()
44. modulus AND assignment operator
%=
/=
a//b
input()
45. Prints a string to the screen which will be Unicode.
in
*=
~
%s
46. Symbol to add things together
>=
+
abs(a)
//=
47. End header line.
:
>
#
if
48. adds an item to a list
file.truncate()
append()
>
not
49. Symbol used to create comments
>
abs(a)
#
not in
50. A statement that ends the current iteration of a loop but continues looping.
=
a**b
str()
continue
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