CS511 – Web Engineering Quiz # 3 |2024 Virtual University of Pakistan
Sharpen your web development knowledge with this quiz based on CS511 – Web Engineering, a course offered by the Virtual University of Pakistan. Answers and explanations provided!
Introduction:
Web engineering is a fascinating blend of programming, design, and user experience. If you’re a student enrolled in the Virtual University of Pakistan’s CS511 course, or simply interested in testing your web development chops, you’re in the right place! This blog post features a selection of multiple-choice questions (MCQs) taken directly from CS511 quizzes. See how well you fare and learn something new along the way.
Quiz Questions:
- Which of the following is NOT a type of loop in JavaScript?
- switch
- while
- do…while
- for
- What will the jQuery selector
$("#main time:first-child")
select?- Only first
<time>
element that is direct child of the element having id as “#main” - All the
<time>
elements that are direct child of the element having id as “#main” - All the
<time>
elements in the element having id as “#main” - All the
<time>
elements in the document
- Only first
- What is the correct jQuery equivalent of the following JavaScript code:
var node = document.getElementById("here");
?- var node = $(“#here”);
- var node = $_Get(“#here”);
- var node = $_Run(“#here”);
- var node = $_(“#here”);
- What is the term used for the following JavaScript code?
btnButton.onclick = function() {alert('Hello World!');}
- Event Property Approach
- Inline Hook Approach
- Event Stack Approach
- Event Localization Approach
- Which of the following options will fetch the value of the “name” property from the object “Obj”? Assume “Obj” has a property named “name” with the value “Ali”.
- Obj.name
- Obj-name
- Obj#name
- Obj{‘name’}
- What is the following code known as?
<input type="text" name="txtbox" onchange="check(this);">
- Inline Hook
- Self Call
- Embedded Call
- Embedded Hook
- Which of the following statements is true for the jQuery
$()
function?- Always returns a set of results
- Always returns child node
- Always returns a parent node
- Does not return anything
- In jQuery, what does the
.val()
method primarily retrieve?- Values of elements having value property
- Values of all elements
- Values of textbox elements
- Values of elements having innerHTML property
- What will be the result of the following jQuery code?
$("p.warning").html("No Warning");
- Text of all the
<p>
tags having class “warning” will be updated to “No Warning” - All the
<p>
tags in the document will be updated to “No Warning” - Text of all the
<p>
tags in the document will be updated to “No Warning” - All the tags in the document will be updated to “No Warning”
- Text of all the
- What is the method of creating an array in the following code known as?
var myarray = new Array(10);
- Array Constructor
- Object Literal Notation
- Object Definition Array
- Primitive Literal Notation
Conclusion:
We hope you found this CS511 quiz challenge helpful and informative. If you’d like more quizzes or web engineering resources, let us know in the comments!