Skip to content

Update questions.json #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions Quiz App Master/questions.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,50 @@
"choice3": "msg('Hello World');",
"choice4": "alert('Hello World');",
"answer": 4
},
{
"question": "Which HTML tag is used to link a JavaScript file?",
"choice1": "<script href='script.js'>",
"choice2": "<link rel='script' src='script.js'>",
"choice3": "<script src='script.js'>",
"choice4": "<js src='script.js'>",
"answer": 3
},
{
"question": "What is the correct syntax for referring to an external script called 'app.js'?",
"choice1": "<script name='app.js'>",
"choice2": "<script src='app.js'>",
"choice3": "<script file='app.js'>",
"choice4": "<javascript src='app.js'>",
"answer": 2
},
{
"question": "Which of the following is a JavaScript data type?",
"choice1": "float",
"choice2": "string",
"choice3": "number",
"choice4": "All of the above",
"answer": 4
},
{
"question": "How do you create a function in JavaScript?",
"choice1": "function myFunction()",
"choice2": "function:myFunction()",
"choice3": "create myFunction()",
"choice4": "def myFunction()",
"answer": 1
},
{
"question": "How do you call a function named 'myFunction' in JavaScript?",
"choice1": "call myFunction()",
"choice2": "myFunction();",
"choice3": "Call.myFunction()",
"choice4": "execute myFunction()",
"answer": 2
}





]