header1.html

Friday 19 April 2013

MCQ's for Computer Awareness SEction for Govt. Jobs

MCQ's
Are you in a hurry for answers? Click directly on "Click for answer"....
[+] Data Communication and Networking
[+] Computer Section IBPS
 
[+] Computer Awareness Govt Jobs
[+] Sample Question Paper Bank PO
 

Thursday 18 April 2013

SilverLight Quiz-1


SilverLight Quiz-1
1.Microsoft Silverlight is a cross-browser, cross-platform implementation of the .NET Framework for building and delivering the next generation of media experiences and rich interactive applications (RIA) for the Web.
True
False


2. Silverlight uses.....to ease UI development
XSL
XML
HTML
XAML


3.XAML provides a declarative markup syntax for creating elements.
True
False


4.Silverlight platform as a whole consists of 3 major parts Core presentation framework,.NET Framework for Silverlight and Installer & updater.
True
False


5. which of the following is used to Support the dynamic compilation and execution of scripting languages such as JavaScript and IronPython to program Silverlight-based applications.
CLR
JIT
DLR
All of above


6. Which feature enables developers to query XML data directly within .NET Framework programming languages?
XmlReader and XmlWriter
LINQ
XLinq
None of above


7.To run a Silverlight web application, users require a small plug-in in their browser.
True
False


8.What is namespace of Brush class?
System.Windows
System.Windows.Media
System.Windows.Controls
System.Windows.UIElement


9.A XAML namescope stores relationships between the XAML-defined names of objects and their instance equivalents.
True
False


10.In relationship to WPF XAML, Silverlight XAML uses a shared default XAML namespace, and has an approximate WPF-subset relationship for its XAML vocabulary.
True
False

ASP.NET Quiz-5


ASP.NET Quiz-5
1.Which database is the ADO.NET SqlConnection object designed for?
Access
Microsoft SQL Server
MySQL
Oracle


2.The first step of configuring a DataAdapter is to select:
a connection object
an adapter object.
a database object
a dataset object


3.Which DataAdapter Query Type can be used with the Access database?
Use SQL statements
Create new stored procedure
Use existing stored procedure.
Both a and b.


4.Which is not an ADO.NET DataAdapter Object?
OleDbDataAdapter
SQLDataAdapter
QueryDataAdapter
None of above


5.Which type of object has the Generate Dataset method?
Adapter object
Connection object
Dataset object
Database object


6.Which object does the data-aware control bind to?
Dataset
DataAdapter
Connection
Both a and b


7.What is the proper code to put data into the dataset called CustomerDataset using the CustomerDataAdapter object?
CustomerDataset.Fill(CustomerDataAdapter)
CustomerDataAdapter.Fill(CustomerDataset)
CustomerDataset.Load(CustomerDataAdapter)
CustomerDataAdapter.Load(CustomerDataset)


8.Which object contains the Position property of the current record in a dataset?
BindingContext
BindingData
DataBinding
DataContext


9.The first record in a dataset has a position property of:
zero
one
any value defined by the programmer
Both a and b.


10.Which below is specified by the DataMember Property?
Connection object
DataAdapter object
Database field
Database table

ASP.NET Quiz-4


ASP.NET Quiz-4
1.Client-side state management techniques are appropriate when using:
sensitive information
critical applications.
an intranet
Both a and b


2.Where does the query string store information?
HTML source
Text file
URL
server


3. Where do cookies store information?
HTML source
Text file
URL
server


4.Which client-side technique is specific to ASP.NET?
Cookies
QueryString
ViewState
All of above


5.What symbol specifies the beginning of a query string?
@
#
$
?


6.Which server-side technique is available in ASP.NET?
Application states
Session states
Database support
Both a and b.


7.An Application variable is created:
when the application is first placed on a web server.
when the web server is first started.
when the first client requests a URL resource
every time a client requests a URL resource


8.A Session variable is created:
when the application is first placed on a web server.
every time a new client interacts with the web application.
every time a client requests a URL resource
when the first client requests a URL resource.


9.Which is not a reason for using a database to store state information?
The capacity to store high volumes of information
The ability to use data mining techniques on the stored information
The ability to use application and session variables
Security from unauthorized use


10.Properties are used to represent
actions
classes
data
events

ASP.NET Quiz-3


This quiz is continuation of My previous Quiz- ASP.NET Quiz-2 which was on basic attributes and events of ASP.NET controls

ASP.NET Quiz-3
1.A postback occurs when
a browser posts a form to the server.
a user’s action activates the handling of a server event.
a server posts a form to the client.
Both a and b.


2.When does a “round trip” start in a web application?
The server requests an action from the user.
The user activates a server control event
The browser posts a form to the server.
The server processes a control event.


3.When an ASP.NET file is placed on an IIS server and viewed through a browser, the resulting HTML page contains:
all ASP.NET code
as much ASP.NET code as is in the ASP.NET file
a mix of ASP.NET and HTML code.
all HTML code.


4. What is the extension for a Visual Basic web form code file?
.asp
.aspx
.aspx.vb
.asp.vb.net


5. Which user action will not generate a server-side event?
Mouse Move
Text Change
Button Click
Both a and b


6.Because of the latency of a round-trip on the internet:
the interface and code of a web form are stored in separate files
only some user actions, such as button clicks, will generate events.
it is best to use server-side control
web applications should be coded in Visual Basic


7.Which layer is exemplified by the use of ADO.NET?
Application
Logical
Data
Presentation


8.How will using a middle tier typically affect the number of connections to a database?
Increase the number
Have no effect on the number
Decrease the number
It depends on the type of client


9.Which is a valid type of state management for the creation of web pages?
Client side
Server side
Data side
Both a and b


10.The stateless HTTP protocol refers to web pages created:
on a web server
without information from a database
without knowledge of previous web pages.
before a request from a client.
Please Have look on Simple ASP.NET Quiz

ASP.NET Quiz-2


ASP.NET Quiz-2
1.Which property allows ASP.NET controls to maintain their values when a page is posted to itself.
AutoPostBack
SaveValue
MaintainValue
EnableViewState


2.Which property determines whether a control is displayed to the user?
Hide
Show
Visible
Enabled


3. The Button control can be activated
programmatically through the click event.
by clicking the button with the mouse.
with the form’s DefaultButton property.
Both a and b.


4.In event-driven programming an event is generated by.....
the system
a user’s action
the program itself.
All of the above


5.Which is not a common control event?
Click
SingleClick
DoubleClick
MouseMove


6.The Tick event is found only in which object?
Form
Button
Timer
TextBox


7.The Activated event is found only in which object?
Form
Button
Timer
TextBox


8.Which is not a valid value for the ListBox SectionMode Property?
None
One
MultiSimple
All of the above


9.Setting the SelectedIndex property of a ListBox to -1 will...
cause an error
de-select any selected item.
cannot be done.
select first item.


10.Which method of a ListBox will remove just one item at a time?
Items.RemoveAt
Item.RemoveAt
Items.ClearAt
Item.ClearAt

SilverLight Quiz-2


SilverLight Quiz-2
1."Silverlight applications operate within security sandbox." True or False?
True
False


2.What is the root element of AppManifest.xaml file?
Assemblies
Deployment
AppManifest
None of above


3.When .xap file get created?
After debugging silverlight application
After compiling silverlight application
After building silverlight application
None of above


4.The AppManifest.xaml file contains the deployment details needed to run the Silverlight application.True or False?
True
False


5. A basic xap file will have.....
Only dlls of application
dlls and resources
an application manifest file and dlls
None of above


6. How can I create silverlight application?
XAML
Visual Studio
Expression Blend
All of above


7.......enable you to animate using more than two target values, and control an animation's interpolation method.
Graphics
Key-frame animations
DoubleAnimation
None of above


8.Which of following is not layout in silverlight?
GridLayout
StackPanel
Canvas
Table


9.Application hosting does not require configuration settings on the host Web server and within the host Web page.True or False?
True
False


10......Configures XAML markup compilation to join partial classes between markup and code-behind.
x:Name
x:Key
x:Class
All of above

AJAX Quiz-5


AJAX Quiz-5
1. WebCrawler does not execute JavaScript code,so you should not use AJAX in commercial sites.
True
False


2.Choose the server-side JavaScript object?
FileUpLoad
Function
File
Date


3.Choose the client-side JavaScript object?
Database
FileUpLoad
File
Cursor


4.Is it possible cancel an Asynchronous postback?
Yes
No


5.which tool is used to debug ASP.NET AJAX applications ?
Fiddler
Firebug
Both
None of these


6.Is it possible to use FileUpload control within the update panel?
Yes
No


7.Is it compulsory to have Script manager on the page when you are using any control of ajax control tool kit?
Yes
No
No need


8.Is there any property names “IsNavigating”?
Yes
No


9.Uninitialized state of XMLHttpRequest object refers to the state when the object has not been initialized.
True
False


10.Sent state of XMLHttpRequest object refers to the state when the object has been created; however, the send function has not been invoked.
True
False

AJAX Quiz-4


AJAX Quiz-4
1.__________ JavaScript is also called server-side JavaScript.
Microsoft
LiveWire
Navigator
Native


2. Is the AjaxControlToolkit.dll file installed in the Global Assembly Cache?
Yes
No


3.Extensible HTML (XHTML) is a markup language that provides....
the mixture expressions of HTML and Javascript.
the mixture expressions of HTML and XSL.
the mixture expressions of HTML and XML.
All of above


4.If you want to create a secure application you should not use AJAX.
True
False


5. If you want the page to show in a search engine, you must use AJAX.
True
False


6.Which of following has AJAX is a built-in functionality?
.NET Framework 3.5
.NET Framework 2.0
.NET Framework 3.0
.NET Framework 4.0


7._____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.
Client-side
Server-side
Local
Native


8.Which of the following is not a valid JavaScript variable name?
21abc
abc21
_abc
None of above


9.Which of the following attribute can hold the JavaScript version?
SCRIPT
LANGUAGE
VERSION
None of above


10.What is the correct syntax for referring to an external script called " myScript.js"?
<script href=" myScript.js">
<script name=" myScript.js">
<script src=" myScript.js">
None of above

AJAX Quiz-3


AJAX Quiz-3
1.The.....property holds the status of the XMLHttpRequest.
onreadystatechange
readyState
status
done


2. .....stores a function (or the name of a function) to be called automatically each time the readyState property changes.
onreadystatechange
readyState
status
All of above


3.A callback function is a function passed as a parameter to another function.True or False?
True
False


4.AJAX can not be used for interactive communication with an XML file.
True
False


5.AJAX is not a new programming language, but a new way to use existing standards.
True
False


6.JSON is not a safe data interchange format in JavaScript, which is also difficult to understand.
True
False


7. (a)It is difficult to bookmark a particular state of the application.(b)Response time may be slow because different controls of a page are loaded at different time. What is true about AJAX?
a
b
a & b
both are false


8.Can we call server-side code from JavaScript?
Yes
No
Can't say


9.Can we nest the UpdatePanel controls?
Yes
No


10.Is it possible to use multiple ScriptManager controls on a Web page?
Yes
No

AJAX Quiz-2


AJAX Quiz-2
1.Ajax uses XML for coding and transferring formatted information between server and client.True or False?
True
False


2. Sending a Ajax request to web server
Push & pop
Open & send
Demand & get
Req & receive


3.Control that group of server control and monitored their post back and rendering process
UpdateControl
UpdatePanel
UpdateControlPanel
Iframe


4.__________ajax control enables you to place scripts and service into your content page.
ScriptManager
Panel
ScriptManagerProxy
Timer


5. In ajax how the request will be processed?
HttpXmlRequest
Httprequest
XMLHttpRequest
None of these


6. _____________ control includes downloading Microsoft Ajax Library scripts to the browser and coordinating partial-page updates that are enabled by using updatepanel controls.
ScriptManager
UpdatePanel
Timer
UpdateProgress


7.The XMLHttpRequest object can be used on subdomain1.mysite.com to request a page located at subdomain2.mysite.com according to the specification.
True
False


8.JavaScript/DOM is used to display/interact with the information.True or False?
True
False


9.setRequestHeader()method adds HTTP headers to the request.
True
False


10.If the response from the server is not XML, use the.....property.
responseXML
responseText
innerHTML
None of above

Tuesday 9 April 2013

ASP.NET Quiz-1


ASP.NET Quiz-1
1.If page output caching,________caching persists specific portions of a page and lets other portion of the page be created dynamically ?
Partial page
Full page
Custom
semi


2.By using an ,_________ , the data is separated from html, and any changes to the items are made in the separated data source .
Incorporate source
Join
Link
Imported source


3.Asp.net object is used to get information about web servers?
Session Object
Application
Request
Server object


4.The __________ namespace contain classes for accessing and managing data from diverse sources
System.Data
System.IO
System.Reflection
System.Object


5. When an ASP.NET server control is added to a Web Form, Visual Studio .NET adds one item to the class for the form. What item is added ?
The event registration
A protected class member for the control
A default event handler for the click event
A default class that inherits from the control’s base class


6.What attribute must be set on a validator control for the validation to work ?
Validate
ValidateControl
ControlToBind
ControlToValidate


7.What HTML element is the asp:Label control rendered as when the target is Internet Explorer ?
label
span
div
table


8.Given an ASP.NET Web Form called WebForm1,what class does the WebForm1 class inherit from by default?
System.Web.Form
System.Web.GUI.Page
System.Web.UI.Page
System.Web.UI.Form


9.What is the Web.config file used for ?
To store the global information and variable definitions for the application
Configures the time that the server-side codebehind module is called
To configure the web server
To configure the web browser


10.After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t execute. What could the problem be ?
The AutoEventWireup attribute is set to False
The AutomaticPostBack attribute is set to False
The codebehind module is not properly compiled
The ListBox must be defined WithEvents

C# Quiz-6(Events & Delegates)


C# Quiz-6(Events & Delegates)
1.A(an)...is the encapsulation of the idea that "something happened" to which the program must respond.
event
delegate
event-delegate model
None of above


2.-= operator is used to remove a delegate from a (possibly composite) field.
True
False


3. What will be output of following program?
delegate void MyDelegate(int i);
class Program
{
   public static void Main()
   {
      TakesADelegate(new MyDelegate(DelegateFunction));
   }
   public static void TakesADelegate(MyDelegate SomeFunction)
   {
      SomeFunction(21);
   }
   
   public static void DelegateFunction(int i)
   {
      System.Console.WriteLine("Called by delegate with number: {0}.", i);
   }
}

Compile time error
Called by delegate with number: 21.
Runtime error
None of above


4.Suppose on pushing a button an object is to be notified, but it is not known until runtime which object should be notified. Which of the following programming constructs should be used to implement this idea?
Attribute
Delegate
Namespace
Interface


5.Which of the following statements are correct about delegates?
Delegates cannot be used to call a static method of a class.
Delegates cannot be used to call procedures that receive variable number of arguments.
If signatures of two methods are same they can be called through the same delegate object.
Delegates cannot be used to call an instance function. Delegates cannot be used to call an instance subroutine.


6.delegate is a....
reference type
value type
both
none of above


7.A delegate defines....
a means of passing arrays into methods
a substitue for an inherited method
a class that encapsulates methods
None of above


8.An Event is
The result of a users action
result of a party
code to force users action
None of above


9.An event declaration defines a type that encapsulates a method with a particular set of arguments and return type.
True
False


10.A delegate can either be called asynchronously by using BeginInvoke and EndInvoke methods.
True
False