علم البيانات | DS2 Quizes – Telegram
علم البيانات | DS2 Quizes
966 subscribers
96 photos
2 videos
14 files
110 links
"قناة علمية متخصصة في مجال علم البيانات، قناة خاصة بالاختبارات MCQ ."
القناة العامة: @Computer_DS_1
النقاشات: @Computer_DS1
قناة الاختبارات: @Computer_DS_2
بوت التواصل والمشاركات : @DS_Combot
Download Telegram
How do you remove duplicates from an array?
Anonymous Quiz
51%
arr.filter()
21%
arr.remove()
21%
arr.delete()
7%
arr.uniq()
Which statement correctly accesses an object property using a string key?
Anonymous Quiz
49%
obj.key
42%
obj[key]
2%
obj->key
7%
obj(key)
How do you add an element at the beginning of an array?
Anonymous Quiz
28%
push()
45%
unshift()
19%
shift()
9%
pop()
Which method is used to find an element in an array?
Anonymous Quiz
61%
find()
33%
search()
7%
filter()
How do you convert a number to a string?
Anonymous Quiz
7%
num.toString()
17%
String(num)
11%
parseString(num)
65%
Both A and B
Which method rounds a number to the nearest integer?
Anonymous Quiz
16%
Math.floor()
20%
Math.ceil()
64%
Math.round()
0%
Math.trunc()
How do you create a copy of an array?
Anonymous Quiz
38%
arr.slice()
56%
arr.copy()
2%
arr.clone()
4%
arr.duplicate()
Which of the following creates a private variable in JS class?
Anonymous Quiz
30%
_privateVar
17%
private var
9%
var privateVar
How can you prevent a property from being modified?
Anonymous Quiz
63%
Object.freeze(obj)
13%
Object.seal(obj)
13%
const obj
11%
None of the above
Which method converts a JSON string into an object?
Anonymous Quiz
50%
JSON.stringify()
50%
JSON.parse()
What is the output of console.log(typeof function(){})?
Anonymous Quiz
70%
function
11%
object
11%
undefined
9%
method
Which operator returns the type of a variable?
Anonymous Quiz
11%
type
81%
typeof
6%
instanceOf
2%
typeOf
Which property changes the content of an HTML element?
Anonymous Quiz
76%
innerHTML
10%
innerText
10%
textContent
4%
value
Which event occurs when the user clicks on an element?
Anonymous Quiz
80%
onclick
12%
onmouseover
6%
onkeydown
2%
onhover
How do you select all <p> elements in jQuery?
Anonymous Quiz
47%
$(p)
29%
document.getElementsByTagName(p)
12%
$(p).selectAll();
console.log(10 % 3); Output:
Anonymous Quiz
82%
1
4%
3
10%
0
4%
Error
console.log(typeof Hello); Output:
Anonymous Quiz
4%
number
10%
object
2%
undefined
84%
string