Professional Documents
Culture Documents
CS411 Sample Paper Final
CS411 Sample Paper Final
FINALTERM EXAMINATION
Fall 2022
CS411- Visual Programming
Time: 90 min
Marks: 60
Which of the following jQuery attribute selectors is used to select elements whose
attribute value ends with a specific string?
A. $([attribute=value])
B. $([attribute~=value])
C. $([attribute^=value])
D. $([attribute$=value])
Who is responsible for releasing objects in Objective-C when using manual reference
counting?
A. The runtime environment
B. The operating system
C. The programmer
D. The compiler
An await expression in an async method doesn't block the current thread while the
_______ task is running.
E. Control
F. Await
G.Sync
H.Block
Question No: 15 (Marks: 01) - Please choose the correct option
If the work you have is CPU-bound and you care about responsiveness, use ________.
A. Async
B. Await
C. Sync
D. Both A and B
Control
Await
Concurrency
Block
Javascript
CSS
HTML
Async
Javascript
CSS
HTML
Async
Control
Await
Sync
Task Completion Source
The premise of _________ is to run two or more different programs, kind of at the same
time.
Control
Await
Sync
Concurrency
Javascript
HTML
CSS
Async
Javascript
HTML
CSS
Async
Control
B.Await
C. Async
D. Task
_________ is the process that establishes a connection between the app UI and the data it
displays.
Control
Await
Sync
Binding
Open
Closed
Sync
Async
Control
Await
Jquery
Block
In Dockpanel the last child does not fills the space if ____________
Lastchildfill = true
Lastchildfill = false
Lastchildfill = fill
Lastchildfill = notfill
True
False
Fill
Top
<Grid.RowDefinitions>
<Grid.Rows>
<RowDefinitions>
<Rows>
True
False
UniformToFill
Inherit
Collapsed
None
Gone
Invisible
Preview
bubbling
Dot
Underscore
keyboarddevice.iskeydown
keyboarddevice.keydown
keyboarddevice.key
keyboarddevice.checkkey
manipulationstart
ismanipulationstart
Manipulationstarting
ismanipulationstarting
__________is the default value of the Mode property in WPF data binding.
OneWay only
TwoWay only
OneTime only
Oneway and TwoWay both
To specify when changes to the source should be propagated to the target only
To specify when changes to the target should be propagated to the source only
To specify when changes to the target should be propagated to the origin only
To specify both when changes to the source and target should be propagated
Reportdelta
Reportboundary
Reportfeedback
Reportboundaryfeedback
Question No: 41 (Marks: 03)
Write a JQuery code that selects all <a> tags with class ‘navbutton’ and change the
background color to blue.
Question No: 42 (Marks: 03)
The following code makes use of JQuery hover() method to change the text color of <h1>
heading to red when mouse hovers over it and returning to its original color when mouse
leaves. You are required to fill the missing portions.
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("____").hover(function() {
$(this).css("____", "____");
}, function() {
$(this).css("____", "____");
});
});
</script>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
Question No: 48 (Marks: 05)
Write a function in JavaScript that will add first ten odd numbers using a for loop.
Write XAML code to create a Grid layout with two columns and five rows.
How would you bind a ListView control to a collection of items in WPF and display a
property of each item as the text for each ListViewItem?