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. square root
math.sqrt(a)
()
readline
and
2. A logical operator which compares two operands and produces True if they are equal and False otherwise
%d
%r
==
+=
3. This keyword begins the simplest form of a conditional statement.
<=
int()
if
del
4. exponentiation
/=
for
a**b
*=
5. Adds something to a variable
%r
%=
if
=
6. 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
^
math.sqrt(a)
|
==
7. prints its parameter to the console
~
print()
str()
input()
8. A statement that breaks out of a loop.
.py
^
break
*=
9. modulo
*truncate
/=
read
a%b
10. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
*readline
close
format string
def
11. absolute value
abs(a)
Variables
argv
**=
12. divide AND assignment operator
append()
/=
while
print
13. A data type for representing numbers with fractional values.
input()
in
==
floating point number
14. inserts an item inside a list at a certain index
insert()
%d
open()
int
15. This variable holds the arguments you pass to your Python script when you run it. Then you unpack it in your script so you have variables you can work with.
round()
*
print
argument variable
16. exponent AND assignment operator
**=
file.write(stuff)
or
close
17. add AND assignment operator
+=
truncate
%=
math.sqrt(a)
18. 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
append()
#
19. Greater than symbol
()
>
%d
&
20. turns an object into an integer
a//b
Variables
int()
for
21. unction to read one line of a file
file.seek()
.py
#
readline
22. Symbol to divide by the number to the right of the symbol
<
in
/
argv
23. Create a variable.
=
abs(a)
while
write
24. The extension for Python scripts
#
.py
:
>>
25. The keyword beginning a header that will create a loop.
>=
for
file.seek()
%
26. Prints a string to the screen which will be Unicode.
%s
~
abs(a)
len()
27. prints its parameter to the console
print()
insert()
truncate
a%b
28. deletes an item from a list
del
+=
argument variable
29. Turns a line into a comment instead of executable code.
#
<=
+=
insert()
30. Where the parameters go. A necessary punctuation after any function even if it's empty.
%r
in
>>
()
31. exponent AND assignment operator
int()
**=
+=
while
32. Function to empty the contents of a file - no recovery is possible
open()
-=
truncate
if
33. Prints a string to the screen which is converted using repr()
raise
=
%r
in
34. sets the file's current position
str()
/
file.seek()
readline
35. inserts an item inside a list at a certain index
|
insert()
//=
*readline
36. Symbol to multiply things
*
input()
break
&
37. A built-in function that converts integers and strings to floating-point numbers.
break
float
and
n
38. Modulus operator. It's the remainder after division
#
%
break
&
39. The keyword beginning a header that will create a new function.
open()
=
def
/=
40. Reads the contents of the file you can assign the result to a variable.
*read
argument variable
%s
and
41. asks the user for a response and returns that response
del
input()
%s
def
42. Function to open or read a file
<=
~
else
open()
43. An operator to check whether two variables refer to the same object.
a//b
is
:
=
44. absolute value
len()
abs(a)
def
open()
45. Command to print to the screen
%r
print
%=
close
46. exponentiation
str()
a**b
#
print()
47. This keyword begins a header for a body that repeats until the condition is no longer true.
readline
else
print()
while
48. floor division
abs(a)
open()
*write(stuff)
a//b
49. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
~
write
|
def
50. Adds a new line character
+=
input()
n
/=
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