75% found this document useful (4 votes)
4K views30 pages

CS411 Final Term Solved MCQs File-1 by JUNAID

This document contains 46 multiple choice questions related to programming topics like XAML, C#, JavaScript, HTML, CSS, .NET, and more. Each question is followed by potential answers and sometimes includes a page reference. Common topics covered include data binding, events, classes, threading, and mobile/web development frameworks. [/SUMMARY]

Uploaded by

Umer MUHAMMAD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
75% found this document useful (4 votes)
4K views30 pages

CS411 Final Term Solved MCQs File-1 by JUNAID

This document contains 46 multiple choice questions related to programming topics like XAML, C#, JavaScript, HTML, CSS, .NET, and more. Each question is followed by potential answers and sometimes includes a page reference. Common topics covered include data binding, events, classes, threading, and mobile/web development frameworks. [/SUMMARY]

Uploaded by

Umer MUHAMMAD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

AL-JUNAID TECH INSTITUTE

Question # 1: In Xaml browser application, how much isolated memory we


can use?
o 256 kb

o 128 kb

o 512 kb PG # 132

o 1024 kb

Question # 2: Which property will be used if we want to restrict the user


to don‟t increase thewidth of a WPF element from a specific amount?

o MaxWidth Page # 81

o MaximumWidth

o WidthMaximum

o None of given options


Question # 3: Which one is the correct syntax for declaring attribute?

o [Obsolete] page # 42

o {Obsolete}

o (Obsolete)

o *Obsolete

Question # 4: In C#, comments are written using .

o # and */ /*

o // and /* */ page # 14

o # and /*

o // and */ /*

Question # 5: An event that is raised whenever the value of


"CanExecute" changes is knownas .

o CanExecute
AL-JUNAID TECH INSTITUTE
o CanExecuteChanged

o Command

o Execute
Question # 6: is an event that is introduced into an event
processing system byan event producer.

o Event Producer

o Event Consumer

o Raw Event Page # 11

o Event Stream

Question # 7: Whenever an attribute value is enclosed in curly


braces "{}", the XAMLcompiler/parser treats it as a/an rather
than a/an .

o Markup event, property

o Markup property, Event

o Literal string, Markup extension value

o Markup extension value, literal string page # 65

Question # 8: HTML is called layer.


o Physical
o Presentation

o Behavioral

o Structural PG # 195

Question # 9: CSS is called layer.

o Physical

o Presentation PG # 179

o Behavioral
AL-JUNAID TECH INSTITUTE
o Structural

Question # 10: JS (JavaScript) is called layer.

o Physical

o Presentation

o Behavioral PG # 179

o Structural

Question # 11: Shift key is true if the shift key is when the
event occurs.

o Down PG # 187

o Up

o None of the given

o Move
Question # 12: Which of the following response show internal server error?

o 404

o 500

o 200

o 304

Question # 13: The original name of JavaScript was .

o JavaScript

o LiveScript PG # 179

o wireScript
AL-JUNAID TECH INSTITUTE
o none of the given

Question # 14: One of the ways to create an instance of a class is .

o System array PG # 14

o Factory method

o Sequential heap

o XAML compiler

Question # 15: Which "transform" property can help us to flip the element
from its center?

o ScaleY

o None of given options

o ScaleX

o RenderTransformOrigin PG # 85

Question # 16: If we want that "Stretch" property of child element takes


the available "heightor width of Parent" and shape of child elements
doesn‘t change, then we should write ―Stretch
= ‖.

o 1

o Fill PG # 100

o UniformToFill

o Uniform
Question # 17: When a button makes itself disabled, then the value of
"Focusable" property is
?
AL-JUNAID TECH INSTITUTE
o False

o Null

o True

o None of the given options

Question # 18: ManipulationCompleted gets raised after _ is


raised for all fingers.

o TouchMove

o TouchUp PG # 116

o TouchDown

o TouchRight

Question # 19: CSS is a language.

o Object Oriented

o Structuring

o Formatting PG # 180

o Non

Question # 20: JavaScript code is written inside file having extension .

o JSC

o JS

o Javasript

o JVS
Question # 21: Which of the following is TRUE about Object data
providers?

o This is useful for binding XML data


o This is useful for binding objects which are designed for binding
AL-JUNAID TECH INSTITUTE
o This is useful for binding objects which are not designed for
binding PG # 151
o None of the given

Question # 22: Which of the following is TRUE about IsAsync in context of


data binding?

o This is used to access the property of an object in background

o This is used to access the property of an object in foreground

o This is used to create data source object in background

o This is used to create data source object in foreground

Question # 23: Refresh" is a predefined building command classified as:

o Navigation command PG # 121

o Media command

o Application command

o Editing command
Question # 24: Which of the following is NOT true about threads?

o Threads are useful to handle simultaneous requests.

o A program can have more than one thread

o Data cannot be share among the threads.

o Each thread can proceed independently of other threads.

Question # 25: Which of the following is correct way to start execution


of a thread objectnamed as myThread?

o myThread.Go();

o myThread.Start(); PG # 156

o myThread.Begin();
AL-JUNAID TECH INSTITUTE
o myThread.initialize ();

Question # 26: The best way to implement simple threading in Windows


Forms programs is touse the class.

o BackgroundWorker

o Windowsform

o Simplethreadworker

o None of the given


Question # 27: A child Window is just like any other top-level window:
but it automatically gets closed when the parent is closed and
minimized when the parent is minimized. Such aWindow is sometimes
called a .

o Modeless Dialog PG # 124

o Inherited Window

o Super Window

o Sibling Window
Question # 28: In .Net, a task that does not return a value is represented
by the
.

o System.Threading.Tasks.Task<TResult>

o System.Threading.Tasks.Task

o System.Threarding.Tasks.

o None of the given options

Question # 29: In TAP, progress is handled through an interface,


which ispassed to the asynchronous method a parameter.

o IProgress<T>

o Progress<T> (Action<T>)
AL-JUNAID TECH INSTITUTE
o Iprogress (T)

o Progress<T>
Question # 30: In navigation Windows, the frames are more like a/an .

o HTML frame Page #128

o .Net frame

o Java frame
o Image frame
Question # 31: keeps the navigation history in

navigation based applications.

o Journal
o Frame
o Web browser
o Web page
Question # 32: URI stands for:
o Universal Resource Identifier
o Uniform Resource Identifier
o Uniform Resource Identification
o Universal Resource Identification

Question # 33: In Objective-C, which of the following statements can be


used to displaysomething in the "answer" field?
o [answerField:answer];
o [setTextanswer];
o [answerFieldsetText:answer]; PG # 208
o [ setText answeranswerField]
Question # 34: Which one of the following is used, if we want to add
resources in Window?
o <windowResources></windowResources>
o <windowsResources></windowsResources>
o <window.Resources></window.Resources> PG #
136
Question # 36: Which of the following is used to set the view to default?
o NSCoder
AL-JUNAID TECH INSTITUTE
o clearAll
o IB PG # 217
o Redraw
Question # 37: In context of data binding, when we want to apply both
sorting and groupingtogether then the rule is that .
o Grouping will be applied before sorting
o Sorting will be applied before Grouping PG # 150
o Both shall be applied different properties
o None of the given
Question # 38: What is the word ―Color‖ in given below code? UIColor" (^)
(Line*,int anotherArg)
o Return Type of Block
o Notation to specify that it is a block
o Name of Variable
o Block Variable PG # 222
o <windows.Resources></windows.Resources>
Question # 35: If we assign an NSString to a possession for its
possessionName, and then werelease the string, it will be .
o Allocated
o Decreased
o Instance created
o Destroyed
Question # 39: helps us in provisioning ease of access
to data source for databinding.
o Data Provider
o Interfaces
o Source
o Data Organizer
Question # 40: What is the purpose of given below code?
[self.viewaddSubview:imageView];
o To make sure that image is not scaled incorrectly
o To create the image View
o To set the image
o Add the image to this View controllers PG # 226
Question # 41: What is the purpose of
given below code? NSArray *folders
NSSearchPathForDirectoriesInDomains(NSD
ocumentDirectory,NSUserDomaianIask,
YES);
o Get the document folder(s) PG # 226
o Create the folder
AL-JUNAID TECH INSTITUTE
o Get the first folder
o Add the image to first folder
Question # 42: Which JQuery object is used with bind() function to pass
data to an eventhandling function?
o Target
o Bind
o Data PG # 187
o Jobj
Question # 43: Which of the following technologies is not used in AJAX?
o DOM
o DHTML
o Flash
o Css

Question # 44: Which function is used to create cancel button event of


dialog box_____.
o OnInitCancel()
o OnClickCancel()
o CancelClick()

o OnCancel()

Question # 45: Consider the following C# code segment:


button.Background = (Brush) new BrushConverter().ConvertFrom
(―SystemColors.WindowBrush‖ ); Which one of the following isequivalent
XAML code?
o <Button Background= ―SystemColors.WindowsBrush‖ />

o Button Background= ―SystemColor.WindowsBrush‖ />

o <Button Background= ―SystemColor.WindowBrush‖ />


o <Button Background= “SystemColors.WindowBrush”/>
PG # 132
Question # 46: Multi touch events are categorized into and_____.
o Touch events, touchup events
o Touchdown events, touchup events
o Advanced touch events, low‐level manipulation events
o Basic touch events, higher‐level manipulation events
Question # 47: Which of the following components generates an input
Event?
o Printer

o Multi Touch
AL-JUNAID TECH INSTITUTE
o Plotter
o Speaker
Question # 48: Using requires more overhead
than because of theextra tracking.
o StaticResource, DynamicResource
o DynamicResource, StaticResource PG # 137
o PermanentResource, TemporaryResource
o TemporaryResource, PermanentResource
Question # 49: We use "UIElement" property ClipToBounds= ―false‖ when
.
o We want area child element don‘t cross the boundary of parent
o None of given
o We want area of child element is allowed to cross the
boundary of parentPG # 97
o Parent area also increases on increasing of area of child element
Question # 50: is used to perform navigation.
o Session

o Hyperlink PG # 127

o Hypertext markup language code


o Internet protocol
Question # 51: To design a complex Interface, which of the following
technique is best toachieve the required results?
o Panels composed in three panels

o Panels composed within panels


o Panels composed in two panels
o Panels composed in single panel

Question # 52: Which of the following is not a string format property


throughout WPF?
o ContentStringFormat
o ItemStringFormat
o RowHeaderStringFormat

o StringFormat
Question # 53: In multi touch events, a/an id is
assigned to each individualevent.

o Device
o Processor
o CPU
AL-JUNAID TECH INSTITUTE
o Event
Question # 54: Commonly we have two types of custom command
bindings named as .
o StartBindings and StopBindings

o EventBindings and InstanceBindings

o ButtonBindings and TextboxBindings


o KeyBindings and MouseBindings PG # 122

Question # 55: Which of the following is an example of tunnel key event?


o Key up
o Preview key entered

o Preview key down

o Key down
Question # 56: In context of data binding, contains the
current item to get itsynchronized with data Source.
o String

o Template

o View

o List

Question # 57: and are the two important


properties of Bindingobject.

o Start, Destination

o Items, Selected

o Source, Path

o BindTo, BindFrom
Question # 58: Which one of the following panels is most powerful,
versatile andcustomizable?

o Grid Panel PG # 92

o Canvas panel
AL-JUNAID TECH INSTITUTE
o Doc panel

o Stack panel

Question # 59: In order to resize the row and column in Grid panel, is
used.
o Grid divider

o Grid compiler

o Grid converter

o Grid splitter PG # 95

Question # 60: Data binding is about tying together arbitrary .NET .

o Objects PG # 140

o Functions

o Properties

o Variables

Question # 61: supports the creation of applications


that run directly in a webbrowser.

o WPF

o C/C++

o C#

o HTML
Question # 62: Which of the following operation cannot be performed by
using a View?

o Grouping

o Filtering

o Sorting

o Searching PG # 146
Question # 63: To check that the user either pressed left Alt key or right
AL-JUNAID TECH INSTITUTE
Alt key, the is used.

o IsKeyDown

o IsDown

o keyboardDevice.IsKeyDown PG # 113

o KeyStates.IsKeyDown

Question # 64: In _ browser app, you


change"<TargetZone>Internet</TargetZone>"to
"<TargetZone>Custom</TargetZone>"
 Partial-trust
 Full-reject
 Partial-reject
 Full-trust

Question # 65: provides the logic behind the "Back" and


"Forward" buttons.

o Hyperlink

o Navigation Window

o IFrame

o Journal PG # 138

Question # 66: In multi touch events, when multiple fingers are


touching simultaneously,these events get raised for each finger .

o Independently

o Completely

o Partially

o Dependently

Question # 67: In a code segment, if the Visibility=‖Collapsed‖ then


which of the following events are not generated?

o Key down Events


AL-JUNAID TECH INSTITUTE
o Mouse Events PG # 113

o Routed Events

o Keyboard Events
Question # 68: A Window can spawn number of
additional Windows byinstantiating a Window‐derived Class and
calling Show (...).

o Four

o Any PG # 124

o Six

o Five

Question # 69: Frame has a property used in enabling or


disabling the bar.

o ShowsNavigationUI

o BlocknavigationUI

o NavigationUIVisibility PG # 129

o NavigationUIBlock

Question # 70: If we insert some objects in a single cell in Grid panel,


then these objects areplaced on

o One on Top of the other

o One after the other

o One on Bottom of the other

o One on Side of the other

Question # 71: A _ receives keyboard events only if it has


keyboard focus.

o Mouse

o Keyboard Controls
AL-JUNAID TECH INSTITUTE
o Keyboard

o UIElement
Question # 72: To remove data binding between the source and the
target, we can use
function.

o ClearBinding PG # 151

o ResetBinding

o StopBinding

o RemoveBinding

Question # 73: A/An screen is an image that appears while


a game or program isloading.

o Opening

o Initial

o Splash

o Startup

Question # 74: We can perform sorting through View by using an


object of class

o ViewOrder

o ViewDescription

o SortOrder

o SortDescription PG # 158
Question # 75: "Binding" technique binds two properties together and
keeps a
open.

o Memory location

o Selection
AL-JUNAID TECH INSTITUTE
o Choice

o Communication channel PG # 140

Question # 76: Which one of the following can be used to set dependency
property values?

o Temporary resource

o Permanent resource

o Dynamic resource PG # 137

o Static resource

Question # 77: Which one of the following is used, if we want to add


a window resource inprocedural code?

o Window.Resource.Add ();

o <Widows.Resources></Widows.Resources>

o Window.Resoruces.Add();

o <Window.Resources></Window.Resources>
Question # 78: We use "GetDefaultView" method of to get
the default View.

o CollectionViewSource PG # 146

o DataSource

o ViewDescription

o ViewCollection
Question # 79: In case of HTML page navigation, you must
use the of"Navigate"
that a URI.

o Overload, rejects

o IFrame, rejects

o IFrame, accepts
AL-JUNAID TECH INSTITUTE
o Overload, accepts

Question # 80: The Java programming language has a specific


class for creating splashscreens, called .

o Java.awt.start

o Java.lang.splash

o Java.start.screen

o Java.awt.SplashScreen
Question # 81: In case of integrating Navigation to XBAP,
"ShowNavigationUI" should be setto in order to bypass integration.

o False

o True

o Null

o 0

Question # 82: Which of the followings are keyboard events?

o Key entered, key exist

o Key strike, key release

o Key pressed, key released

o Key down, key up PG # 113

Question # 83: To plug custom logic, you need to add a to the


element thatwill execute the command or any parent element.

o Execute command

o Helpcanexecute

o CommandBinding

o RoutedUlCommand
AL-JUNAID TECH INSTITUTE
Question # 84: A class that implements the ‗lCommand‘ and
supports ‗bubbling‘ just like arouted event is known as .

o RoutedUlCommand PG # 121

o Canexecute

o Executed command

o CanexecuteChanged

Question # 85: Which of the following is not true about task completion
source?

o Provide exception handling facility

o Support result return facility

o Provide Continuation facility

o it is executable thing PG # 175

Question # 86: "JavaScript" is available in web browser.

o Interpreter

o Compiler

o Linker

o Conjunction
Question # 87: The "Task Based Asynchronous pattern" method returns
either a "Task" or a "Task<TResult>", based on whether the
corresponding method returns "void" ora type "TResult".

o Callback

o Return

o Synchronous

o Asynchronous

Question # 88: Which of the following C# Method reports a progress


AL-JUNAID TECH INSTITUTE
change?

o Finalize

o OnReport

o GetType

o GetHashCode

Question # 89: Threadpool is used to .

o To make easy the process of thread creation

o To make easy debugging process

o To save time of thread creation PG# 160

o To avoid complexity
Question # 90: Which of the following is not a part of "cancellation" task?

o The calling thread does forcibly end the task

o Notice and respond to the cancellation request in your user delegate

o Pass a cancellation token to your user delegate and optionally to the


task instance

o Create and start a cancelable task

Question # 91: DOM is a representation of data.


o Tree

o Graphical

o Object

o None of the given

Question # 92: which of the following Object creates a cancellation token?

o OperationCanceledtoken

o OperationCanceled
AL-JUNAID TECH INSTITUTE
o CancellationToken

o CancellationTokenSource PG#172

Question # 93: which of the following is not a "JQuery" filter?

o Even

o Odd

o Has

o Write PG#184

Question # 94: Which of the following ―Event‖ property is used to


show the ―distance (in pixels)‖ of the mouse pointer from the left edge
of the browser window?

o pageY

o pageX PG # 187

o ScreenX

o ScreenY

Question # 95: ―async‖ and keywords in C# are the


heart of asynchronousprograming.

o Return

o Await

o Wait

o String
Question # 96: Mode of binding is
opposite to OneWay mode ofbinding.

o OneWay To source PG#153

o TwoWay

o One Time
AL-JUNAID TECH INSTITUTE
o Two Time

Question # 97: Can add/remove/change ―CSS‖


properties based on input or mouse clicks.

o J#

o JQuery

o HTML

o None of the given option PG#180


Question # 98: ―JavaScript‖ is scripting Language.

o Interpreter

o Browser

o Server

o Client

Question # 99: solves ―JavaScript‖ complexity and browser


incompatibilities.

o Jhtml

o RQuery

o JQuery PG#179

o J#

Question # 100: is more than one thing happening at the


same time.

o Cohesion

o Congruence

o Coherence

o Concurrency
AL-JUNAID TECH INSTITUTE
Question # 101: Which of the following ―Event ―properties is used with
―key press event‖ to determine the numeric code for the key that was
pressed? .

o Page X

o Which PG#187

o Shift Key

o Target

Question # 102: Which of the following is correct way to temporarily


stop execution of athread object named as ―myThread‖ for 500
milisec?

o myThread.Sleep(0.50);

o myThread.Stop(0.05);

o myThread.Sleep(500);

o myThread.Stop(500);

Question # 103: HTML is a helper function.

o RQuery

o Browser

o jQuery PG#184

o JS
Question # 104: Which of the following server(s) support ―AJAX‖?

o Both SMTP and HTTP

o HTTP

o www

o SMTP

Question # 105: Why we use ―Alloc‖ message?


AL-JUNAID TECH INSTITUTE
o To create a class

o To create an instance

o To extend functions

o To inherent methods

Question # 106: Objective – c introduces messaging


in c?

o Smalltalk style PG# 197

o Short session

o Group

o New Style

Question # 107: Threadpool create and reduce real threads using


hillclimbing algo to
.

o To maximize CPU usage Pg#160

o To reduce the cost of thread creation

o To maximize memory utilization

o To minimize CPU usage

Question # 108: Which of the following is not handled by the ―Task Parallel
Library (TPL)‖?

o Partitioning of the work

o Progress report handling

o Scheduling of threads

o Scales the degree of concurrency


Question # 109: "Callback" method is used to the operation.
o Terminate
o Pause
AL-JUNAID TECH INSTITUTE
o Invoke
o Revoke
Question # 110: While dealing with "threads" in ".Net", one can avoid
performance bottlenecks and enhance the overall responsiveness of his
/ her application by using
programming.
o Multithreading programming
o Synchronous programming
o Parallel programming
o Asynchronous programming
Question # 111: Interact with web page layout

o Java script

o HTML

o XML

o DOM

Question # 112: are high order functions that compose,


combine, or otherwisemodify functions in useful and interesting ways.

o Combinators

o None of the given

o Separators

o Modifiers

Question # 113: Which of these are defined as the model object?

o UILabel *questionField;

o NSMutableArray *questions@field;

o NSMutableArray *questions; PG # 205

o Question= 0;
AL-JUNAID TECH INSTITUTE
Question # 114: Which of the following "Event" property is used to
show the "distance (inpixels)" of the mouse pointer from top edge of the
Monitor?

o ScreenY PG#187
o pageX
o pageY
o ScreenX

Question # 115: What is ―nil‖ like?

o Null Page # 197

o zero

o terminate

o move to new line


Question # 116: Which of the following "Event" property is used to
show the "distance (inpixels)" of the mouse pointer from top edge
of the browser window?

o pageY Page # 187

o pageX

o screenX

o screenY

Question # 117: Observe the following piece of code taken out from
Main() function: Thread myThread = new Thread (Go); myThread.Strat();
myThread.Join(); What will be the effect ofinstruction myThread.Join()?

o Execution of myThread will be joined with existing running threads

o myThread will be executed after Main thread is completed

o Main thread execution will be suspended till completion of


myThread

o Both Main thread and myThread can now

share the data Question # 118: What message


AL-JUNAID TECH INSTITUTE
is used to send to destroy the object?

o stop

o delete

o free

o release

Question # 119: What is NSMutableArray?

o Object

o Class Reference

o Method

o Group

Question # 120: AJAX stands for .

o Abstract JSON and XML

o Asynchronous JavaScript and XHtml

o Asynchronous JavaScript and XML


o Abstract Java and XML Library

Question # 121: What is the purpose of the following "JQuery" code?


$(‗#navbar a‘)

o Find all the element whose name is navbar and then find a
descendent a

o Find all the element whose name is navbar and then find a
ancestor a

o Find all the element whose ID is navbar and then find a


AL-JUNAID TECH INSTITUTE
descendent a

o Find all the element whose ID is navbar and then find a ancestor
a

Question # 122: The pairing of labels and arguments is an important


feature of .

o C++

o Scripts

o Objective-C page # 197

o PHP
Question # 123: Web servers receive request and responds as .

o Html only

o Plan Text only

o JSON only

o Html, plain text and JSON Page #192


Question # 124: Which of the following class supports data
parallelism in "Task ParallelLibrary"?
o System.Threading.Tasks
o System.Task.Parallel
o System.threading.Task.Parallel

System.Task.Threading.Parallel Question # 125: Which of the


following "Event" property is used to show the "distance (inpixels)"
of the mouse pointer from left edge of the Monitor?
o pageX
o pageY
o ScreenY
o ScreenX PG# 187
AL-JUNAID TECH INSTITUTE
Question # 126: which of the following response show file not found error?

o 404

o 500

o 200

o 304
o

You might also like