Post-Quiz - Attempt Reviewjavascript
Post-Quiz - Attempt Reviewjavascript
Sweta Umrao .
Dashboard /
Web Technology /
Java Script /
Post-Quiz
Question Choose the correct JavaScript statement which helps you to write "World of JavaScript" in a web page?
1
64304
Select one:
Correct
response.write("World of JavaScript")
Mark 1.00 out of
1.00
System.out.println("World of JavaScript")
document.write("World of JavaScript")
Question Ram is the developer of Allen Software company. He is designing the website for the banking application. There is a button
2
Correct 64304
called 'check interest rates'. When that button is clicked, the user has to be redirected to a seperate page to show the domestic
interest rates. Help Ram in accomplishing this task using the javascript.
window. reload
window.location
url.newlocation
64304
The correct answer is: window.location
https://accenturelearning.tekstac.com/2021/mod/quiz/review.php?attempt=4340201&cmid=1281 1/3
9/9/21, 2:32 AM Post-Quiz: Attempt review
Sweta Umrao .
</script>
</head>
</html>
Select one:
7,0,%,3,0,%
64304
p,a,s,s, ,%, ,f,a,i,l, ,%
7,0,3,0
7,0,%, ,3,0,%
Question Polson is allocated with the task of email validation in java script. He needs to extract character by character
4 and check for email validation like looking for @ . etc. Which method is best suited to extract every character from the text?
64304
Correct
charAt()
getCharAt()
Question
64304
Which of the below is the correct syntax for exectuing some code if "amt" is equal to 5000?
5
Select one:
Correct
if (amt = 5000)
https://accenturelearning.tekstac.com/2021/mod/quiz/review.php?attempt=4340201&cmid=1281 2/3
9/9/21, 2:32 AM Post-Quiz: Attempt review
Sweta Umrao .
Question The parseInt() method converts the string to a integer. Before applying this function, Ram wants to know the type of the
6 argument that is passed to the function. Which operator in javascript would support this ?
Correct
isofType
typeof
getType
Question Sita wishes to greet the user when the user clicks on "Greet Me" button. In which event does she need to write the javascript
7
64304
code for greeting the user?
Correct
Select one:
Mark 1.00 out of
1.00 onchange
onmouseover
onmouseclick
onclick
Question
8
64304
What is the output of the below code snippet
<script type="text/javascript">
Correct
amt=55+"55";
Mark 1.00 out of
1.00 document.write(amt);
</script>
Select one:
5
110
5555
64304
Error, No Output.
https://accenturelearning.tekstac.com/2021/mod/quiz/review.php?attempt=4340201&cmid=1281 3/3