Web Technologies Fundamentals
A quiz covering fundamental web technologies including JavaScript, HTML, Java Servlets, JSP, and PHP scripting
Questions
Question 1 Multiple Choice (Single Answer)
A script is a
- Program or sequence of instructions that is interpreted or carried out by processor directly
- Program or sequence of instruction that is interpreted or carried out by another program
- Program or sequence of instruction that is interpreted or carried out by web server only
- None of above
Question 2 Multiple Choice (Single Answer)
When compared to the compiled program, scripts run
- Faster
- Slower
- The execution speed is similar
- All of above
Question 3 Multiple Choice (Single Answer)
- PHP is a widely used ……………. scripting language that is especially suited for web development and can be embedded into html
- Open source general purpose
- Proprietary general purpose
- Open source special purpose
- Proprietary special purpose
Question 4 Multiple Choice (Single Answer)
Which of the following is not true?
- PHP can be used to develop web applications
- PHP makes a website dynamic.
- PHP applications can not be compiled.
- PHP can not be embedded into html.
Question 5 Multiple Choice (Single Answer)
The most portable version of PHP tag that is compatible to embed in XML or XHTML too is:
- <? ?>
- <script language=”php”> </script>
- <% %>
- <?php ?>
Question 6 Multiple Choice (Single Answer)
Which of the following variables is not a predefined variable?
- $get
- $ask
- $request
- $post
Question 7 Multiple Choice (Single Answer)
You can define a constant by using the define() function. Once a constant is defined
- It can never be changed or undefined
- It can never be changed but can be undefined
- It can be changed but can not be undefined
- It can be changed and can be undefined
Question 8 Multiple Choice (Single Answer)
The following piece of script will output: <? $email=’[email protected]’; $new=strstr($email, ‘@’ print $new; ?>
- admin
- admin@psexam
- @psexam.com
- psexam.com
Question 9 Multiple Choice (Single Answer)
- Which of the following function returns the number of characters in a string variable?
- count($variable)
- len($variable)
- strcount($variable)
- strlen($variable)
Question 10 Multiple Choice (Single Answer)
- When you need to obtain the ASCII value of a character which of the following function you apply in PHP?
- chr( );
- asc( );
- ord( );
- val( );
Question 11 Multiple Choice (Multiple Answers)
Which are the JSP scripting elements below?
- Declarations
- Scriptlets
- Expressions
- Include
Question 12 Multiple Choice (Single Answer)
How many JSP scripting elements are there?
- 5
- 3
- 4
- 2
Question 13 Multiple Choice (Single Answer)
Fullform of a JSP ?
- Java servlet paper
- Java server Paper
- Java Server Pages
- None
Question 14 Multiple Choice (Multiple Answers)
What are the common mechanisms used for session tracking?
- Cookies
- URL- rewriting
- sessions
- SSL sessions
Question 15 Multiple Choice (Multiple Answers)
Explain the life cycle methods of a Servlet?
- init(ServletConfig config)
- service( ServletRequest req, ServletResponse res)
- destroy( ServletRequest req, ServletResponse res)
- destroy()
Question 16 True/False
A doGet() method is limited with 2k of data to be sent?
- True
- False
Question 17 Multiple Choice (Single Answer)
Inside which HTML element do we put the JavaScript?
- <js>
- <javascript>
- <script>
- <scripting>
Question 18 Multiple Choice (Single Answer)
What is the correct JavaScript syntax to write "Hello World"?
- "Hello World"
- document.write("Hello World")
- response.write("Hello World")
- ("Hello World")