wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz-1-22BCA2-Group-B-Web-development

Total questions: 92

Worksheet time: 1hrs 9mins

Name
Class
Date
1.

CLR is the .NET equivalent of _________.

a)

Java Virtual Machine

b)

Common Language Runtime

c)

Common Type System

d)

Common Language Specification

2.

SOAP stands for __________.

a)

Simple Object Access Program

b)

Simple Object Access Protocol

c)

Simple Object Application Protocol

d)

Simple Object Account Protocol

3.

The ____ language allows more than one method in a single class.

a)

C#

b)

J#

c)

C++

d)

C

4.

Arrays in C# are ______ objects.

a)

Reference

b)

Logical

c)

Value

d)

Arithmetic

5.

The formal-parameter-list is always enclosed in _______.

a)

Square

b)

Semicolon

c)

Parenthesis

d)

Colon

6.

Inheritance is ______ in nature.

a)

Commutative

b)

Associative

c)

Transitive

d)

Iterative

7.

The ______ are the Graphical User Interface (GUI) components created for web based interactions..

a)

Web forms

b)

Window Forms

c)

Application Forms

d)

None of the above

8.

In Microsoft Visual Studio, ______ technology and a programming language such as C# is used to create a Web based application.

a)

JAVA

b)

J#

c)

VB.NET

d)

ASP.NET

9.

Web Forms consists of a _______ and a _________ .

a)

Template, Component

b)

CLR, CTS

c)

HTML Forms, Web services

d)

Windows, desktop

10.

C# doesnot support:

a)

abstraction

b)

polymorphism

c)

multiple inheritance

d)

inheritance

11.

Different ways a method can be overloaded in C#.NET

a)

Different parameter data types.

b)

Different order of parameters

c)

Different number of parameters

d)

All of above

12.

Is it possible to change the value of a variable while debugging a C# application?

a)

Yes

b)

No

13.

Which of the following .NET components can be used to remove unused references from the managed heap?

a)

Class Loader

b)

Garbage Collector

c)

CTS

d)

CLR

14.

A local variable

a)

Can be used anywhere in the program

b)

Is declared within a method

c)

Must accept a class

d)

Represent a class object

15.

Every class directly or indirectly extends the______class.

a)

System

b)

Object

c)

Drawing

d)

Console

16.

File extension used for ASP.Net files

a)

Web

b)

.ASP

c)

.ASPX

d)

None of the above

17.

You can have only one Global.asax file per project

a)

Yes

b)

No

18.

What is the meaning of dot in .Net Framework?

a)

It means OOPS Concept

b)

It means inheritance

c)

It means abstraction

d)

None of the above

19.

Common Type System is built into which of the following?

a)

CLR

b)

RCT

c)

RCW

d)

GAC

20.

What is the full form of .NET Framework?

a)

Domain Network

b)

Data Network

c)

Data Node

d)

None of the above

21.

It is responsible for Type matching.

a)

CTS

b)

CLR

c)

BCL

d)

None of these

22.

The .NET Framework consists of

a)

CLS

b)

CLR

c)

BCL

23.

It provides an object-oriented model that supports the complete implementation of many programming languages

a)

CLR

b)

CLS

c)

BCL

d)

None of these

24.

It defines rules that languages must follow, which helps ensure that objects written in different languages can interact with each other

a)

CLR

b)

CLS

c)

BCL

d)

None

25.

It is responsible for Memory allocation and garbage collection

a)

CLS

b)

BCL

c)

CLR

d)

CTS

26.

Which of these languages are supported by Dot Net Framework

a)

C#

c)

Python

d)

C++

27.

JIT is a component of

a)

CLS

b)

BCL

c)

CLR

d)

None

28.

CLR Stands For ------------------- Language Runtime

(a)  

29.

BCL Stands For

a)

Base Class Laboratory

b)

Base Complex Library

c)

Base Class Library

30.

CLR provides a number of services that includes :

a)

Loading and executing of programs

b)

Memory management & Garbage Collection

c)

Verification of type safety

d)

Code Base & Code Access Security

31.

What makes a language to be .Net compliant

a)

CLS

b)

BCL

c)

JIT

d)

None

32.

These variables directly contain the data

a)

Reference Types

b)

Value Types

c)

Both of them

d)

None of these

33.

These variables contain the addresses

a)

Reference Types

b)

Value Types

c)

Both of them

d)

None of these

34.

Reference types can be :

a)

self-describing types

b)

Value Types

c)

pointer types

d)

interface types

35.

The code, which is developed outside .NET, Framework is known as :

a)

managed code.

b)

unmanaged code.

c)

Mis-managed code.

36.

Applications that do not run under the control of the CLR are said to be

a)

managed code.

b)

Mis-managed code.

c)

unmanaged code.

d)

None

37.

This code is directly executed by CLR

a)

managed code.

b)

unmanaged code.

c)

Mis-managed code.

d)

None

38.

Managed code uses CLR which in turns looks after your applications by

a)

managing memory

b)

handling security

c)

allowing cross - language debugging

39.

During the compile time, the language compiler converts the source code into

a)

Machine Code

b)

MSIL

c)

Object code

d)

None

40.

JIT Stands For

a)

Just In Translate compiler

b)

Just In Transfer compiler

c)

Just In Time compiler

d)

None

41.

The method applied to change the styles of the elements in a ASP.NET webpage is called

a)

Master page

b)

child page

c)

cascading style sheets

d)

UTF-8

42.

Which of the following web server control display static text that can change at runtime?

a)

Hyperlink

b)

Textbox

c)

Label

d)

None of these above

43.

How many types of authentication ASP.NET supports?

a)

Windows Authentication.

b)

.NET Passport Authentication.

c)

Forms Authentication.

d)

All of the above.

44.

Which web server control is used to display advertisements in ASP.NET a webpage?

a)

Image

b)

Imagemap

c)

Panel

d)

AdRotator

45.

Using which type of stylesheet we can change the style of an element in the entire website?


a)

Internal Stylesheet

b)

External Stylesheet

c)

Inline stylesheet

d)

None of these above

46.

Which of the following is the common property of web server controls that assigns a small piece of text when a mouse pointer is held over the control for a short period of time?

a)

Access key

b)

ToolTip

c)

skinID

d)

TabIndex

47.

The @Implements directive

a)

imports a namespace into current page page or user control

b)

assigns a class or virtual path used to type the Master property of a page

c)

indicates that a page or user control implements a specified .NET Framework interface

d)

none of these above

48.

Which of the following server control shows data in a tabular format and allows sorting, paging, edit, delete each record?

a)

List Box

b)

Grid View

c)

Repeater

d)

None of these above

49.

By using which of the following web server control data can be retrieved from a relational database?

a)

ObjectDataSource

b)

SqlDataSource

c)

AccessDataSource

d)

XmlDataSource

50.

By using which of the following attribute, HTML elements are transformed to HTML server control?

a)

runat="client"

b)

runat="server"

c)

runat="browser"

d)

runat="host"

51.

AccessDataSource Control work with which of the following file types?

a)

.mpd file

b)

.mdf file

c)

.mdb file

d)

.myd file

52.

Choose the correct option about the Integrated Security property of connection object.

a)

If Integrated Security=false then User ID, and Password must be specified in the connection string.

b)

If Integrated Security=true then current Windows account credentials are used for authentication.

c)

Both A and B option are correct.

d)

None of the above.

53.

Using CustomValidator server control

a)

a developer can compell users to fill all the required fields

b)

a developer can sreate pop up menu

c)

a developer can write custom validation function as needed

d)

none of these above

54.

What are the ways to set Display property of validation controls to display error messages in case of client validation?

a)

Static

b)

Dynamic

c)

None

d)

All of these above

55.

Which of the following is not a .NET compatible language?


a)

C#

d)

Java

56.

Which type of validation works with exceptions that is thrown if an error occurs when a value is edited or when a new value is inserted into the data model?

a)

DynamicValidator

b)

RegularExpression Validator

c)

CustomValidator

d)

RangeValidator

57.

 You use the ASP.NET Web Site Administration Tool to configure ASP.NET membership with forms authentication. What should you name your login form so that you do not have to modify the Web.config file?

a)

Login.aspx

b)

LoginPage.aspx

c)

Default.aspx

d)

Auth.aspx

58.

Default Session data is stored in ASP.Net.

a)

StateServer

b)

Session Object

c)

InProcess

d)

all of the above

59.

 How will you specifying the Cache Location?

a)

You can use browser settings to specify where a page is cached.

b)

You can use the Location attribute of the < %@ OutputCache %> directive to specify where a page is cached.

c)

You can use the Location attribute in QueryString to specify where a page is cached.

d)

None of the above.

60.

Which of these data source controls do not implement Caching?

a)

XmlDataSource

b)

SqlDataSource

c)

LinqDataSource

d)

ObjectDataSource

61.

Ado.net is a data bridge between ____ and _____

a)

applications and databases

b)

Client and Server

c)

client and client

d)

server and server

62.

__________ Object is handling the part of physical communication between the C# application and the Data Source.

a)

Connection

b)

Command

c)

Data Provider

d)

Data Set

63.

Which Object helps us to connect to an SQL server database.

a)

Sql Connection object

b)

OleDbConnection object

c)

OracleConnection

d)

OdbcConnection

64.

________ function is used to execute an SQL statement and return a single value.

a)

ExecuteScalar

b)

ExecuteNonQuery

c)

ExecuteReader

d)

ExecuteXMLReader

65.

_____ objects hold a read-only, forward-only stream of data from a database.

a)

DataReader

b)

DataAdapter

c)

Connection

d)

Command

66.

_____ method is used to access one by one record from the DataReader.

a)

Read()

b)

Reads()

c)

Reader()

d)

readf()

67.

What are the Command Object Methods?

a)

ExecuteNonQuery

b)

ExecuteReader

c)

ExecuteScalar

d)

All of the above.

68.

Which ado.net class provide a disconnected environment?

a)

DataReader

b)

DataSet

c)

Command

d)

None of the above.

69.

In the connected access of ADO.net

a)

Database concurrency is difficult to control

b)

Data is not always up to date

c)

Conflicts may occur

d)

There must be a constant network connection

70.

In the connected environment the connection object

a)

is used to execute the SQL command

b)

is specified in the web.config

c)

is associated with a connection string

d)

this object is from the disconnected environment

71.

The dataReader object of the connected environment

a)

is used only with select statements

b)

is used only with insert statements

c)

is always used, with all SQL statements

d)

is used only with delete statements

72.

The dataReader object of the connected environment

a)

recovers all data resulting from a select in memory

b)

is a pointer to the result of a select statement

c)

you need to use the Progress method to move forward

d)

is assigned to the command object

73.

What are the Command Object Methods?

a)

ExecuteNonQuery

b)

ExecuteReader

c)

ExecuteScalar

d)

All of the above.

74.

The first record in a dataset has a position property of:

a)

zero

b)

one

c)

any value defined by the programmer

d)

All of the above

75.

Which ado.net class provide a disconnected environment?

a)

DataReader

b)

DataSet

c)

Command

d)

None of the above.

76.

What information is specified in the Connection tab of the DataLink window?

a)

Database login

b)

Database name

c)

Database type

d)

All of the above.

77.

Which of the following is true for ADO.NET DataSet?

a)

DataSet provides a disconnected view of a data source.

b)

Dataset enables to store data from multiple tables and multiple sources

c)

We can create a relationship between the tables in a DataSet.

d)

All of the above is true

78.

Which of the following are well-formed XML fragments?

a)

a. < myElement myAttribute=”someValue’/>

b)

b. < myElement myAttribute=someValue/>

c)

c. < myElement myAttribute=’someValue’>

d)

d. < myElement myAttribute=”someValue”/>

79.

How many root elements can we have in XML?

a)

a. 1

b)

b. 2

c)

c. 3

d)

d. 0

80.

What is DTD?

a)

a. Document type Determination

b)

b. Determination Type Defination

c)

c. Document Text Definition

d)

d. Document Type Definition

81.

Which statement is true?

a)

XML tags are case sensitive

b)

XML documents must have a root tag

c)

XML elementss must be properly closed.

d)

All of the above.

82.

What is the correct syntax of the declaration which defines the XML version?

a)

<xml version="1.0" />

b)

<?xml version="1.0"?>

c)

<?xml version="1.0" />

d)

<?xml version="1.0" /

83.

What does XML stand for?

a)

eXtra Modern Link

b)

eXtensible Markup Language

c)

X-Markup Language

d)

Example Markup Language

84.

The need of using a DTD in developing XML document is?

a)

a. Required when validating XML documents.

b)

b. No longer necessary after the XML editor has been customized.

c)

c. Used to direct conversation using an XSLT processor.

d)

d. A good guide to populating templates to be filled in when generating an XML document automatically.

85.

What is XSLT?

a)

Extensible Standard Language Transformation

b)

Extensible Sytlesheet Language Transformation

c)

Extensible Standard List Transformation

d)

Extensible Sytle Language Transformation

86.

Which statement is true?

a)

XML tags are case sensitive

b)

XML documents must have a root tag.

c)

XML elements must be properly closed.

d)

All of the above.

87.

How to specify the attributes with multiple values?

a)

a. < myElement myAttribute=”value1” myAttribute=”value2”/>

b)

b. < myElement myAttribute=”value1 value2”/>

c)

c. Attributes cannot have multiple values.

d)

d. < myElement myAttribute=”value1, value2”/>

88.

Which of the following strings are a correct XML name?

a)

my Element

b)

#myElement

c)

_myElement

89.

Which of the following XML documents are well-formed?

a)

<firstElement>some text goes here <secondElement>another text goes here</secondElement> </firstElement>

b)

<firstElement>some text goes here</firstElement> <secondElement> another text goes here</secondElement>

c)

<firstElement>some text goes here <secondElement> another text goes here</firstElement> </secondElement>

d)

</firstElement>some text goes here </secondElement>another text goes here <firstElement>

90.

Which special character is NOT used in XML?

a)

<

b)

>

c)

$

d)

?

91.

How is an empty XML element defined?

a)

<sample></sample>

b)

<sample/>

c)

All of the above.

d)

None of the above.

92.

which one

describe a work or remark to (a particular author, artist, or

speaker).

a)

Attributes

b)

Identifiers

c)

Elements

d)

Tags