WP (22 Jun)

WP (22 Jun)

1st - 5th Grade

9 Qs

quiz-placeholder

Similar activities

Ruang komen dalam HTML

Ruang komen dalam HTML

1st Grade

7 Qs

Making your own Webpage

Making your own Webpage

5th Grade

10 Qs

Y8 HTML Intro

Y8 HTML Intro

4th - 5th Grade

10 Qs

Информатика 11 сынып HTML

Информатика 11 сынып HTML

1st - 12th Grade

10 Qs

Tag dalam HTML

Tag dalam HTML

1st Grade

11 Qs

Знайомство з HTML

Знайомство з HTML

1st - 4th Grade

10 Qs

Pagini WEB

Pagini WEB

1st - 5th Grade

9 Qs

WP (22 Jun)

WP (22 Jun)

Assessment

Quiz

Computers

1st - 5th Grade

Easy

Created by

Maneskin Rider

Used 1+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. CSS stands for _____.

A. Custom Style Sheet

B. Cascading Style Sheet

C. Character Style Sheet

D. Content Style Sheet

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Which HTML tag produces the biggest heading?

A. <HEADER>

B. <h3>

C. <h2>

D. <h1>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. Which input control is better suited for allowing users to make single selections?

A. radio button

B. textarea

C checkbox

D image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4 Which input control is designed to allow users to enter secure information in a way that keeps others from seeing what's typed?

A. text

B. textarea

C. url

D. password

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Current version of HTML is _______?

A HTML 4

B HTML 5

C HTML 4.1

Konek Irfan

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. PHP is a _________.

A. Server side scripting language

B Client side scripting language

C Database programming language

D None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Javascript is a _______

A Server side scripting language

B Client side scripting language

C Database programming language

D None of the above

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

8 Which input control is better suited for allowing users to make multiple selections?

A radio buton

B textarea

C checkbox

D button

9.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the output of the following PHP code segment?
<?php $current=2022;
for($i=$current;$i>2000;$i--)
{ if($i == 2015) break;
if($i == 2019)
continue;
echo 'Current year is: '.$i.'<br>';
}
?>

Evaluate responses using AI:

OFF

Answer explanation

Current year is: 2022
Current year is: 2021
Current year is: 2020
Current year is: 2018
Current year is: 2017
Current year is: 2016


The code starts with the current year set as 2022. It then enters a for loop that iterates from the current year ($i = $current) to the year 2000 ($i > 2000). Inside the loop, there are conditional statements.

  • When $i is equal to 2015, the break statement is encountered, which terminates the loop completely.

  • When $i is equal to 2019, the continue statement is encountered, which skips the current iteration and moves on to the next iteration of the loop.

  • For all other years within the loop range, the echo statement is executed, printing the message "Current year is: " followed by the value of $i, and then a line break <br>.

Therefore, the output skips the year 2015 due to the break statement and skips the year 2019 due to the continue statement, while printing the remaining years from 2022 to 2016.