0% found this document useful (0 votes)
8 views21 pages

Questionaire

The document contains a series of multiple-choice questions and answers related to programming concepts, specifically focusing on C#, ASP.NET, ADO.NET, JavaScript, and jQuery. It covers topics such as data types, object-oriented programming principles, web server controls, and jQuery functionalities. The format includes questions followed by options and the corresponding correct answers for each question.

Uploaded by

Pallavi Gond
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views21 pages

Questionaire

The document contains a series of multiple-choice questions and answers related to programming concepts, specifically focusing on C#, ASP.NET, ADO.NET, JavaScript, and jQuery. It covers topics such as data types, object-oriented programming principles, web server controls, and jQuery functionalities. The format includes questions followed by options and the corresponding correct answers for each question.

Uploaded by

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

No.

Questions
c)6
1 d)24
c) Int
2 d) Unsigned Int

c)6
4 d)12
5 The Default value of Boolean Data Type is?
b) Constants
6 c) Variable
b) 2
7 c) Any number
8 What is the return type of constructors?
b) class
a) int
9 c) constructor
c) private
10 d) public
c) lengthof
11 d) length
b) Polymorphism
12 c) Abstraction
b) Sealed class
13 c) Abstract class
c) Structures
14 d) Events
b) Method overriding
15 c) Encapsulation
16 What are C# attributes ?
17 Four Pillars of OOPS ?
c)Abstraction,Singleton,Inheritance,Polymorphism
d)All of the above.
18 Multiple inheritances are possible with the classes?
a)Yes
b)No
19 Can interface contain both declaration and defination part?
a)Yes
b)No
C)Break
20 D)Continue
c)Sealed Method
21 d)Expression Method
A)Yes
22 B)NO
d)system
23 e)event
24 What is "this" pointer ?
c)Points to the object for which the method is called.
d)All Of the Above
A)Yes
25 B)NO
A)Yes
26 B)NO
27 Abstract class must have only abstract methods. Is it true or false?
A)True
B)False
28 Explain life cycle of an ASP page.
c)PreInit, Init, InitComplete, OnPreLoad, Load, PostBack, LoadComplete, OnPreRender, OnSaveStateComplete, Render, a
d)None Of the Above
29 How do you identify that the page is PostBack?
b)By Checking IsPostBack Property.

30 What is the parent class of all web server control?


c)System.IO
d)System.Web.UI.Control
Answers
8 Byte.
Int

4 Bytes
FALSE
Variables
c)Any Number.
d) none of the mentioned

c)Constructor
c)Private
d)length
b)Polymorphism
c)Abstract class
c)Structures
a) Method overloading
C# provides developers a way to define declarative tags on certain entities,
eg. Class, method, etc. are called attributes

b)Abstraction,Encapsulation,Inheritance,Polymorphism

b)No .

b)No .
D)Continue
a)Abstract Method
A)Yes
c)Exception

d)All Of the Above


b)No
A)Yes

B)False

c)PreInit, Init, InitComplete, OnPreLoad, Load, PostBack, LoadComplete, OnPreRender, OnSaveStateComplete, Render, and UnLoad

b)By Checking IsPostBack Property.

d)System.Web.UI.Control
StateComplete, Render, and UnLoad
ASP.Net Questions

b)WebForms
1 c)WinForms

c)To configure the web server


2 d)To configure the web browser

b)Page_Load()
3 c)Page_Click()

c) System.Web.GUI.Page
4 d) System.Web.Form

c)ViewState
5 d)All the above

c) Both a and b
6 d)none of the above

c)Regular Expressions
7 d)Irregular Expressions

a)Yes
8 b)No

c)5
9 d)10

c)SMTP
10 d)None of the above.

c)Dummy cookies
11 d)Options A and B are correct

c)In MasterPage file


12 d)None of the above

c)Improved performance
13 d)All of the above

c)IsValid
14 d)IsPostBack

c)Forms Authentication.
15 d)All of the above.

c)Page Class
16 d)Browser Class

c)After the Init() after the Page_load()


17 d)After the Init()

c).asdx
18 d).asmx

c)Smtp
19 d)Http
c)WebApplication
20 d)Browser

c)Character
21 d)Date

c).asdx
22 d).asmx

c)System.document
23 d)None of Above

c)Page_Loadcompelete()
24 d)Page_Unload()

b)Out-of-Process
25 c)In-Process

c)Page load compelete event


26 d)page preload event

c)Regular Expression Validator


27 d)Compare Validator

c)Fragment Caching
28 d)None of above
Answer

b)WebForms

b)To store the global information and variable definitions for the application

a)Page_Init()

a) System.Web.UI.Page

d)All the above

c)Both a and b

c)Regular Expressions

a)Yes

a)1

a)HTTP

d)Options A and B are correct

b)In Web.config file

d)All of the above

d)IsPostBack

d)All of the Above

c)Page Class

a)After the Init() before the Page_load()

b).aspx

d)Http
a)FrameWork

c)Character

d).asmx

b)System.Resources

d)Page_Unload()

a)In-Out-Process

b)Page load event

c)Regular Expression Validator

c)Fragment Caching
Ado .net

c)Use existing stored procedure.


1 d)All of the above.

d)SQLCommand object allows user to interact with the server.


2

d)Data Link Layer


4

c)No, a DataView cannot be used to filter rows in a DataTable


5

d)None of the above


6

7 Ado.Net connection object us used to establish connecton betweena)Application and databaseb)Application and data

c)Thread.Abort()
8 d)Threads.Abort()

c)State
9 d)Connectionstate

c)Execute Scalar
10 d)Execute Reader

c)30 Seconds
11 d)40 Seconds

c)Data Source=Admin\SQLEXPRESS;Initial Catalog=DBSensys;Integrated Security=False


12 d)All the Above

c) Both a and b
13 d) None

c)Data Record
14 d)DataRow

c)GetXML()
15 d)ViewXML()

c)PHP
16 d)Javascript

d)Params
17

c)It is set to be collection of data with a tabular row representation


18 d)It is set to be collection of data with a tabular field representation

c)Catalog Initial
19 d)Database
c)Disconnected data access
20 d)All the above

c)any value defined by programmer


21 d)All the above

c)No. of effected Records


22 d)None of above

c)ActiveDataObjectNetwork
23 d)AccessDataObjectsNetwork

c)Execute Reader
24 d)ExecuteQuery

c)QueryDataAdapter
25 d)All the above
Answers

a)Use SQL statements.

b)SQLCommand object allows user to interact with the database

d)All the above

d)Data Link Layer

b)Yes, by setting the RowFilter property of the DataView

b)DataSet

c)Application and the datasource

c)Thread.Abort()

c)State

c)Execute Scalar

c)30 Seconds

a)Data Source=Admin\SQLEXPRESS;Initial Catalog=DBSensys;Integrated Security=True

c) Both a and b

c)Data Record

b)ReadXML()

a)XML

d)Params

a)It is set to be collection of data with a tabular column representation.

b)Initial Catalog
d) All the above

a)Zero

b)Object

a)ActiveX Data ObjectsNetwork

d)ExecuteQuery

c)QueryDataAdapter
JavaScript

C. They both originated on the island of Java


1 D. None of the above

C. A central machine deep within Netscape's corporate offices


2 D. None of the above
C. LiveWire
3 D. Native

C. Local
4 D. Native

C. The END statement


5 D. None of the above

C. Accept parameters
6 D. None of the above

C. FirstAndLast
7 D. None of the above

C. <HEAD>
8 D. <TITLE>

C. The number of seconds since Netscape's public stock offering.


9 D. None of the above

C. document.write("Hello World")
10 D. response.write("Hello World")

C. <script>
11 D. <javascript>

C. <script src=" abc.js">


12 D. None of the above

C. Describes certain low-budget movies.


13 D. None of the above

C. Switch
14 D. For

C. dateObjectName := new Date([parameters])


15 D. dateObjectName Date([parameters])

A. True
16 B. False

C. It is variable which contains value


17 D. None of the above

A. False
18 B. True

C. 7
19 D. 78

C. ParseFloat
20 D. Efloat
c. XMLHttpRequest
21 d. All of the mentioned

c. Referenced
22 d. Inline

C. Close(val)
23 D. Close()

C. Slice
24 D. Splice

C. Preprocessor
25 D. Triggering Event

C. High-level
26 D. Assembly-language

C. Data types
27 D. Declaration statements

C. When the function is defined as expressions


28 D. When the function is defined as a looping statement

C. main
29 D. function

C. goto statement
30 D. break statement

C. page.refresh
31 D. window.reload
Answers

B. JavaScript's syntax is loosely based on Java's

A. The User's machine running a Web browser

B. Navigator

A. Client-side

A. The </script>

C. Accept parameters

A. 2names

A. <SCRIPT>

A. The number of milliseconds since January 1st, 1970

C. document.write("Hello World")

C. <script>

C. <script src=" abc.js">

A. Enclose text to be displayed by non-JavaScript browsers.

B. If

A. dateObjectName = new Date([parameters])

A. True

A. It refers current object

A. False

D. 78

A. Eval
c. XMLHttpRequest

d. Inline

D. Close()

D. Splice

B. Function/Method

B. Object-Based

D. Declaration statements

C. When the function is defined as expressions

D. function

B. return statement

A. location.reload
1 c)Commonly
What are theimplemented
advantages UI
of related
jQuery? functionalities are written using minimal lines of codes
d)All of the above.

2 a)jQuery
Does jQuery work
works onlyfor
for both
HTMLHTML and XML documents?
documents.
b)jQuery works only for XML documents.

3 c)The
What is themethod
css() use of css() method
is used in jQuery?
to change text of the selected element.
d)All of the above.

4 c)Used
What istothe significance
count number ofof jQuery.length?
the elements of the jQuery object.
d)None of the above.

5 c)Both
What isa jQuery
& b are click
true. event?
d)Both a & b are false.

6 c)Class
How many types of selectors in jQuery?
d)All of the above.

7 c)Using
Explain add(),remove(),toggle().
how CSS classes can be manipulated in HTML using jQuery?
d)All of the above.

8 c)jQuery.getJSON()
Which are pre-built AJAX requests given by jQuery?
d)All of the above.

9 c)Both
Can youa &tell the false.
b are difference between prop() and attr()s?
d)Both a & b are true.

10 c)jQuery.noConflict()
Which method is used for parsing JSON text?
d)jQuery.done()

11 c)$(“div”).layout(“background-color”,“red”);
Select the correct jQuery code to set the background color of all div elements to red?
d)$(“div”).css(“background-color”,“red”);

12 c)All
Whatspan
doeselements
the following selector select? $("span.first").
with class=“first”
d)All span elements with id=“first”

13 c)jQuery.ajaxSetup()
Which method is used to perform an asynchronous HTTP request?
d)jQuery.ajaxAsync()

14 Select the correct jQuery code for making all div elements 100 px high?
c)$("div").yPos(100)
d)$("<div>").height=“100”

15 c)toggleClass()
Which method is used to switch between adding/removing one or more classes (for CSS) from selec
d)switch()

16 c)All
Whatpdoes the following
elements selector
inside a div elementselect $("div p")?
d)None of the above

17 c)All
Whatelements
does thecontaining
followingthe
selector select $(":disabled")?
text “disabled”
d)All disabled input elements

18 c)Only
Can theproperties
animate()containing
method be used values
numeric to animate ANY CSS property?
d)All properties except the shorthand properties

19 c)jQuery.foobar()
$.foobar() is equivalent to which of the following below??
d)None of the above
// Some code.
20 c)Both
}); A and B
d)Neither A nor B

21 c)Removing
Query.noConflict(true) is usedfrom
all jQuery variables to for?
the global scope
d)All of the above
$('#mainList').find('li')
22 c)Chaining
.width(1000).addClass('selectedElement');
d)Animating

23 c)They
Select the correct
allow options
to remove relating
the odd to the
or even :odd and
elements :even filters?
appropriately.
d)None of the above

24 c)$(‘span.grey:first’)
Which of the following code fetches the first span on the page, which has the class ‘grey’?
d)None of the above

25 c)slowdown()
What function is used to stop your jQuery for a few milliseconds?
d)pause()
B. the ? Sign
26 C. the $ sign

27 A.
With
All jQuery, look at the following selector: $("div"). What does it select?
div elements
B. The first div element

28 What scripting language is jQuery written in?


C. C#
D. C++

29 C.
Which jQuery method should be used to deal with name conflicts?
nameConflict()
D. conflict()

30 C.
Which of is
/* This these is NOT a valid comment in JavaScript?
a comment
D. <!-- This is a comment.

31 C.
jQuery's main focus is..
Animations
D. All of the above

32 C.
You can attach a handler to an event using which method?
attach
D. eventAttach

33 c)
The speed options can be applied to which jQuery functions?
toggleCss
d) All of the above
d)All of the above.

a)jQuery works only for HTML documents.

b)The css() method is used to change style property of the selected element.

c)Used to count number of the elements of the jQuery object.

c)Both a & b are true.

d)All of the above.

a)Using addClass(),removeClass(),toggleClass().

d)All of the above.

d)Both a & b are true.

b)jQuery.parseJSON()

elements to red?
d)$(“div”).css(“background-color”,“red”);

c)All span elements with class=“first”

b)jQuery.ajax()
a)$("div").height(100)

ore classes (for CSS) from selected elements?


c)toggleClass()

c)All p elements inside a div element

d)All disabled input elements

c)Only properties containing numeric values

c)jQuery.foobar()

b)Make sure no code is executed till the DOM is fully loaded

d)All of the above

c)Chaining

b)They allow you to determine if a specific element is in an odd or even position.

h has the class ‘grey’?


c)$(‘span.grey:first’)

b)delay()

C. the $ sign

A. All div elements


B. JavaScript

D. conflict()

C. /* This is a comment

D. All of the above

B. bind

b) show and fadeIn

You might also like