-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascript.json
More file actions
27 lines (27 loc) · 1.04 KB
/
javascript.json
File metadata and controls
27 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[{
"topic": "JavaScript",
"subtopic": "Operator precedence and Boolean value",
"type": "MCQ",
"question": "What's the result? 5 && 0||5**2*5||undefined+null && ['']||[]&&false",
"options": ["0", "true", "false", "125"],
"answer": 3,
"difficulty": "Medium"
},
{
"topic": "JavaScript",
"subtopic": "Array",
"type": "MCQ",
"question": "Which option is used to filter out username with length more than 10 in the Array\nlet arr = ['john12345','mark@Twain34567,'qwerty1234590','robbin$smith@7890']?",
"options": ["arr.map(e=>{return e.length>10})", "arr.filter(e=>{return e})", "arr.filter(e=>{return e.length>10})", "arr.filter(e=>{return e.length<10})"],
"answer": 3,
"difficulty": "Medium"
},
{
"topic": "JavaScript",
"subtopic": "JavaScript Objects",
"type": "MCQ",
"question": "What is the value of 'a' in the following code\n const obj = {'a':12345,'b':true}\n const {a} = obj",
"options": ["12345" , "true" , "{'a':12345,'b':true}" ,"Error"],
"answer": 1,
"difficulty": "Easy"
}]