1 Lab Report For PHBY

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Q1: Which function is used to Strip whitespace (or other characters) from the beginning and

end of a string??

a None

b None

c strip_str

d trim_str

e strip

f trim

Q2: Which of the following is true about HTML 5??

a HTML5 is the next major revision of the HTML standard superseding HTML 4.01,
XHTML 1.0, and XHTML 1.1.

b None

c HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the
Web Hypertext Application Technology Working Group (WHATWG).

d All of These

e None

f HTML5 is a standard for structuring and presenting content on the World Wide
Web

Q3: Which of the following are true for Controllers in Laravel??

a A controller is the "C" in the "MVC" (Model-View-Controller) architecture, which is


what Laravel is based on.

b None

c Controllers are stored in the app/Http/Controllers directory.

d None

e You should avoid using controllers as it is considered bad practice.


f Controllers can group related request handling logic into a single class.

Q4: Which Element Represents A Control For Generating A Public-private Key Pair??

a Keygen

b Key

c Ins

d None

e Command

f None

Q5: Which of the following input control represents a date and time (year, month, day, hour,
minute, second, fractions of a second) encoded according to ISO 8601 with the time zone set
to UTC in Web Form 2.0??

a month

b datetime

c datetime-local

d None

e date

f None

Q6: Which of the following type of variables are whole numbers, without a decimal point,
like 4195??

The correct Answer is: None

b Booleans

c Integers

d Doubles

The correct Answer is: None


f Strings

Q7: What is the correct HTML for making a hyperlink??

a <a name="http://mcqsets.com">MCQ Sets Quiz</a>

b None

c <a href="http://mcqsets.com">MCQ Sets Quiz</a>

d url="http://mcqsets.com">MCQ Sets Quiz

e None

f <http://mcqsets.com</a>

Q8: Gif and Jpg are the two main types of what ??

a Images

b None

c Animated Effects

d Videos

e None

f None Of The Above

Q9: Which command is used to create an empty file.?

a mtfile

b None

c touch

d mkfile

e None

f file

Q10: How do you write the contents of 3 files into a single file??
a cat file1 > file && cat file2 >> file && cat file3 >> file

b cat file1 >> file; cat file2 >> file; cat file3 >> file

c cat file1 > file && cat file2 > file && cat file3 > file

d cat file1 > file; cat file2 > file; cat file3 > file

e cat file1 file2 file3 > file

f cat file1 > file || cat file2 > file || cat file3 > file

Q11: What is a WordPress taxonomy??

a None

b In WordPress, a “taxonomy” is a grouping mechanism for some plugins .

c In WordPress, a “taxonomy” is a grouping mechanism for some pages .

d In WordPress, a “taxonomy” is a grouping mechanism for some posts (or links or


custom post types).

e None

f None

Q12: How does a FOR loop start??

a for (i <= 5; i++)

b None

c for (i = 0; i <= 5)

d None

e for i = 1 to 5

f for (i = 0; i <= 5; i++)

You might also like