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
abs(a)
%s
/
>>
2. Function to open or read a file
open()
round()
|
//=
3. Symbol to add things together
-
+
continue
<<
4. This keyword in the body of a conditional allows chained conditionals.
:
raise
elif (Else if)
else
5. turns an object into a string
a%b
-=
int()
str()
6. Less than symbol
if
def
<
math.sqrt(a)
7. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
print
#
floating point number
int
8. deletes an item from a list
del
or
float
else
9. 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
^
def
/=
not
10. 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
<<
truncate
read
11. turns an object into a string
%=
continue
/=
str()
12. Symbol to subtract things from each other
=
read
else
-
13. The keyword beginning a header that will create a loop.
for
abs(a)
continue
=
14. This keyword begins a header for a body that repeats until the condition is no longer true.
if
not
+=
while
15. Symbol to subtract things from each other
*
-
str()
round()
16. Prints a string to the screen which will be Unicode.
%s
for
^
//=
17. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
Variables
//=
#
argument variable
18. A built-in function that converts integers and strings to floating-point numbers.
float
not in
%r
def
19. writes stuff to the file
file.write(stuff)
~
*write(stuff)
()
20. square root
math.sqrt(a)
/
else
open()
21. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
|
**=
>
=
22. 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.
*=
not in
#
truncate
23. empties the file
<<
print
*truncate
file.truncate()
24. This keyword begins the simplest form of a conditional statement.
%=
==
%d
if
25. A logical operator which negates an expression so that it returns a value of True if the expression is false.
not
%=
>=
/=
26. An operator that removes a value from a list.
=
del
file.readline()
=
27. Function to write something to a file
else
write
-
|
28. End header line.
n
float
>=
:
29. The extension for Python scripts
<<
try
n
.py
30. Prevents a runtime error from stopping the program.
del
#
except
del
31. sets the file's current position
open()
file.seek()
abs(a)
*write(stuff)
32. This keyword in the body of a conditional - gives an alternative execution.
int()
else
float
str
33. Greater than symbol
int()
**=
>
is not
34. Adds a new line character
int()
in
n
else
35. floor division
Variables
def
%d
a//b
36. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.
class
/
argv
<
37. prints its parameter to the console
in
not
print()
<
38. returns the length of a string (number of characters)
len()
<=
*
in
39. The keyword beginning a header that will create a new function.
%
write
def
40. divide AND assignment operator
pass
==
/=
^
41. Reads just one line of a text file.
#
len()
#
*readline
42. An operator to check whether two variables refer to the same object.
insert()
a**b
is
/
43. single line comment
*=
*
=
#
44. Function to read the contents of a file
int()
is
read
argv
45. modulus AND assignment operator
argument variable
==
not in
%=
46. Command to print to the screen
assignment
print
==
/=
47. exponentiation
^
#
a**b
break
48. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
readline
-=
:
~
49. modulus AND assignment operator
a//b
==
%=
%d
50. Function to read the contents of a file
=
read
str
&
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