Quizes
Quizes
Question 1 options:
num1=10,num2=20
num1=20,num2=10
num1=10,num2=10
Error: The best overload for 'Method' does not have a parameter named num.
Question 2 (1 point)
Question 2 options:
num1=10,num2=5
Error: The out parameter (num2) must be assigned to before control leaves the current method.
num1=5,num2=5
Question 3 (1 point)
Question 3 options:
num1=10,num2=5
num1=5,num2=5
num1=5,num2=10
Error: A params parameter must be the last parameter in a formal parameter list.
Question 4 (1 point)
Question 4 options:
num1 = 5, num2 = 3
Error: The out parameter (num2) must be assigned to before control leaves the current method.
num1 = 2, num2 = 3
num1 = 5, num2 =2
Question 5 (1 point)
Question 5 options:
Question 6 (1 point)
Question 6 options:
Question 1 options:
When an exception occurs, the line which causes the exception is skipped and program flow continues from the
next line
The System.Exceptions namespace contains the exception classes in .NET
Question 2 (1 point)
Which of the following statements are True, with respect to exception handling?
Question 2 options:
A try block can be written without any catch or finally blocks following it
A try block has to be compulsorily followed by at least one catch block or a finally block
A try block has to be compulsorily followed by at least one catch block and a finally block
Saved
Choose four different components of LINQ
Question 1 options:
LINQ to Objects
LINQ to XML
LINQ to DataTable
LINQ to DataSet
LINQ to SQL
Question 2 (1 point)
Saved
Which of the following statements is/are True?
Statement 1: LINQ provides a unified programming model to different
data domains for data management.
Statement 2: Language integrated query is set of framework features
for structured type-safe queries.
Question 2 options:
Both statements 1 & 2.
Neither 1 nor 2.
Only statement 2 is true.
Only statement 1 is true.
Question 3 (1 point)
Saved
_____________ is used to create associations in sequences which are not
explicitly modeled in the data sources.
Choose most appropriate option.
Question 3 options:
SQL
xml
Join
Data
lambda
Question 4 (1 point)
Saved
In LINQ, All the essential types are defined in _________ and __________
Question 4 options:
System.Linq.XML and System.Linq.Expressions
System.Linq and System.Linq.XML
System.Linq and System.Linq.Expressions
System.XML.Linq and System.Linq.Expressions
Quiz
Question 1 (1 point)
Saved
Which statement is INCORRECT about PRIMARY KEY constraint in
SQL Server?
Question 1 options:
Primary key must always have only one column
Primary key can have more than one columns
Each record in a table is uniquely identified by Primary Key
Primary key column cannot have null value.
Question 2 (1 point)
Saved
The gender column of the Employee table must accept only one of
three values : 'M','F' or 'T'. Which constraint must be used to ensure
this?
Question 2 options:
Default
Check
NOT NULL
None
Question 3 (1 point)
Saved
Identify the correct SQL query to Alter a column from a table in SQL
Server database
Question 3 options:
ALTER TABLE tablename, MODIFY COLUMN columnName
DELETE columnName FROM tableName
DROP COLUMN columnName FROM table name
ALTER TABLE tablename, ALTER COLUMN columnName
Question 4 (1 point)
Saved
Which of the following options is the correct sequence of clauses
applied to retrieve data in SQL?
Question 4 options:
Select, from, where
From, select, where
From, where, select
Select, where, from
Question 5 (1 point)
Saved
A view is which of the following?
Question 5 options:
A virtual table that can be accessed using SQL commands
A virtual table that cannot be accessed via SQL commands
A base table that can be accessed via SQL commands
A base table that cannot be accessed via SQL commands
Question 6 (1 point)
Saved
Which of the following SQL keyword(s) are used with wildcards?
Question 6 options:
LIKE only
IN only
NOT IN only
IN and NOT IN
Question 7 (1 point)
Saved
The command to remove selective rows from a table is:
Question 7 options:
REMOVE
UPDATE
DROP
DELETE
Question 8 (1 point)
Saved
The SQL join which does Cartesian product is called?
Question 8 options:
Left Outer Join
Left Join
Right Outer Join
Cross Join
Question 9 (1 point)
Saved
Which type of join will NOT fetch unmatched rows from tables?
Question 9 options:
Inner join
Left outer join
Left inner join
Outer join
Question 10 (1 point)
Saved
Which of the following statements are advantages of using Views?
Question 10 options:
Query re-usability
Abstraction – hiding data
Security
All
context.Invoices.ExecuteSql("EXECUTE dbo.GetPendingInvoices",day).ToList();
DateTime day= DateTime.Now;
which of the following options can be used to bind the user interface
input data to the above method as a query string?
Question 1 options:
<form method="get" action="name">
<input type="search"/>
</form>
<form method="get">
<input type="search" value="name"/>
</form>
<form method="get">
</form>
<form method="get">
</form>
Question 2 (1 point)
Saved
Which of the following attributes can be used to specify page route
parameters?
Question 2 options:
asp-params
asp-route
asp-id
asp-page
Question 3 (1 point)
Saved
The IIS worker process is called --------
Question 3 options:
aspnetdll
w3wp
ngenx
mscorlib
Question 4 (1 point)
Saved
The run time environment is configured using which of the following
variables?
Question 4 options:
ASPNETCORE_ENVIRONMENT
None of the given options
ASPNET_ENVIRONMENT
ASPNETCOREHOSTINGMODEL
Question 5 (1 point)
Saved
The -------- lifetime option ensures that the same service object is used
for every request.
Question 5 options:
Scoped and Singleton
Scoped
Singleton
Transient
Question 6 (1 point)
Saved
Which of the following tags can be used to specify separate settings for
production and development scenarios?
Question 6 options:
assembly
environment
configuration
compilation
Question 7 (1 point)
Saved
A Page class has the following property:
[TempData]
name: "default",
pattern: "{controller=Product}/{action=Show}/{id}");
app.MapControllerRoute(
name: "default",
pattern: "{controller=Product}/{action=Show}/{id}");
app.MapControllerRoute(
name: "default",
pattern: "{controller=Product}/{action=Show}/{id?}");
app.AddRoute(
name: "default",
pattern: "{controller=Product}/{action=Show}/{id?}");
Question 6 (1 point)
Saved
The Login action method must match 2 routes: Login, and Login/Auth
Which of the following options will help you configure the same?
Question 6 options:
[Route("Login")]
[Route("Auth")]
[Route("Login/Auth")]
return this.http.get<IProduct[]>('api/products');
}
getProductDetails: Observable<IProduct[]>
return this.http('api/products');
}
getProductDetails: Observable<IProduct[]>
return this.http.subscribe<IProduct[]>('api/products');
}
getProductDetails: Observable<IProduct[]>
return this.http.fetch<IProduct[]>('api/products');
}
Question 3 (1 point)
Saved
------------ , when applied to an element , makes that element a link that
initiates navigation to a route.
Question 3 options:
RouterLink
Path
RouterOutlet
RouterURL
Question 4 (1 point)
Saved
Which of the following statements are true? Choose 2 correct options
Question 4 options:
A component should use services for tasks that do NOT involve
the view
component functions are reused in different services
Services are suited for tasks such as fetching data from the server,
or logging errors
services must NOT depend on other services
Question 5 (1 point)
Saved
Which of the following options is a valid routes array in Angular?
Question 5 options:
[
];
[
];
[
];
[