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. adds an item to a list
append()
>
a%b
pass
2. exponent AND assignment operator
^
**=
#
*=
3. This keyword in the body of a conditional allows chained conditionals.
elif (Else if)
n
=
a%b
4. Symbol to multiply things
>=
break
*
is not
5. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.
int()
or
elif (Else if)
class
6. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
abs(a)
format string
~
del
7. turns an object into a string
str()
^
()
#
8. single line comment
file.truncate()
#
format string
del
9. Prints a string to the screen which is a signed decimal.
*truncate
/
%d
*=
10. exponent AND assignment operator
**=
>=
>=
print
11. A built-in function that converts integers and strings to floating-point numbers.
len()
=
float
n
12. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
del
+=
and
round()
13. Prints a string to the screen which will be Unicode.
a%b
read
%s
or
14. square root
is not
/
int
math.sqrt(a)
15. A built-in function that converts its argument to a string.
/
read
str
a//b
16. Command to print to the screen
==
print()
Variables
print
17. 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
>>
close
**=
raise
18. Greater than or equal symbol.
>=
-=
open()
()
19. Function to write something to a file
<=
write
*readline
.py
20. End header line.
.py
del
def
:
21. An operator that removes a value from a list.
file.readline()
del
a%b
/=
22. floor division AND assignment operator
elif (Else if)
//=
print()
^
23. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
>
abs(a)
Variables
insert()
24. Less than or equal to symbol
input()
%r
#
<=
25. A statement that assigns a value to a variable.
>>
Variables
assignment
-
26. adds an item to a list
file.readline()
append()
print()
%=
27. asks the user for a response and returns that response
input()
*=
|
28. reads just one line of a text file & keeps track of where in the file you're at
%d
file.readline()
if
<=
29. A logical operator which returns a value of True if either of the conditions is true.
or
**=
str()
assignment
30. ,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.
if
=
%=
31. Less than symbol
else
<
%s
*truncate
32. Prints a string to the screen which is converted using repr()
%r
+
%s
=
33. turns an object into an integer
print()
str()
int()
write
34. Greater than or equal symbol.
str
#
continue
>=
35. A statement that breaks out of a loop.
break
<<
for
=
36. Adds something to a variable
=
()
try
file.truncate()
37. add AND assignment operator
//=
print()
+=
def
38. floor division AND assignment operator
//=
n
def
file.readline()
39. Prints a string to the screen which is converted using repr()
%r
<
assignment
^
40. Symbol to add things together
=
append()
+
str()
41. subtract AND assignment operator
-=
int
len()
42. This keyword in the body of a conditional - gives an alternative execution.
file.seek()
+
else
*write(stuff)
43. empties the file
n
*=
=
file.truncate()
44. This statement exits a function. The remaining lines of the function are not executed.
readline
return
|
.py
45. Symbol used to create comments
^
is
#
%s
46. A statement that displays a value on the screen.
%s
if
round()
print
47. Symbol used to create comments
file.readline()
%=
a//b
#
48. turns an object into an integer
a%b
%r
int()
close
49. This keyword begins a header for a body that repeats until the condition is no longer true.
while
.py
-=
#
50. assignment operator
%
~
=
append()
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