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 requires two expressions to both be true.
n
str()
==
and
2. unction to read one line of a file
is
.py
readline
=
3. Adds something to a variable
pass
=
a**b
4. Function to close a file - it will not be able to be used again unless the file is opened.
readline
close
~
file.seek()
5. Function to empty the contents of a file - no recovery is possible
&
truncate
//=
a**b
6. deletes an item from a list
==
del
-=
~
7. Function to read the contents of a file
>>
read
round()
#
8. Symbol to subtract things from each other
%=
<=
try
-
9. Symbol to add things together
+
file.readline()
|
=
10. Symbol to divide by the number to the right of the symbol
/
a//b
()
a**b
11. Function to open or read a file
open()
len()
a%b
*write(stuff)
12. Command to print to the screen
print
>>
pass
>=
13. Prevents a runtime error from stopping the program.
close
**=
break
except
14. rounds a number to the number of decimal points you choose
round()
close
print
readline
15. add AND assignment operator
str
#
+=
float
16. Symbol to divide by the number to the right of the symbol
close
file.seek()
/
del
17. Argument variable
pass
insert()
append()
argv
18. Function to write something to a file
%
write
n
argv
19. This keyword in the body of a conditional - gives an alternative execution.
str()
insert()
else
+
20. Modulus operator. It's the remainder after division
%
abs(a)
^
%r
21. An operator to check whether two variables refer to the same object.
is
is not
<=
read
22. square root
<=
def
str
math.sqrt(a)
23. Adds a new line character
n
*
**=
#
24. This keyword in the body of a conditional - gives an alternative execution.
*
else
>>
str
25. Argument variable
+
argv
<=
file.truncate()
26. Less than or equal to symbol
*readline
=
<=
math.sqrt(a)
27. modulo
readline
a%b
**=
not in
28. The keyword beginning a header that will create a new function.
*truncate
class
file.truncate()
def
29. Where the parameters go. A necessary punctuation after any function even if it's empty.
#
*
:
()
30. Prints a string to the screen which will be Unicode.
Variables
a//b
%s
if
31. A statement that breaks out of a loop.
input()
del
break
in
32. turns an object into a string
str()
assignment
>
=
33. empties the file
file.truncate()
not in
print
file.seek()
34. A logical operator which negates an expression so that it returns a value of True if the expression is false.
-=
%r
%s
not
35. Function to read the contents of a file
if
else
read
/=
36. assignment operator
=
/=
*
round()
37. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
str
>>
in
try
38. The keyword beginning a header that will create a loop.
+=
not
for
>=
39. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
str
is
while
format string
40. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
%s
open()
append()
&
41. End header line.
>=
int()
+=
:
42. End header line.
:
~
-
math.sqrt(a)
43. Greater than symbol
()
not
>
in
44. A statement that assigns a value to a variable.
break
=
n
assignment
45. Symbol to multiply things
%
*
class
write
46. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
abs(a)
&
len()
%r
47. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
=
continue
for
~
48. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
#
.py
continue
in
49. Less than or equal to symbol
else
<=
:
=
50. modulus AND assignment operator
%s
|
%=
-=
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