CS411 Final Term Current Solved Subjective by Junaid
- Type
- Final term past paper
- Course
- CS411 Visual Programming
- Size
- PDF 529 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 15. Download the file for all 15 pages.
Q No 1. What is the code of “for loop” to add the n even number in JavaScript?
<script> function add(x)
return x%2==0;
function findsum(y)
let sum=0; for( var i=1; var<=y; i++) if(add(i))
sum+=i;
document.write(findsum) </script>
Q No 2. What are the five types of HTML? 5 marks
Five types of html in use:
- HTML 4.01 Transitional
- HTML 4.01 Strict
- XHTML 1.0 Transitional
- XHTML 1.0 Strict
- HTML5
Q No 3. How to define binary resource and what are the categories of binary resources in WPF? 3 marks Binary resources are what rest of .net framework considers a resource. To define a binary resource, add a file and set the build action resource or content (loose file). Binary resource has two categories Binary resource can be embedded to assembly Binary resource can be loose file that may or may not be known at compile time. It can be localizable or not.
Q No 4. Write the properties of touch point in C#. 3 marks
The properties of Touchpoint are Position, Size, Bounds, touchdevice, Action (Down, Up, Move).
It is a code of UI that remains the CPU bound task. The given Code is in For Loop. firstly you call the getprimsescountry is given that the controls return and the Remaining code will go into the Continue. and You have called the await the from inside the LOOP.
Q No 6 Create a single instance application using WPF. 5 marks
Single instance application means that it should be run only one time.
Bool mutexisnew; Using (System. Threading. Mutex m = New System. Threading. Mutex(true, uniquename, out mutexisnew))
If (mutexisnew) // This is the first instance. Run the application. Else // There is already an instance running. Exit!
Q No 7 Write the XAML code to create a list box with three items. 5 marks
<listboxitem Content= “Item 1”/> <listboxitem Content= “Item 2”/> <listboxitem Content= “Item 3”/> </listbox>
Q No 8 What is the purpose of Block in Objective-C. 3 marks
Blocks are a language-level feature added to Objective-C, which allow you to create distinct segments of code that can be passed around to methods or functions as if they were values. Blocks are Objective-C objects, which means they can be added to collections like NSArray or NSDictionary.
Q No 9 Define the Data template using XAML? 3 marks
Data template is a bit of XAML that describes how bound data is displayed. A data template can contain elements that are each bound to a data property along with additional markup that describes layout, color and other appearance.
Q No 10 Differentiate between Get and Post Method. 3 marks
In GET method, values are visible in the URL. In POST method, values are not visible in the URL. GET has a limitation on the length of the values, generally 255 characters. POST has no limitation on the length of the values since they are submitted via the body of HTTP. GET results can be bookmarked. POST results cannot be bookmarked. GET Parameters remain in web. In Post Parameters are not saved in web. Get method supports only string data types. Post This method supports different data types, such as string, numeric, binary, etc. Q No 11 Define iOS language feature block also write its syntax. 3 marks Block is a chunk of code that can be executed at some future time. Blocks are first-class functions, which is a fancy way of saying that Blocks are regular Objective-C objects. Since they're objects, they can be passed as parameters, returned from methods and functions, and assigned to variables. The syntax to define a block literal uses the caret symbol ( ^ ), like this:
^{ NSLog( "This is a block"); }
Q No 12. Write the difference between onetime binding and onewayTo Source binding. Also give example of both in XAML.
Related CS411 files
All CS411 files →- CS411 Final Term Topics by VU Topper RM Final term PDF 127 KB
- CS411 Final Term Quizzes 18 July 2023 by Sana Sheikh Final term PDF 556 KB
- CS411 Final Term Solved MCQs File 1 by Junaid Final term PDF 1.4 MB
- CS411 Final Term Solved MCQs File 2 by Junaid Final term PDF 1.1 MB
- CS411 Highlighted Handouts by MAS All Rounder Highlighted PDF 5.6 MB
- CS411 Quiz 4 Jan 2026 Set 2 Quiz PDF 35 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.