CS411 Visual Programming Past Paperssolvedfrom Imran
CS411 Visual Programming Past Paperssolvedfrom Imran
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, ...)
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.
-----------------subjective------
1---what are the other names of “java script”?/2 marks
ECMAScript, Jscript(not confirmed)
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}
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];
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