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. prints its parameter to the console
round()
~
a**b
print()
2. An operator to check whether two variables refer to the same object.
n
is
a//b
is not
3. modulus AND assignment operator
read
%=
()
n
4. Less than symbol
*truncate
<
=
class
5. square root
str
%r
math.sqrt(a)
print()
6. subtract AND assignment operator
#
readline
-=
int
7. turns an object into a string
else
argv
str()
pass
8. Symbol used to create comments
len()
-
pass
#
9. Adds something to a variable
=
close
file.seek()
*truncate
10. Greater than symbol
%d
print()
>
.py
11. A logical operator which requires two expressions to both be true.
if
^
assignment
and
12. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
and
float
<=
insert()
13. rounds a number to the number of decimal points you choose
<<
round()
readline
*=
14. Prints a string to the screen which is a signed decimal.
%d
a**b
>=
floating point number
15. A built-in function that converts its argument to a string.
pass
str
**=
<
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.
=
print()
not in
^
17. A statement that breaks out of a loop.
<
/=
print()
break
18. floor division AND assignment operator
a%b
//=
*=
%
19. divide AND assignment operator
/=
()
else
n
20. exponentiation
=
%r
open()
a**b
21. This keyword begins the simplest form of a conditional statement.
if
float
a//b
%=
22. add AND assignment operator
or
**=
-=
+=
23. Symbol to multiply things
argv
#
*
/
24. This keyword in the body of a conditional allows chained conditionals.
elif (Else if)
print
floating point number
abs(a)
25. Prevents a runtime error from stopping the program.
math.sqrt(a)
round()
except
write
26. Prints a string to the screen which is a signed decimal.
|
a**b
%d
del
27. Prints a string to the screen which is converted using repr()
def
%r
for
a//b
28. floor division
format string
|
a//b
not
29. subtract AND assignment operator
=
-=
file.readline()
abs(a)
30. This statement causes an exception.
%d
//=
raise
+=
31. Function to write something to a file
write
del
else
/
32. Greater than or equal symbol.
>=
or
for
except
33. Argument variable
argv
~
float
#
34. This keyword begins the simplest form of a conditional statement.
pass
if
print
*=
35. add AND assignment operator
in
+=
%s
file.truncate()
36. A logical operator which returns a value of True if either of the conditions is true.
or
str
>=
if
37. The keyword beginning a header that will create a new function.
math.sqrt(a)
else
def
*truncate
38. An operator that removes a value from a list.
read
del
try
>=
39. square root
raise
print
>=
math.sqrt(a)
40. 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
raise
file.write(stuff)
>>
+=
41. 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
elif (Else if)
^
or
>=
42. Function to open or read a file
file.write(stuff)
open()
in
del
43. 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
+=
assignment
^
open()
44. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
read
argv
*
int
45. turns an object into an integer
argv
int()
file.truncate()
>
46. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.
del
not in
==
class
47. Adds a new line character
a%b
read
n
*read
48. 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
>>
input()
/
print
49. multiply AND assignment operator
del
+
*=
-
50. Function to close a file - it will not be able to be used again unless the file is opened.
close
()
else
truncate
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