Sir Basit Notes

Computer Science Class 10 Unit 3: Programming Fundamentals MCQs

65 multiple choice questions with the correct answer for each. Tap an option to check yourself, or switch on "Show all answers". This is page 1 of 2.

⬇ Download these MCQs (PDF) (49 KB)All Computer Science chapters
Tap an option to check your answer.

1. Website development is split into two segments:

Answer: A. front-end and back-end

2. Front-end development is also called

Answer: B. client-side

3. Back-end development is also called

Answer: C. server-side

4. Languages used for front-end development are

Answer: D. HTML, CSS and JavaScript

5. Languages commonly used for back-end development include

Answer: A. Ruby, Python and PHP

6. Which of the following is primarily associated with front-end development?

Answer: D. User interface and design

7. Back-end developers take care of

Answer: C. databases and server logic

8. When a customer places an order, the order information goes from

Answer: B. front-end to back-end

9. Responsive design adjusts a website's layout to

Answer: A. different screen sizes

10. Responsive design scales items using

Answer: B. percentages rather than fixed pixel values

11. To take an email address in a form, the required attribute is

Answer: C. type="email"

12. A radio button allows the user to choose

Answer: D. only one option from a list

13. Radio buttons are best for

Answer: C. mutually exclusive choices such as gender

14. Checkboxes allow users to select

Answer: B. multiple choices from a group

15. The input type used to create a drop-down list uses the tag

Answer: A. <select>

16. The attribute that tells a form where to send the data is

Answer: D. action

17. The attribute that states the way of submitting form data (e.g. post) is

Answer: D. method

18. The input type that takes a selected date is

Answer: C. date

19. A large box to write details such as the reason for a visit is created with

Answer: B. <textarea>

20. The input type that clears all fields of a form is

Answer: A. reset

21. The input type that sends form information to a server is

Answer: D. submit

22. The tag that marks the beginning and end of a table is

Answer: C. <table>

23. The tag that creates a row in a table is

Answer: B. <tr>

24. The tag for a table's header cell (bold and centred) is

Answer: A. <th>

25. The tag for an ordinary table data cell is

Answer: B. <td>

26. The tag that adds a heading or description to a table is

Answer: D. <caption>

27. The attributes that make a cell span several columns or rows are

Answer: C. colspan and rowspan

28. The CSS property that determines the link between borders of neighbouring cells is

Answer: A. border-collapse

29. Setting border-collapse to "collapse" makes borders

Answer: C. combine into a single line

30. The distance between a cell's border and its content is called

Answer: D. padding

31. The space among borders of neighbouring cells is known as

Answer: B. cell spacing

32. An element's style during an animation is specified by

Answer: A. @keyframes

33. In @keyframes, each frame's position is given as a

Answer: C. percentage from 0% to 100%

34. The CSS property used to apply an animation is

Answer: B. animation

35. The <div> tag is used to

Answer: D. group and style other elements as a single unit

36. Without JavaScript, a webpage content update needs

Answer: A. a page refresh

37. JavaScript is used to add ______ to webpages.

Answer: B. interactivity

38. Conventional websites made with only HTML and CSS are

Answer: D. static

39. The index of the first element in a JavaScript array is

Answer: A. 0

40. To access the third element of myArray, use

Answer: C. myArray[2]

41. A JavaScript array can store

Answer: C. different types of data in one array

42. The method that adds an item to the end of an array is

Answer: B. push()

43. The method that removes an item from the end of an array is

Answer: A. pop()

44. The property that gives the number of items in an array is

Answer: D. length

45. indexOf() in an array

Answer: C. returns the index of a given element

46. concat() is used to

Answer: B. merge two arrays

47. slice(2, 4) on [3,5,7,9] returns

Answer: A. [7, 9]

48. oddNumbers = [3,5,7,9]; after oddNumbers.push(11), oddNumbers.indexOf(11) returns

Answer: D. 4

49. The sum of the first 10 positive integers is

Answer: C. 55

50. document.getElementById("id") is used to

Answer: A. access an HTML element by its ID

About Computer Science Class 10 Unit 3 MCQs (Federal Board)

These 65 Computer Science MCQs cover Class 10 Unit 3: Programming Fundamentals of the Federal Board (FBISE) SSC-II (Class 10) syllabus. They are SLO-based MCQs as per the new pattern for FBISE exams. Each question has four options and the correct answer is shown, so you can practise for the annual examination and find the topics you still need to revise. The questions are split over 2 pages of 50. Download the Programming Fundamentals MCQs as a PDF using the button at the top of this page.