• 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 10

Document preview thumbnail
Preview 3 out of 29 pages

BSIT 5 – Programming and Application Development 10

Content preview

1. Which of the following is the most suitable definition of a function in

programming?

A. A function is a block of code that performs a specific task.

B. A function is used to store data.

C. A function is a sequence of statements that produce output.

D. A function is a method for creating variables.

Answer: A

Rationale: A function is a block of code that performs a specific task and can be

reused throughout the program.




2. What does CSS stand for?

A. Creative Style Sheets

B. Cascading Style Sheets

C. Computer Style Sheets

D. Color Style Sheets

Answer: B

,Rationale: CSS stands for Cascading Style Sheets, used for styling HTML

elements.




3. In JavaScript, which of the following is used to declare a constant?

A. const

B. constant

C. let

D. var

Answer: A

Rationale: The const keyword is used in JavaScript to declare a constant that

cannot be reassigned.




4. Which of the following is true about JavaScript?

A. JavaScript is a server-side language

B. JavaScript is used for database management

C. JavaScript can be used to manipulate HTML and CSS

D. JavaScript is used only for web servers

Answer: C

, Rationale: JavaScript can be used to manipulate HTML and CSS, enabling

dynamic web pages.




5. Which of the following is a type of sorting algorithm?

A. Bubble Sort

B. Linked List

C. Hash Map

D. Set

Answer: A

Rationale: Bubble Sort is a well-known sorting algorithm used to order elements in

a list or array.




6. Which of the following keywords is used to declare a method in Java?

A. method

B. function

C. void

D. public

Answer: C

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