Skip to content

Instantly share code, notes, and snippets.

@AhsanAyaz
Last active December 3, 2022 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AhsanAyaz/7d9d0a0949308716725794bf90266cf7 to your computer and use it in GitHub Desktop.
Save AhsanAyaz/7d9d0a0949308716725794bf90266cf7 to your computer and use it in GitHub Desktop.
JavaScript questions JSON
[
{
"question":"Which is the purpose of JavaScript?",
"answers":{
"1":"To style HTML Pages",
"2":"To add interactivity to HTML pages",
"3":"To perform server side scripting operations"
},
"correctAnswerId":"2",
"id":"1"
},
{
"question":"To insert a JavaScript into an HTML page, which tag is used?",
"answers":{
"1":"<script='java'>",
"2":"<javascript>",
"3":"<script>"
},
"correctAnswerId":"3",
"id":"2"
},
{
"question":"Which of the following is correct to write “Hello World” on the web page?",
"answers":{
"1":"print('Hello World')",
"2":"document.write('Hello World')",
"3":"response.write('Hello World')"
},
"correctAnswerId":"2",
"id":"3"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment