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. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
Variables
and
*truncate
if
2. Prevents a runtime error from stopping the program.
len()
except
()
else
3. multiply AND assignment operator
&
*=
*readline
*
4. Symbol to add things together
pass
if
+
.py
5. exponentiation
-
<<
*readline
a**b
6. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
>
Variables
=
for
7. modulo
<
elif (Else if)
append()
a%b
8. A logical operator which returns a value of True if either of the conditions is true.
or
argv
for
*readline
9. turns an object into an integer
<
*write(stuff)
int()
&
10. adds an item to a list
a**b
append()
readline
is not
11. Function to empty the contents of a file - no recovery is possible
-=
raise
truncate
is
12. modulus AND assignment operator
if
%=
a%b
#
13. returns the length of a string (number of characters)
or
*=
abs(a)
len()
14. Greater than or equal symbol.
*truncate
>=
math.sqrt(a)
append()
15. turns an object into an integer
int()
-=
print
continue
16. unction to read one line of a file
argv
<<
readline
a**b
17. Greater than symbol
==
**=
>
|
18. floor division AND assignment operator
%s
//=
%d
=
19. Function to write something to a file
=
len()
write
argument variable
20. 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
<<
class
del
%d
21. Where the parameters go. A necessary punctuation after any function even if it's empty.
>>
-
()
*
22. ,multi-line comment hard-code,Fix (data or parameters) in a program in such a way that they cannot easily be altered by the user.
()
/
-
23. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.
/=
class
abs(a)
-
24. Empties the file - watch out if you care about the file.
print()
~
*truncate
break
25. This keyword in the body of a conditional - gives an alternative execution.
**=
else
a%b
argv
26. Modulus operator. It's the remainder after division
%
round()
int()
truncate
27. Symbol to subtract things from each other
:
open()
math.sqrt(a)
-
28. absolute value
*
*=
abs(a)
<<
29. single line comment
*
#
abs(a)
a%b
30. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
Variables
**=
>>
readline
31. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
&
open()
file.readline()
write
32. unction to read one line of a file
.py
readline
Variables
>=
33. square root
print()
math.sqrt(a)
=
34. Prints a string to the screen which is converted using repr()
elif (Else if)
*=
<
%r
35. absolute value
-=
abs(a)
%=
n
36. The keyword beginning a header that will create a new function.
%d
def
insert()
del
37. multiply AND assignment operator
&
*=
&
print()
38. Adds a new line character
+=
continue
n
<
39. A logical operator which negates an expression so that it returns a value of True if the expression is false.
>
%r
&
not
40. Prints a string to the screen which will be Unicode.
%s
pass
//=
del
41. Function to empty the contents of a file - no recovery is possible
//=
except
abs(a)
truncate
42. This statement causes an exception.
read
raise
write
()
43. The keyword beginning a header that will create a loop.
for
a//b
float
%=
44. asks the user for a response and returns that response
input()
close
argv
truncate
45. Symbol to add things together
a%b
#
%r
+
46. A logical operator which compares two operands and produces True if they are equal and False otherwise
**=
>>
==
&
47. Where the parameters go. A necessary punctuation after any function even if it's empty.
()
a//b
a**b
#
48. inserts an item inside a list at a certain index
insert()
<
Variables
read
49. Function to close a file - it will not be able to be used again unless the file is opened.
while
close
insert()
*read
50. add AND assignment operator
close
+=
==
/
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