-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathquestions.json
36 lines (36 loc) · 932 Bytes
/
questions.json
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
28
29
30
31
32
33
34
35
36
{
"title": "Test about Laravel",
"questions": [
{
"text": "What can you not generate using the artisan command `make:model`?",
"type": "mc",
"answer": "A seeder",
"wrong": [
"A migration",
"A factory",
"A resource controller"
]
},
{
"text": "What query will not return an instance that contains 10 elements?",
"type": "mc",
"answer": "`User::get(10)`",
"wrong": [
"`User::all()->take(10)`",
"`User::take(10)->get()`",
"`User::paginate(10)`"
]
},
{
"text": "`Product::all()` and `Product::get()` will both return the same result",
"type": "tf",
"answer": "t"
},
{
"text": "What method should be used to only retrieve the first 5 results?",
"type": "input",
"answer": "limit",
"snippet": "$users = DB::table('attachments')->???(5)->get();"
}
]
}