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. 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
>>
^
write
int
2. unction to read one line of a file
==
round()
%=
readline
3. Where the parameters go. A necessary punctuation after any function even if it's empty.
return
()
in
<
4. An operator to check whether two variables refer to the same object.
is
in
abs(a)
file.readline()
5. Prints a string to the screen which is converted using repr()
file.truncate()
insert()
%r
+
6. floor division AND assignment operator
**=
round()
>=
//=
7. This statement causes an exception.
&
append()
raise
try
8. A logical operator which compares two operands and produces True if they are equal and False otherwise
write
*
==
insert()
9. A statement that assigns a value to a variable.
int()
assignment
~
append()
10. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
in
=
if
and
11. Writes stuff to the file.
*write(stuff)
int
.py
insert()
12. This keyword begins the simplest form of a conditional statement.
=
**=
if
format string
13. Greater than or equal symbol.
*read
>=
print()
argv
14. Symbol to multiply things
class
*
/
==
15. empties the file
input()
==
file.truncate()
=
16. absolute value
>>
*read
and
abs(a)
17. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
len()
&
~
/
18. Function to close a file - it will not be able to be used again unless the file is opened.
return
close
=
=
19. assignment operator
=
format string
def
20. unction to read one line of a file
+
*
def
readline
21. Less than symbol
^
<
<=
not in
22. 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
&
try
^
23. returns the length of a string (number of characters)
while
else
write
len()
24. Symbol to add things together
a%b
a//b
+
round()
25. This keyword in the body of a conditional - gives an alternative execution.
print
else
:
in
26. A statement that breaks out of a loop.
not in
break
floating point number
read
27. exponent AND assignment operator
**=
int()
=
-=
28. Function to read the contents of a file
()
read
Variables
>=
29. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
a//b
#
a%b
int
30. Symbol to divide by the number to the right of the symbol
|
/
%r
a%b
31. Symbol to add things together
write
-=
<
+
32. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.
()
=
class
-
33. Where the parameters go. A necessary punctuation after any function even if it's empty.
%=
a%b
()
insert()
34. returns the length of a string (number of characters)
len()
**=
raise
35. Function to open or read a file
or
open()
except
=
36. End header line.
:
*write(stuff)
else
continue
37. End header line.
%s
+=
abs(a)
:
38. Prints a string to the screen which will be Unicode.
%d
readline
%s
floating point number
39. Prevents a runtime error from stopping the program.
#
<<
abs(a)
except
40. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
<
~
*
|
41. modulo
/=
/=
a%b
except
42. floor division AND assignment operator
#
print
//=
input()
43. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
*
%s
~
else
44. Function to open or read a file
+=
open()
=
round()
45. This keyword in the body of a conditional - gives an alternative execution.
*=
n
argv
else
46. Command to print to the screen
print
#
/
open()
47. subtract AND assignment operator
*truncate
n
-=
while
48. Symbol used to create comments
|
~
#
abs(a)
49. prints its parameter to the console
>=
assignment
format string
print()
50. exponentiation
a**b
|
Variables
<<
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