0% found this document useful (0 votes)
18 views9 pages

CS411 Visual Programming Past Paperssolvedfrom Imran

Uploaded by

Tayyab Tabi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
18 views9 pages

CS411 Visual Programming Past Paperssolvedfrom Imran

Uploaded by

Tayyab Tabi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 9

CS411 Visual Programming

Solved Past Papers


what is difference between hover() and toggle()? (2 marks)
Difference b/w hover() and toggle() is that toggle() works by clicking
it on and off whereas hover() works just by positioning the mouse
over it.

Core Locations Framework contains which types of classes ? (2 Marks)


Answer: Page 218
Core Locations classes that enable finding geographical position.
distanceFilter and desiredAccuracy properties.

can Operating System distinguish between window contain WPF and


window Contain Win32? (2 Marks)
when we preferred BeginInvoke instead of Invoke method? (2 Marks)
there are times when you want to invoke a delegate and wait for its
execution to complete before the current thread continues. In those
cases the Invoke call is what you want.
In multi-threading applications, you may not want a thread to wait
on a delegate to finish execution, especially if that delegate performs
I/O (which could make the delegate and your thread block). In those
cases the BeginInvoke would be useful.

what is difference between server Side programming and Client Side


Programming ? (3 Marks)
Server-side programming, is the general name for the kinds of
programs which are run on the Server.
Uses

For more content visit: fb.com/groups/imransvu/


 Process user input.
 Display pages.
 Structure web applications.
 Interact with permanent storage (SQL, files).
Much like the server-side, Client-side programming is the name for all
of the programs which are run on the Client.
Uses
 Make interactive webpages.
 Make stuff happen dynamically on the web page.
 Interact with temporary storage, and local storage (Cookies,
localStorage).
 Send requests to the server, and retrieve data from it.
 Provide a remote service for client-side applications, such as software
registration, content delivery, or remote multi-player gaming.
Also check here for more detail

define iOS feature of Block and also provide its syntax ? (3 Marks)
Blocks are a new feature that was introduced in iOS 4.0 and Mac
OSX 10.6. Blocks can greatly simplify code. They can help you
reduce code, reduce dependency on delegates, and write cleaner, more
readable code.
A 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.
Syntax: return_type (^block_name)(param_type, param_type, ...)

For more content visit: fb.com/groups/imransvu/


define Term "View" and also write name of items that are supported
by it ? (3 Marks)
name of Touch Events only three ? (3 Marks)
ontouchdown(e)
capturetouch(e)
ontouchmove(e)

write a not on Retain count and also its working and usage? (5 Marks)
"Retain count rules. Init, new, copy in name. Assume you own. Any
other means. Assume in autorelease. If you dont own and want to
make sure, call retain. No longer need and own than release or
autorelease. When 0 count, dealloc called." - Direct from handbook, I
have no idea what it means.

define in detail modes of data binding (5 marks)


Binding Modes:
 One-Way
 Two-Way
 OneWayToSource
 OneTime
One way : The target is updated whenever the source changes.
Two-Way Binding means change to either the target or source
updates the other
OneWayToSource is the opposite of One-Way binding. the source is
changed whenever the target changes.
One-Time binding is like one-way except changes to the source are
not reflected at the target. The target retains a snapshot of the source
at the time the Binding is initiated.

For more content visit: fb.com/groups/imransvu/


ek code tha us ki output btani the localization may say tha ? (5 Marks)
ek case the kay ek admin nay online order bucking kawani hay magr
usay nahe pta kay kitnay items ho gay tou us ko veriable kay name
assign kary may problem ho rahe hay java Script kay according is
problem ka soulution btay (5 Marks)
1---The dimension of the given array is
Int[][]matrix=new int[][]
{ new int[]{0,1,2}
New int[]{3,4,5}
New int[]{6,7,8,9}
};
3by 2
1by 9
3 by 3
2 by 3

2-----which of the following response show internal server error


404
500
200
304

3-------which of the following response show file not found error


404
500
200
304

For more content visit: fb.com/groups/imransvu/


4---interact with web page layout
Java script
HTML
XML
DOM

5---which of the following technologies is not used in AJAX


DOM
DHTML
Flash(I think)
Css

6----in Xaml browser application ,how much isolated memory we can


use?
256kb
128
512
1024

-----------------subjective------
1---what are the other names of “java script”?/2 marks
ECMAScript, Jscript(not confirmed)

2---Define the term “ios application bundle” /2 marks

For more content visit: fb.com/groups/imransvu/


"a bundle is a directory that allows related resources such as an
application's executable and its graphics to be grouped together,
appearing as a single file to the user." - Wikipedia

3---Can the operating system distinguish between windows with WPF


contents and windows with Win32 contents /2
Yes, we can even create Host WPF content in a Win32 window. and
vice versa.

4---As we know that ICollectionView has a property called “filter”


which provides the facility for selective removal of itemsbased on an
arbitrary condition.this property is also known as
Predicate<Object>type.What is meant by this Predicate<Object.type?
/2
Filtering gives a property Filter of type Predicate¡Object¿.

5----what will be the efficient way of applying the same style on all
p[aragraphs of HTML page?also provide an example //3
A technique is to collect all our CSS rules in one place, a style sheet,
and then apply the style sheet to every single element on the page.
An embedded style sheet affects every element on the page. In order
to create an embedded style sheet, we need to go to the head of the
document.
/span>html>
/span>head>
/span>title>Hello World</title>
/span>style type="text/css">
p {color: #008000; background: #ffff00}

For more content visit: fb.com/groups/imransvu/


</style>
</head>
/span>body>
/span>h1>Hello World</h1>
</body>

6---which property tells the location manager about how accurate the
location finding should be?and why the accuracy is important? /3
[locationmanager setdesiredaccuracy:kcllocationaccuracybest];
7---we know that whatever we bind to a collection (anything that
implements IEnumerable,a default view is implicitly inserted between
the source and target objects.you are required to define the term “view’
and also the names of the items which are supported by it.. /3
Can anyone please solve this I am having trouble understanding this.

8---how can you refresh the current page in WPF Navigation based
application? /3
This.navigationservice.Refresh();
9---Tasks using objective C
 Create location manager object
 Apply accuracy filter on location manager object created in first step
 Tell the manager to start looking for its location immediately
// Create location manager object Locationmanager=
[[cllocationmanager alloc] init];
// We want all results from the location manager [locationmanager
setdistancefilter:kcldistancefilternone];

For more content visit: fb.com/groups/imransvu/


// And we want it to be as accurate as possible // regardless of how
much time/power it takes [locationmanager
setdesiredaccuracy:kcllocationaccuracybest];
// Tell our manager to start looking for its location immediately
[locationmanager startupdatinglocation]; Goto lecture # 41

10---consider the following code lines and explain what are we trying
to achieve from them /5
Msbuild/t:updateuid Projectname.csproj
locBaml/parse Projectname.g.en-US .resources/out.en-US.csv

11---wriring an XAML code to create a “grid panel” having two


buttons/5
Final Paper of CS411
Date:- 28/08/2014
Question 01 ):;M Separete server side language and Clinnt side
language.(3Ma1'ks)JS(Java
Script),Cold Fusion, PHP, ASP.net
Question 02 ):- iOS Wfiywzlcation was give in Question. where we
were asked about the type of touch event's?
Questimi 03):- Differentiate b/W XIB and NIB.(2MarkS)
Question 04):: When using nexrigatign in ent is typically organized in
which elements‘?
Question 05):-W15lMarnwg nfthree'ba§i3 touch events.(3MaH<-s)
Question (>6);;WQ which code line We have created 2resources. (5M)
<resour¢;eInclude = "images\VU1.jpg"\>
<Conte1i‘tInclude = "images§Vl I2.jpg"\>

For more content visit: fb.com/groups/imransvu/


Question 07):- Explain Model-View-ControllerPattern" in the context
of iOS programming. Also give examp1es.(5Marks)

For more content visit: fb.com/groups/imransvu/

You might also like