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. exponentiation
*write(stuff)
=
a**b
abs(a)
2. square root
truncate
>=
math.sqrt(a)
str()
3. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
close
&
-=
return
4. This keyword in the body of a conditional allows chained conditionals.
elif (Else if)
n
<
pass
5. This keyword begins the simplest form of a conditional statement.
del
len()
is
if
6. A logical operator which returns a value of True if either of the conditions is true.
format string
or
#
7. Evaluates to true if it finds a variable in the specified sequence and false otherwise. x in y - here in results in a 1 if x is a member of sequence y.
in
**=
=
try
8. The keyword beginning a header that will create a new function.
a**b
def
:
append()
9. The extension for Python scripts
def
.py
pass
not in
10. This keyword begins a header for a body that repeats until the condition is no longer true.
abs(a)
file.readline()
>
while
11. Writes stuff to the file.
%
*write(stuff)
*
<=
12. A logical operator which requires two expressions to both be true.
raise
+
()
and
13. prints its parameter to the console
/=
argv
str
print()
14. 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(stuff)
/
>>
len()
15. Prints a string to the screen which will be Unicode.
file.truncate()
%s
abs(a)
<
16. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
<=
argv
int()
Variables
17. Function to write something to a file
read
del
write
:
18. asks the user for a response and returns that response
input()
%s
close
del
19. adds an item to a list
append()
str()
truncate
**=
20. Less than symbol
<
n
>>
print()
21. An operator to check whether two variables refer to the same object.
readline
/
is
if
22. exponentiation
input()
%s
a**b
<<
23. deletes an item from a list
file.seek()
<=
a%b
del
24. A logical operator which compares two operands and produces True if they are equal and False otherwise
a**b
==
%r
//=
25. The keyword beginning a header that will create a loop.
a**b
//=
round()
for
26. subtract AND assignment operator
-=
%r
a**b
a//b
27. Symbol to subtract things from each other
del
%=
.py
-
28. A statement that ends the current iteration of a loop but continues looping.
while
or
continue
str
29. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
and
-=
in
len()
30. sets the file's current position
continue
not in
<
file.seek()
31. Where the parameters go. A necessary punctuation after any function even if it's empty.
readline
()
else
append()
32. Symbol to multiply things
del
*
<<
argument variable
33. Turns a line into a comment instead of executable code.
n
not
#
%
34. Function to close a file - it will not be able to be used again unless the file is opened.
close
open()
int
=
35. modulus AND assignment operator
int()
%=
-
*
36. This statement exits a function. The remaining lines of the function are not executed.
while
%r
return
input()
37. returns the length of a string (number of characters)
+
-=
len()
file.truncate()
38. Prints a string to the screen which is a signed decimal.
n
%d
.py
~
39. This keyword in the body of a conditional - gives an alternative execution.
print()
append()
.py
else
40. absolute value
close
open()
abs(a)
insert()
41. A built-in function that converts its argument to a string.
file.seek()
str
<
write
42. unction to read one line of a file
+=
#
/
readline
43. Reads the contents of the file you can assign the result to a variable.
str
*read
>=
**=
44. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
int
is not
#
or
45. Argument variable
and
break
argv
or
46. End header line.
:
truncate
def
str()
47. multiply AND assignment operator
return
truncate
def
*=
48. Symbol to add things together
+
%d
close
str()
49. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
//=
=
|
for
50. empties the file
<=
assignment
file.truncate()
math.sqrt(a)
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