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. This keyword in the body of a conditional allows chained conditionals.
readline
assignment
=
elif (Else if)
2. writes stuff to the file
is
*=
file.write(stuff)
:
3. A statement that breaks out of a loop.
assignment
is
break
del
4. Symbol used to create comments
str()
#
+
for
5. Symbol to divide by the number to the right of the symbol
int()
/
argv
Variables
6. exponent AND assignment operator
<<
is
%s
**=
7. A logical operator which compares two operands and produces True if they are equal and False otherwise
is
.py
-=
==
8. Function to close a file - it will not be able to be used again unless the file is opened.
a//b
print
close
>>
9. Prevents a runtime error from stopping the program.
else
except
def
write
10. Greater than or equal symbol.
>=
%s
/=
:
11. Function to write something to a file
open()
write
int
print
12. Function to empty the contents of a file - no recovery is possible
truncate
is
read
not
13. rounds a number to the number of decimal points you choose
round()
a**b
*write(stuff)
del
14. prints its parameter to the console
^
raise
Variables
print()
15. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
except
Variables
#
:
16. returns the length of a string (number of characters)
/
len()
del
^
17. The keyword beginning a header that will create a new function.
>
def
truncate
/=
18. A statement that ends the current iteration of a loop but continues looping.
=
del
str
continue
19. The keyword beginning a header that will create a new function.
^
:
def
append()
20. rounds a number to the number of decimal points you choose
argument variable
round()
^
abs(a)
21. Prints a string to the screen which is converted using repr()
%r
print()
or
else
22. End header line.
floating point number
*truncate
%
:
23. Create a variable.
()
=
del
while
24. floor division
math.sqrt(a)
a//b
*read
except
25. Prints a string to the screen which is a signed decimal.
for
%=
%d
abs(a)
26. divide AND assignment operator
/=
//=
==
pass
27. This keyword in the body of a conditional - gives an alternative execution.
print()
&
-=
else
28. 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
=
math.sqrt(a)
#
29. multiply AND assignment operator
*=
del
Variables
math.sqrt(a)
30. unction to read one line of a file
readline
file.write(stuff)
int()
31. inserts an item inside a list at a certain index
insert()
Variables
&
*truncate
32. asks the user for a response and returns that response
input()
truncate
assignment
str()
33. Where the parameters go. A necessary punctuation after any function even if it's empty.
|
=
a**b
()
34. assignment operator
print()
append()
for
=
35. A logical operator which returns a value of True if either of the conditions is true.
int()
%
or
file.truncate()
36. turns an object into an integer
<=
class
int()
<=
37. divide AND assignment operator
if
insert()
/=
try
38. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
if
-
//=
|
39. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
Variables
>
and
()
40. Prints a string to the screen which will be Unicode.
%
read
+
%s
41. square root
*read
math.sqrt(a)
file.seek()
for
42. Less than or equal to symbol
<=
def
<
==
43. turns an object into a string
str()
not
=
n
44. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
argument variable
in
file.seek()
&
45. Command to print to the screen
print
>>
>=
+=
46. 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
^
read
file.truncate()
47. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
Variables
def
-
//=
48. Adds a new line character
<=
n
write
>>
49. single line comment
|
#
-=
*=
50. Prints a string to the screen which is a signed decimal.
//=
str()
%d
>=
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