2 Kofi is creating a table. He wants a cell to span two columns. Which attribute should he use? A rowspan="2" B colspan="2" C span="2" D merge="2"
3 Samir is designing a webpage. He wants to add a footer at the bottom with copyright information. Which HTML5 semantic tag should he use? A <footer> B <bottom> C <div id="footer"> D <foot>
4 Nora is building a website. She wants to add a dropdown list of countries. Which HTML element should she use? A <select> B <dropdown> C <list> D <input type="dropdown">
6 What is a dynamic website? A Website with fixed content B Website that never changes C Website that responds to user actions D Website without design
7 Iman is creating a webpage with a list of items. She wants the list to be numbered. Which HTML tag should Iman use to create an ordered list? A <ul> B <ol> C <li> D <dl>
8 What is the process of finding and fixing errors in a computer program's source code called? A Compiling B Executing C Styling D Debugging
9 Which combination is used to create a dynamic website? A HTML only B HTML and CSS C HTML, CSS, and JavaScript D CSS only
10 Chloe is debugging her JavaScript code. She wrote a function that is supposed to add two numbers and return the sum, but it always returns undefined. She checks her code and sees she forgot a keyword. Which keyword does Chloe need to add to return the value? A var B return C function D let
11 Aisha is creating a link that opens in a new tab. She knows she needs to add an attribute to the <a> tag. Which attribute should she use? A target="_blank" B target="_new" C newtab="true" D open="new"
13 Which HTML tag is used to link an external CSS file to an HTML document? A <script> B <link> C <style> D <css>
14 Sam is writing JavaScript. He wants to display the current date and time on the webpage. Which built-in JavaScript object should he use? A Date B Time C DateTime D Calendar
15 Julia is writing a JavaScript program. She wants to check if a number is even or odd. Which operator should she use to check for evenness? A % (modulo) B / (division) C * (multiplication) D - (subtraction)
16 Which HTML tag is used to define the most important heading on a webpage? A <h1> B <h6> C <head> D <p>
17 Diana is working with HTML lists. She wants to create a list where each item has a bullet point. Which list type should she use? A Ordered list B Unordered list C Definition list D Nested list
18 Qiao is writing HTML. She wants to add a hyperlink to Google. Which tag should she use? A <a href="https://www.google.com">Google</a> B <link href="https://www.google.com">Google</link> C <url href="https://www.google.com">Google</url> D <href="https://www.google.com">Google</href>
19 Xia is writing JavaScript. She wants to write a message to the console for debugging. Which method should she use? A console.log() B alert() C document.write() D prompt()
20 Priya is working on a website and wants to change the color of all links when the mouse hovers over them. Which CSS pseudo-class should she use? A :link B :visited C :hover D :active