• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 29 pages
Exam (elaborations)

BSIT 5 – Programming and Application Development 4

Document preview thumbnail
Preview 3 out of 29 pages

BSIT 5 – Programming and Application Development 4

Content preview

1. What does HTTP stand for?

A. HyperText Transmission Protocol

B. Hyper Transfer Text Protocol

C. HyperText Transport Protocol

D. HyperText Markup Protocol

Answer: A

Rationale: HTTP stands for HyperText Transfer Protocol, used for transferring

web pages on the internet.




2. What is the purpose of the return statement in a function?

A. To stop the function

B. To execute the next statement

C. To return a value from the function

D. To declare a variable

Answer: C

,Rationale: The return statement is used to send a value back from a function to the

caller.




3. Which of the following is a feature of Object-Oriented Programming?

A. Functions

B. Inheritance

C. Loops

D. Arrays

Answer: B

Rationale: Inheritance is one of the key features of OOP, allowing one class to

inherit properties and methods from another.




4. What type of error is raised when Python encounters a syntax mistake?

A. Runtime Error

B. Logic Error

C. Syntax Error

D. Name Error

Answer: C

, Rationale: A Syntax Error occurs when Python encounters code that doesn't

conform to the syntax rules.




5. What is the output of the following code in Python?

python

Copy

print(9 // 4)

A. 2

B. 2.25

C. 3

D. 4

Answer: A

Rationale: The // operator performs floor division, which returns the quotient

without the decimal part.




6. Which of the following is the correct syntax to define a class in Python?

A. class MyClass()

B. class MyClass:

Document information

Uploaded on
March 17, 2025
Number of pages
29
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
douglasmugwe82
5.0
(1)
Sold
2
Followers
0
Items
4215
Last sold
1 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions