0% found this document useful (0 votes)
241 views

PROG3116 Programming .NET WEEK 11 19 Wew0

The document discusses various programming concepts related to loops, variables, data types, and Razor syntax. It provides true/false questions and answers about while loops, variable declaration, file extensions, inline expressions, code blocks, and other programming elements. Razor is identified as a markup syntax that embeds server-based code like C# into web pages.

Uploaded by

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

PROG3116 Programming .NET WEEK 11 19 Wew0

The document discusses various programming concepts related to loops, variables, data types, and Razor syntax. It provides true/false questions and answers about while loops, variable declaration, file extensions, inline expressions, code blocks, and other programming elements. Razor is identified as a markup syntax that embeds server-based code like C# into web pages.

Uploaded by

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

PROG3116 Programming (.

Net Technology)
NC III Part 2
WEEK 11 – 13
A while loop begins with the while keyword, followed by parentheses, where you specify
how long the loop continues, then a block to repeat.
Answer: True

Variables are declared with the let keyword


Answer: False

# files have the extension .csphtml


Answer: False

Statements can be executed repeatedly in loops.


Answer: True

Inline expressions (variables and functions) start with @


Answer: True

Razor code blocks are enclosed in @[ ... ]


Answer: False

Code statements end with semicolon


Answer: True

Strings are enclosed with grave accent(`) marks


Answer: False

Razor
is a markup syntax that lets you embed server-based code (Visual Basic and C#) into web
pages.

Answer: Razor

C# code is case insensitive


Answer: False
WEEK 14 – 16
select one of two sets of lines to execute
Answer: If...Then...Else statement

Creating variables in VBScript is most often referred to as "declaring" variables.


Answer: False

select one of many sets of lines to execute


Answer: If...Then...ElseIf statement or Select Case statement

Choose The Rules for VBScript variable names


Answer: Cannot contain a period (.); Must begin with a letter; Cannot exceed 255 characters
(3answers)

executes a set of code when a condition is true


Answer: If statement

runs code a specified number of times


Answer: For...Next statement

loops while or until a conditionis true


Answer: Do...Loop statement

The default scripting language in ASP is C++.


Answer: False

VBScript is a light version of Microsoft's Visual Studio.


Answer: False

runs code for each item in a collection or each element of an array


Answer: For Each...Next statement
WEEK 17 – 19
Written Work 3
The ADO.NET objects encapsulate all the data access operations and the controls interact
with these objects to display data, thus hiding the details of movement of data
Answer: True

Variables are declared with the let keyword


Answer: False

Razor code blocks are enclosed in @[ ... ]


Answer: False

VBScript is a light version of Microsoft's Visual Studio.


Answer: False

The dataset represents a subset of the database. It does not have a continuous connection
to the database
Answer: True

Choose The Rules for VBScript variable names


Answer: Cannot contain a period (.); Must begin with a letter; Cannot exceed 255 characters

Code statements end with semicolon


Answer: True

The default scripting language in ASP is C++.


Answer: False

Indicates whether string comparisons within the data tables are case-sensitive.
Answer: CaseSensitive

Inline expressions (variables and functions) start with @


Answer: True

Creating variables in VBScript is most often referred to as "declaring" variables.


Answer: False

Returns a view of data in the data set.


Answer: DefaultViewManager

executes a set of code when a condition is true


Answer: If statement

he DataSet contains DataTable objects and DataRelation objects.


Answer: True

ADO.NET provides a bridge between the front end controls and the back end database.
Answer: True

Razor
is a markup syntax that lets you embed server-based code (Visual Basic and C#) into web
pages.

Answer: Razor

The DataRelation objects represent the relationship between two tables.


Answer: True

Gets or sets the name of the current data set.


Answer: DataSetName

Indicates whether the component is currently in design mode.


Answer: DesignMode

Gets the container for the component.


Answer: CaseSensitive
Written Work 4
Copies the structure of the DataSet, including all DataTable schemas, relations, and
constraints. Does not copy any data
Answer: Clone

Copies both structure and data


Answer: Copy

# files have the extension .csphtml


Answer: False

Returns a DataTableReader with one result set per DataTable


Answer: CreateDataReader(DataTable[])

loops while or until a conditionis true


Answer: Do...Loop statement

C# code is case insensitive


Answer: False

Ends the initialization of the data set


Answer: EndInit

Begins the initialization of the DataSet. The initialization occurs at run time
Answer: BeginInit

Statements can be executed repeatedly in loops.


Answer: True

Strings are enclosed with grave accent(`) marks


Answer: False

Gets a copy of DataSet with all changes made since it was loaded or the AcceptChanges
method was called, filtered by DataRowState

Answer: GetChanges(DataRowState)

Returns a copy of the DataSet with all changes made since it was loaded or the
AcceptChanges method was called
Answer: GetChanges
runs code a specified number of times
Answer: For...Next statement

Returns a DataTableReader with one result set per DataTable, in the same sequence as the
tables appear in the Tables collection
Answer: CreateDataReader()

Free resources and perform other cleanups


Answer: Finalize

A while loop begins with the while keyword, followed by parentheses, where you specify
how long the loop continues, then a block to repeat.
Answer: True

Accepts all changes made since the DataSet was loaded or this method was called.
Answer: AcceptChanges

runs code for each item in a collection or each element of an array


Answer: For Each...Next statement

select one of two sets of lines to execute


Answer: If...Then...Else statement

select one of many sets of lines to execute


Answer: Select Case statement

You might also like