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. unction to read one line of a file
for
:
readline
%r
2. Function to empty the contents of a file - no recovery is possible
readline
==
print()
truncate
3. Function to write something to a file
>
write
a**b
+
4. Reads just one line of a text file.
break
*readline
close
^
5. prints its parameter to the console
()
*readline
print()
/=
6. A statement that assigns a value to a variable.
assignment
a//b
raise
%=
7. Symbol to divide by the number to the right of the symbol
+
.py
/
*read
8. modulo
-
except
%r
a%b
9. The keyword beginning a header that will create a new function.
def
file.truncate()
<<
-
10. unction to read one line of a file
print
readline
del
len()
11. modulus AND assignment operator
%=
%d
+=
str()
12. subtract AND assignment operator
==
and
-=
input()
13. Adds something to a variable
Variables
+
#
=
14. floor division
def
else
len()
a//b
15. Evaluates to false if the variables on either side of the operator point to the same object and true otherwise. x is not y - here is not results in 1 if id(x) is not equal to id(y).
float
break
>=
is not
16. deletes an item from a list
argument variable
close
write
del
17. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
*truncate
%r
~
open()
18. exponentiation
and
file.readline()
-
a**b
19. asks the user for a response and returns that response
elif (Else if)
input()
%r
read
20. A built-in function that converts integers and strings to floating-point numbers.
<=
a%b
float
def
21. exponentiation
a**b
+
**=
if
22. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
.py
in
*=
round()
23. An operator that removes a value from a list.
del
^
Variables
open()
24. Symbol used to create comments
#
abs(a)
file.seek()
**=
25. The keyword beginning a header that will create a loop.
a//b
<=
<<
for
26. Less than or equal to symbol
<=
del
/
=
27. 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
is not
^
=
<<
28. Reads the contents of the file you can assign the result to a variable.
*read
break
<
^
29. Function to open or read a file
is not
while
int()
open()
30. modulus AND assignment operator
argv
*read
input()
%=
31. adds an item to a list
append()
=
def
&
32. A logical operator which requires two expressions to both be true.
=
and
%d
/=
33. A data type for representing numbers with fractional values.
read
for
=
floating point number
34. Create a variable.
%r
file.seek()
=
abs(a)
35. assignment operator
*=
|
/
=
36. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
&
return
for
*readline
37. Less than or equal to symbol
:
<=
for
argv
38. exponent AND assignment operator
**=
truncate
raise
print
39. floor division AND assignment operator
del
abs(a)
break
//=
40. 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.
elif (Else if)
in
del
print()
41. assignment operator
not in
round()
=
del
42. A logical operator which compares two operands and produces True if they are equal and False otherwise
else
|
==
-
43. empties the file
del
input()
file.truncate()
*
44. An operator to check whether two variables refer to the same object.
*=
is
/=
%r
45. A statement that breaks out of a loop.
/=
break
len()
*write(stuff)
46. The keyword beginning a header that will create a new function.
**=
def
file.write(stuff)
^
47. Prints a string to the screen which will be Unicode.
write
continue
%s
~
48. 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
//=
return
^
*truncate
49. A statement that ends the current iteration of a loop but continues looping.
del
read
for
continue
50. Function to close a file - it will not be able to be used again unless the file is opened.
append()
close
else
read
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