Python Practise 1

1.What’s the value of this Python expression: “big” > “small” ?

Answer:False

2.What is the elif keyword used for?

Answer:To handle more than two comparison cases.

3.Students in a class receive their grades as Pass/Fail. Scores of 60 or more (out of 100) mean that the grade is “Pass”. For lower scores, the grade is “Fail”. In addition, scores above 95 (not included) are graded as “Top Score”. Fill in this function so that it returns the proper grade.
def exam_grade(score):
	if score>95:
		grade = "Top Score"
	elif score>=60:
		grade = "Pass"
	else:
		grade = "Fail"
	return grade

print(exam_grade(65)) # Should be Pass
print(exam_grade(55)) # Should be Fail
print(exam_grade(60)) # Should be Pass
print(exam_grade(95)) # Should be Pass
print(exam_grade(100)) # Should be Top Score
print(exam_grade(0)) # Should be Fail

Answer:Pass

Fail

Pass

Pass

Top Score

Fail

Continue reading →

Networking 2

1.The rate at which a dial-up connection can send data across a telephone wire is known as a _____ rate.

Answer: boud

2.The more accurate name for a modem used for a DSL connection is a __.

Answer: DSLAM

3.FTTP stands for ___.

Answer: Fiber to the premises

4.A traditional wireless network involving access points that all have wired connections is known as a(n) ___.

Answer: WLAN

Continue reading →

Networking 1

Answer: 14400

2.Which technology is used as a demarcation point for fiber optics?

Answer: Optical Network Terminator

3.When it comes to wireless channels, which channels never overlap? Check all that apply.

Answer: 1,6,11

Continue reading →