0% found this document useful (0 votes)
54 views

CS 344: Internet Programming - II

This document contains a set of multiple choice questions about internet programming concepts like JavaScript, PHP, AJAX, XML. The questions cover topics such as JavaScript variables and syntax, PHP sessions and cookies, AJAX states, XML features, and more. There are over 20 questions in total to test knowledge of programming languages and technologies used for internet and web development.

Uploaded by

Devanand Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

CS 344: Internet Programming - II

This document contains a set of multiple choice questions about internet programming concepts like JavaScript, PHP, AJAX, XML. The questions cover topics such as JavaScript variables and syntax, PHP sessions and cookies, AJAX states, XML features, and more. There are over 20 questions in total to test knowledge of programming languages and technologies used for internet and web development.

Uploaded by

Devanand Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CS 344: Internet Programming - II

Question Answer1 Answer2 Answer3 Answer4 CorrectOption

What is default value of any variable in


0 undefined error NaN Answer2
Javascript?

in Javascript what will be the output of


4 2 plus 2 is 4 2 plus 2 is 2 + 2 2 plus 2 is 22 Answer4
document.write("2 plus 2 is" + 2 + 2);

What is the value of the variable tmp in the


Error Nothing is printed 0 NaN Answer4
javascript code : var tmp = Math.floor("f");

The Javascritp method which joins all


join() concat() connect() add() Answer1
elements of an array into a string is _______

Which of the following is not a popup box in


Alert Box Prompt Box Confirm Box Message Box Answer4
Javascript?

Which event occurs when the value of an


onclick onchanged onfocus onchange Answer4
element has been changed?

What is the correct Javascript syntax to print System.out.printl document.write("H response.write(


Printf("Hello World"); Answer3
Hello World? n("Hello World"); ello World"); Hello World");

In Javascript what is the correct syntax of <script <script name = <script src = None of the
Answer3
referring to an external script called "abc.js" href="abc.js"> "abc.ja"> "abc.js"> above

None of the
Javascript is interpreted by __________ Client Server Object Answer1
above

How many predefined variables does PHP


1 2 3 4 Answer2
use to authenticate a user?

Please note: This set of questions is prepared for practice. Sharing of these questions does not guarantee that questions will be
from this set only.
CS 344: Internet Programming - II

Question Answer1 Answer2 Answer3 Answer4 CorrectOption

Check whether a
Which one of the following is the very first Delete the Handle the
Start a new session valid session Answer3
task executed by a session enabled page? previous session session
exists
If session.use_cookie is set to 0, this results Nothing
Session Cookie URL rewriting Answer3
in use of happens

If the directive session.cookie_lifetime is set Browser is


3600 sec 3600 mins 3600 hrs Answer1
to 3600, the cookie will live until Restarted

Name, value, expire, patrh, httponly, domain,


session ( ) setcookie ( ) reset_cookie None of them Answer2
secure all of these are arguments of

PHP is not configured to transparently pass Both Answer1 &


GET argument POST argument Header argument Answer4
session IDs in the Answer2

Which function is used to erase all session


session_destroy() session_change() session_remove() session_unset() Answer4
variables stored in the current session?

which is the correct syntax of the declaration <xml <?xml version="1.0" <?xml . None of the
Answer3
which defines the XML version version="1.0" /> /> version="1.0"?> above

When a session ia active, PHP provides a


TRUE FALSE Answer1
special constant called SID

Which of the following made AJAX popular? IBM Microsoft Sun Micro System Google Answer4

How many ready states are available in


4 6 8 2 Answer1
AJAX?

Please note: This set of questions is prepared for practice. Sharing of these questions does not guarantee that questions will be
from this set only.
CS 344: Internet Programming - II

Question Answer1 Answer2 Answer3 Answer4 CorrectOption

Cascading Style
What are the technologies used by AJAX? XMLHttpRequest XHTML All the above Answer4
Sheets
It works as a It uses c++ as a It makes data
It works same with all
What makes AJAX unique? stand alone Web programming request Answer4
web browser
development language asynchronously
store persistent save user
create multipage
In PHP, Sessions allow you to user preference authentication All of the above Answer4
forms
on a site information from
Which of the following is JavaScript native
Array Number Date All of the above Answer4
object?
Used without
Referenced Referenced outside
Meaning of superglobal arrays is it can be declaring global All of the above Answer4
inside a function of function
first
Which one of the following is true about
Case Sensitive Custom Tags Dynamic All of the above Answer4
XML?

In PHP, if there is no error, then what will


TRUE FALSE EMPTY STRING 0 Answer3
the error() method return?

Please note: This set of questions is prepared for practice. Sharing of these questions does not guarantee that questions will be
from this set only.

You might also like