علم البيانات | 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
Which code selects all <p> elements and hides them?
Anonymous Quiz
10%
hide(p);
67%
$(p).hide();
17%
document.getElementById(p).hide();
6%
$(p).display(none);
In jQuery, which method is used to change the content of an HTML element?
Anonymous Quiz
11%
.val()
6%
.css()
77%
.html()
6%
.attr()
Which code sets the text of an element with id demo to Hello?
Anonymous Quiz
57%
$(#demo).html(Hello);
35%
$(demo).text(Hello);
4%
$(p#demo).value(Hello);
4%
$(demo).html(Hello);
What does this code do? $(#btn).click(function(){ $(p).toggle(); });
Anonymous Quiz
17%
Changes the color of <p>
77%
Toggles show/hide of <p>
6%
Deletes all <p>
0%
Does nothing
In jQuery, which method changes the CSS of an element?
Anonymous Quiz
10%
.property()
62%
.css()
4%
.attr()
24%
.style()
Which symbol is used for jQuery?
Anonymous Quiz
12%
#
73%
$
12%
&
4%
@
Which jQuery method is used to hide elements?
Anonymous Quiz
2%
.remove()
10%
.delete()
87%
.hide()
2%
.display()
How do you declare a JavaScript variable?
Anonymous Quiz
13%
var x;
7%
int x;
6%
let x = 0;
74%
Both A and C
What is the correct way to write a JS comment?
Anonymous Quiz
8%
<!-- comment -->
4%
// comment
6%
/* comment */
83%
Both B and C
Which operator is used for equality comparison?
Anonymous Quiz
10%
=
8%
===
14%
==
69%
Both B and C
Which is a comparison operator?
Anonymous Quiz
2%
=
16%
==
8%
===
75%
Both B and C
How do you write a multi-line comment?
Anonymous Quiz
79%
/* comment */
12%
<!-- comment -->
8%
// comment
2%
None of the above
Which of these is correct to add a property to an object?
Anonymous Quiz
16%
obj.name = "John";
6%
obj->name = "John";
12%
obj[name] = "John";
65%
Both A and C
Which operator is used for strict equality?
Anonymous Quiz
7%
=
24%
==
61%
===
7%
!=
Which statement correctly adds an element at index 2 of an array?
Anonymous Quiz
12%
arr.insert(2,5)
6%
arr.push(2,5)
73%
arr[2] = 5;
10%
arr.add(2,5)
What is the output of 0 == false?
Anonymous Quiz
67%
true
25%
false
6%
undefined
2%
Error