HTML PHP C++

Quiz
•
Other
•
University
•
Medium
Intan Azmi
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 3 pts
In HTML, Set the max numbers of characters allowed in the input field to 40.
<input type="text" maxlength="40" >
<input type="40" maxlength="text" >
<input type="text" "maxlength"="40" >
<input type="text" maxlength="" >
2.
MULTIPLE CHOICE QUESTION
5 mins • 3 pts
Use the correct HTML attribute to make the link open in a new window.
<a href="html_images.asp" target="_blank" >HTML Images</a>
<a href="html_images.asp" target="blank" >HTML Images</a>
<br href="html_images.asp" target="_blank" >HTML Images</br>
<a link="html_images.asp" target="_blank" >HTML Images</a>
3.
MULTIPLE CHOICE QUESTION
5 mins • 3 pts
In the HTML form below, add two option elements to the drop down list.
The first option must have the value "Proton" The second option must have the value "Perodua".
<radio value="Proton">Proton</>
<radio value="Perodua">Perodua</>
<select value="Proton">Proton</>
<select value="Perodua">Perodua</>
<option value="Proton">Proton</>
<option value="Perodua">Perodua</>
<name value="Proton">Proton</>
<option name="Perodua">Perodua</>
4.
MULTIPLE CHOICE QUESTION
5 mins • 3 pts
Get the length of the string "Hello World!" in PHP.
echo ("Hello World!");
echo strlen("Hello World!");
echo strrev("Hello World!");
echo str_replace("Hello World!");
5.
MULTIPLE CHOICE QUESTION
5 mins • 3 pts
Use the correct comparison operator in PHP to check if $a is NOT equal to $b.
var_num($a != $b);
var_num($a == $b);
var_num($a x= $b);
var_num($a = $b);
6.
MULTIPLE CHOICE QUESTION
5 mins • 3 pts
Create a loop in PHP that runs from 0 to 9.
do ($i = 1; $i < 10; $i++) { echo $i; }
for ($i = 1; $i < 10; $i++) { echo $i; }
for ($i = 0; $i < 9; $i++) { echo $i; }
for ($i = 0; $i < 10; $i++) { echo $i; }
7.
MULTIPLE CHOICE QUESTION
5 mins • 3 pts
Use the correct keyword in C++ to get user input, stored in the variable y:
int x; cout << "Type a num: "; cin>> x;
int y; cout << "Type a num: "; cin>> y;
int y; cin<< "Type a num: "; cout>> y;
int x; cin<< "Type a num: "; cout>> x;
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
HTML Basics

Quiz
•
University
15 questions
Day - 3 Workshop quiz

Quiz
•
University
15 questions
PF Chapter 2 part 1

Quiz
•
University
14 questions
Week 3 Homework Review

Quiz
•
University
7 questions
Cấu trúc dữ liệu & Giải thuật 1

Quiz
•
University
15 questions
DEPTH DIVE

Quiz
•
University
11 questions
Junk Genius

Quiz
•
University
15 questions
Arrays

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University