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. unction to read one line of a file
Variables
readline
%s
raise
2. The keyword beginning a header that will create a loop.
write
for
%s
class
3. 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).
>=
<
is not
&
4. A logical operator which compares two operands and produces True if they are equal and False otherwise
+
==
print
readline
5. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
in
=
:
int
6. Symbol to divide by the number to the right of the symbol
/
a**b
and
-
7. This statement causes an exception.
~
format string
raise
file.readline()
8. Function to write something to a file
readline
-=
write
%
9. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
len()
format string
>>
^
10. Adds something to a variable
=
n
raise
-=
11. Prints a string to the screen which will be Unicode.
>>
&
insert()
%s
12. unction to read one line of a file
a**b
file.write(stuff)
str()
readline
13. An operator to check whether two variables refer to the same object.
is
#
continue
.py
14. floor division AND assignment operator
del
//=
#
*
15. Prevents a runtime error from stopping the program.
return
except
round()
*=
16. Evaluates to true if it does not finds a variable in the specified sequence and false otherwise. x not in y - here not in results in a 1 if x is a member of sequence y.
except
>=
|
not in
17. Adds a new line character
+=
n
-=
=
18. The keyword beginning a header that will create a new function.
def
open()
round()
**=
19. absolute value
/
abs(a)
*
**=
20. Less than or equal to symbol
>=
<=
#
:
21. subtract AND assignment operator
close
read
-=
22. ,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.
file.seek()
=
open()
23. Symbol to divide by the number to the right of the symbol
continue
argv
/
**=
24. single line comment
class
and
pass
#
25. A logical operator which returns a value of True if either of the conditions is true.
in
read
or
|
26. 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
math.sqrt(a)
del
>>
assignment
27. End header line.
^
/
format string
:
28. multiply AND assignment operator
argument variable
round()
*=
+=
29. The extension for Python scripts
.py
-=
*
insert()
30. Function to close a file - it will not be able to be used again unless the file is opened.
*readline
append()
>
close
31. A keyword that does nothing but fill space to indicate code which will be written later.
pass
else
raise
#
32. inserts an item inside a list at a certain index
n
or
insert()
n
33. assignment operator
Variables
Variables
argv
=
34. Create a variable.
=
Variables
not in
def
35. Greater than or equal symbol.
<=
file.readline()
>=
-=
36. This keyword begins the simplest form of a conditional statement.
if
is not
-=
try
37. deletes an item from a list
in
print
del
insert()
38. Symbol to add things together
else
round()
+
*=
39. Prints a string to the screen which will be Unicode.
#
and
<<
%s
40. A logical operator which compares two operands and produces True if they are equal and False otherwise
file.write(stuff)
append()
==
-
41. Function to read the contents of a file
a//b
read
%d
-=
42. asks the user for a response and returns that response
else
append()
print
input()
43. divide AND assignment operator
not in
def
/=
.py
44. 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
~
<<
int
()
45. Create a variable.
&
=
+
def
46. A statement that breaks out of a loop.
math.sqrt(a)
int
break
truncate
47. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
#
try
^
/=
48. multiply AND assignment operator
*=
n
<
else
49. This keyword in the body of a conditional - gives an alternative execution.
*=
readline
=
else
50. Evaluates to true if it finds a variable in the specified sequence and false otherwise. x in y - here in results in a 1 if x is a member of sequence y.
in
round()
insert()
>=
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