php test upwok answers

php test upwok answers

1. Which of the following will start a session?

Answers:

• session(start);
• session();
• session_start();
• login_sesion();



2. Which of the following is incorrect with respect to separating PHP code and HTML?

Answers:

• Use an MVC design pattern.
• As PHP is a scripting language, HTML and PHP cannot be separated.
• Use any PHP template engine e.g: smarty to keep the presentation separate from business logic.
• Create one script containing your (PHP) logic outputting XML and one script produce the XSL to translate the XML to views.

2. Which of the following will read an object into an array variable?

Answers:

• $array_variable = get_object_vars($object);
• $array_variable = (array)$object;
• $array_variable = array $object;
• $array_variable = get_object_vars $object;

upwork CSS3 Questions with Answers

upwork  CSS3 questions with Answers 
Question_01:

Which of the given options is/are equivalent to the following rule?
DIV { line-height: 1.2; font-size: 10pt }

a.            DIV { line-height: 1.2em; font-size: 10pt }
b.            DIV { line-height: 12em; font-size: 10pt }
c.             DIV { line-height: 120%; font-size: 10pt }
d.            DIV { line-height: 20%; font-size: 10pt }
e.            DIV { line-height: 80%; font-size: 10pt }

Answer:A,C

Question 2:
The sans-serif generic font-family is characterized by:

a.            finish strokes, flared or tapering ends, or actual serifed endings.
b.              stroke endings that are plain without any flaring, cross stroke, or other ornamentation.
c.             either join strokes or other cursive characteristics beyond those of italic typefaces.
d.            primarily decorate the characters while still containing their representations.

Answer:B