JavaScript, AJAX, and Unix Commands Quiz
A mixed quiz covering JavaScript programming, AJAX development, and Unix/Linux commands including VI editor usage
Questions
Purpose of the command ZZ in VI Editor?
- to exit, if changes are not made to the file.
- forced quit, it will discard the changes and quit.
- save and Exit.
- forces over writes.
I have set the variable dateString to the following format [export dateString=date -u +%Y%m%d]. What would be Output when I echo $dateString?
- YYYYMONDD
- MMDDYYYY
- YYYYMMDD
- YYYYDDMM
Need to change from Source to target Directory. Please select the best option : Source Directory : /cmdev/csb_cussat/201106/hpux Target Directory : /cmdev/csb_cussat/201109/hpux
- $cd 201109 201106
- $cd 201106 201109
- $cd /cmdev/csb_cussat/201106/hpux
- None of the above.
In VI Editor Input Mode- what’s the command to place the insertion point after the current character?
- a – Append.
- i – insert.
- o – open mode.
- R – replace.
What’s the Command in VI Editor to take you to the End of the Line?
- b
- h
- $
- W
Command in VI Editor to paste the copied lines from buffer to the line below?
- u
- yy
- x
- p
Main Feature of AJAX:
- Reloads the Whole Page and take less time.
- Reloads only the necessary changes on the Current Page and takes less time.
- Both
- None of the above.
Purpose of the Assignment Operator “^=” in JavaScript?
- Assigns the value of the Second Operand to the first Operand.
- Subtracts 2 operands and assigns the result to the first operand.
- Performs a bitwise exclusive OR operation on 2 operands and assigns the result to the first operand.
- Performs a bitwise OR operation on 2 operands and assigns the result to the first operand.
AJAX Libraries Used :
- JQuery.
- DOJO.
- Both a and b.
- None of the above.
Features of JQuery used in developing AJAX Application?
- CSS manipulation.
- DOM Traversal and modification.
- Both a and b
- None of the above.
When the browser returns the HTTP Status Code 407 – What it indicates?
- Bad Request
- Unauthorized
- Request Timeout
- Proxy Authentication Required
Inner Functions allowed in JavaScript?
- True
- False
What’s the function of send() method in XMLHttpRequest Object?
- Opens a Request to the server.
- Returns the value of an HTTP header.
- Aborts the HTTP Request.
- None of the above.
What’s the function of setRequestHeader() method in XMLHttpRequest Object ?
- Sends an HTTP request to the server.
- Returns all of the HTTP headers.
- Sets the name and value of an HTTP Header.
- Opens a request to the server.
AJAX uses --------------- for information Exchange?
- JavaScript
- XML
- MQ
- Java
What is the purpose of the 3rd argument in the below command : xmlhttp.open("POST", url, true)
- Append the contents of the Text file.
- Append the contents of the XML File.
- Data will be processed asynchronously.
- Data will be process Synchronously.
What’s the property to get the return value from Server in JavaScript?
- xmlHttp.responseBody
- xmlHttp.readyState.
- xmlHttp.statusText.
- xmlHttp.responseText.
How to create an Array in JavaScript?
- Var x = new Array(50);
- Var x = new Array[50];
- Var x = Array(50);
- Var x = Array[50];
Does JavaScript Function allow to return value ?
- True
- False
Using JavaScript Fucntion need to set Date to 5 days into the Future. Select the Correction option?
- Var myDate = new Date(); myDate.setDate(myDate.getDate()+5);
- Var myDate = new Date(); myDate.setDate(myDate.getDate()-5);
- Var myDate = new Date(); myDate.setDate(5);
- None of the above.