FBISE, NCP & NBF-aligned resources for Classes 9–12

/20

Computer Chapter 3 : Test # 5

1 / 20

A beginner creates a variable named 7marks and discovers that the program does not accept it. The issue is related to JavaScript naming rules rather than program logic. Which rule has been violated?

2 / 20

A programmer creates two variables named reward and Reward and expects them to store the same value. However, the program treats them separately and produces unexpected results. Why does this happen?

3 / 20

A school reward system needs to determine how many points remain after dividing a student's score by 10. The programmer is interested only in the leftover amount rather than the quotient. Which operator should be used?

4 / 20

A program runs without displaying any syntax warnings or runtime crashes, yet it calculates incorrect examination results because the formula used by the programmer is wrong. What type of error is this?

5 / 20

A developer places markers at specific lines in a program so that execution pauses automatically during debugging. This allows variables and program flow to be inspected carefully before continuing. What are these markers called?

6 / 20

A school is redesigning its website and wants a welcome video to start automatically whenever visitors open the homepage. The video should continue playing repeatedly without requiring any user interaction and should not produce sound that may disturb users. Which HTML attribute ensures automatic playback?

7 / 20

A web developer embeds a promotional video on a webpage. To prevent browsers from blocking automatic playback and to avoid disturbing users, the video should start silently when the page opens. Which attribute should be included?

8 / 20

A student wants an educational video on a webpage to play continuously during a presentation. After reaching the end, the video should immediately restart without requiring the audience to click any button. Which attribute provides this functionality?

9 / 20

Before uploading a large video file to a website, a developer compresses it while maintaining acceptable quality. The goal is to reduce loading time and improve visitor experience. Why is this optimization step important?

10 / 20

A school wants to publish examination results online in a structured format where students can easily compare names, roll numbers, and marks across multiple subjects. Which HTML element serves as the main structure for organizing this information?