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. The extension for Python scripts
%r
^
~
.py
2. reads just one line of a text file & keeps track of where in the file you're at
=
float
#
file.readline()
3. Modulus operator. It's the remainder after division
else
%
<<
%s
4. This statement causes an exception.
print()
readline
continue
raise
5. Symbol used to create comments
readline
~
#
math.sqrt(a)
6. Greater than symbol
>
print
len()
argument variable
7. A logical operator which returns a value of True if either of the conditions is true.
open()
read
or
+=
8. exponentiation
and
a**b
round()
raise
9. Create a variable.
=
truncate
math.sqrt(a)
pass
10. Prints a string to the screen which is a signed decimal.
input()
a**b
insert()
%d
11. unction to read one line of a file
readline
*
*
print
12. Where the parameters go. A necessary punctuation after any function even if it's empty.
close
int()
:
()
13. Command to print to the screen
^
^
close
print
14. A built-in function that converts its argument to a string.
-
int()
#
str
15. multiply AND assignment operator
~
*=
not in
|
16. absolute value
abs(a)
round()
print
+=
17. Function to write something to a file
del
write
return
break
18. The keyword beginning a header that will create a loop.
for
&
/=
>
19. The extension for Python scripts
==
<<
.py
*
20. sets the file's current position
input()
assignment
file.seek()
-=
21. turns an object into a string
str()
del
%
=
22. assignment operator
%r
=
in
^
23. returns the length of a string (number of characters)
else
file.seek()
len()
*=
24. Prints a string to the screen which is converted using repr()
/
&
=
%r
25. Prints a string to the screen which will be Unicode.
Variables
%s
&
len()
26. floor division AND assignment operator
%s
try
//=
append()
27. modulo
.py
%
is not
a%b
28. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.
a%b
#
class
format string
29. turns an object into an integer
int()
try
%=
/
30. turns an object into an integer
int()
print
if
%r
31. exponent AND assignment operator
else
**=
<=
/
32. floor division AND assignment operator
a**b
pass
for
//=
33. 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
n
is
34. Empties the file - watch out if you care about the file.
:
pass
*truncate
=
35. Function to read the contents of a file
read
elif (Else if)
insert()
%r
36. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
argv
#
in
a%b
37. modulo
continue
a%b
for
//=
38. End header line.
read
:
while
len()
39. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
file.readline()
/=
&
%=
40. Function to empty the contents of a file - no recovery is possible
not
truncate
insert()
&
41. Adds a new line character
argv
/=
n
len()
42. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
for
str
~
n
43. Create a variable.
append()
=
in
+=
44. adds an item to a list
a%b
=
%s
append()
45. Symbol to divide by the number to the right of the symbol
a//b
/
readline
/=
46. 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
^
+=
==
<<
47. Symbol to divide by the number to the right of the symbol
while
>
/
len()
48. An operator to check whether two variables refer to the same object.
is
in
#
%s
49. 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
<<
insert()
a%b
math.sqrt(a)
50. 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
is
%=
input()
^
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