WP (22 Jun)

WP (22 Jun)

1st - 5th Grade

9 Qs

quiz-placeholder

Similar activities

แบบทดสอบสำนักงานขั้นสูง1

แบบทดสอบสำนักงานขั้นสูง1

1st - 3rd Grade

10 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

Digcit 5-6

Digcit 5-6

5th - 6th Grade

10 Qs

HTML recap

HTML recap

KG - 4th Grade

14 Qs

Bài 5: Thực hành tổng hợp - lớp 5

Bài 5: Thực hành tổng hợp - lớp 5

5th Grade

10 Qs

Review PAT TIK kelas 5

Review PAT TIK kelas 5

5th Grade

10 Qs

L3 - B10

L3 - B10

3rd Grade

10 Qs

ToonApp

ToonApp

4th - 6th Grade

10 Qs

WP (22 Jun)

WP (22 Jun)

Assessment

Quiz

Computers

1st - 5th Grade

Practice Problem

Easy

Created by

Maneskin Rider

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

Discover more resources for Computers