Offline Assessment Ques
Offline Assessment Ques
Offline Assessment Ques
==============================
1) When will be T will be replaced with the actual type in the following
program?
class ValueProcessor<T>
{
// Logic
}
b) Compile-time
int? a = null;
int b = a ?? -1;
Console.WriteLine(b);
e) -1
5) Imagine you have a user service that sets the 'userName' of the user
making the request as a class level variable
And, the user service is registered as Scoped() method.
Client-1 and Client-2 are making the API requests at same time
Client-1 is setting the 'userName' to 'John'.
Client-2 is setting the 'userName' to 'Bob'.
No
c) Body Constructor
e) System.StackMemoryException
using System;
namespace MyApplication {
public class ClassA {
public static int a = 50;
}
public class ClassB:ClassA {
public static int a=100;
static void Main(string[] args) {
Console.WriteLine(a + ", " + ClassA.a);
}
}
}
100 50
16) Which of the following statements is correct for the below code
snippet?
interface A {
void func1();
int func2();
}
class B : A {
void func1() {
}
int A.func2() {
}
using System;
using System.Threading.Tasks;
class Program {
private static string result;
static void Main() {
SaySomething();
Console.WriteLine(result);
}
static async Task < string > SaySomething() {
await Task.Delay(5);
result = "Hello world!";
return " Something";
}
}
18) Choose the valid options that result in a infinie loop in C#?
b) for(;;) {}
d) while(!false) {}
c) 4
20) Two threads T1 & T2 are trying to access a shared resource called X
and update different
values. How to programmatically control which thread execution to be
completed first and which
value will be updated?
using System;
namespace MyApplication {
class Program {
static void Main (string[] args) {
int[,] Value = {{1,2}, {3,4}};
Console.WriteLine(Value.GetLength(0)+","+Value.GetLength(1));
}
}
}
2 2
using System;
class MyProgram {
static void Main(string[] args) {
int index = 6;
int[] arr = new int[5];
try {
arr[index] = 100;
}
catch(IndexOutOfRangeException e) {
Console.WriteLine("Index out of bounds occured");
}
Console.WriteLine("Program execution continued after Exception
Handling");
}
}
using System;
public class baseSample {
protected int a=20;
}
public class derivedSample : baseSample
{
int a=10;
public void display() {
/* add code here */
}
}
class Program {
static void Main(string[] args) {
derivedSample d = new derivedSample();
d.display();
Console.ReadLine();
}
}
using System;
namespace ABCD
{
class Sample {
public int num;
public int[] arr = new int[10];
public void Assign(int i, int val) {
arr[i] = val;
}
}
class Program {
static void Main(string[] args) {
Sample s = new Sample();
s.num = 100;
Sample.Assign(0,10);
s.Assign(0,9);
Console.WriteLine(s.arr[0]);
}
}
}
using System;
interface A {
void func(int i);
}
class B1:A {
public int x;
public void func(int i) {
x = i*i;
}
}
class B2:A {
public int x;
public void func(int i) {
x=i/i;
}
}
class Program {
public static void Main(string[] args) {
B1 b1 = new B1();
B2 b2 = new B2();
b1.x = 0;
b2.x = 0;
b1.func(2);
b2.func(2);
Console.WriteLine(b1.x + " " + b2.x);
Console.ReadLine();
}
}
4 1
using System;
public class Program {
public static void Main(string[] args) {
int i=3;
int j=2;
func1(ref i);
func2(out j);
Console.WriteLine(i + " " + j);
}
static void func1(ref int num) {
num = num + num;
}
static void func2(out int num) {
num = num * num;
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++
1) Which of the below code snippets will give the same result?
let x = [1,2,3];
let y = [4,5,6];
const combinedArray1 = [...x, ...y];
console.log(combinedArray1)
let z = [3,4,5,6];
const combinedArray2 = [1,2,...z];
console.log(combinedArray2)
let a = [3,4];
const combinedArray3 = [1,2,...a,6];
console.log(combinedArray3)
1,2,3
5) When you hover your mouse over the host element(tag), the color of the
tag should
change. In addition, when the mouse is moved away, the color of the tag
should change
to its default color. To do this, you need to handle events raised on the
host element in
the directives class. Which decorator is used to implement this
functionality?
@HostListener
<html>
<head>
<style>
h1 p { color:blue; }
h1 { color:red; }
h2 { color:cyan; }
p { color:green; }
</style>
</head>
<body>
<h1>
Line1<br>
<p>
Line2
</p>
<h2>Line3</h2>
</h1>
<p> Line 4 </p>
</body>
</html>
What will be the color of Line1, Line2, Line3 and Line4 when the above web
page is rendered
on the browser.
Line1: red, Line2: blue, Line3: cyan, Line4: green
A <main>
B <aside>
C <figure>
D <nav>
Compilation Error
c) Hover
d) Visited
e) Focus
13) <html>
<head>
<style>
h1 {color:blue;}
h1,p {color:yellow;}
</style>
</head>
<body>
<p>1</p>
<h1>2</h1>
<p style = "color:green">3</p>
<h1>4</h1>
</body>
</html>
What will be the color of 1,2,3, and 4 when rendered on browser?
a) Variable hoisting
a) upper
d) datetime
a) constructor
b) properties
c) methods
17) Chris has created a highlight directive as shown below. What color
will be applied
to the page if he enters yellow in the input field?
//highlight.directive.ts
import {Directive, ElementRef, Input} from '@angular/core';
@Directive ({
selector: ['highlight']
})
export class HighlightDirective {
constructor(el:ElementRef) {
el.nativeElement.style.backgroundColor='blue';
}
}
//app.component.ts
template: `
<label>Provide color to be applied on the page</label>
<input type='text' [(ngModel)] = 'colorName'>
<div highlight>Hello </div>
18) Which of the following are the valid properties of Promise Object?
a) state
b) result
20) Which of the following are the valid statements with respect to
production builds?
22) In order to create a custom impure pipe, you use _______ attribute in
@Pipe decorator
b) pure:false
23) Which of the following options are correct statements to apply the CSS
class 'pink' to the
paragraph element?
Compilation Error or 9
let originalstring="Digital!";
let updatedString1=originalstring.substr(2,3);
let updatedString2=originalstring.substring(2,3);
document.write(updatedString1+'<br>');
document.write(updatedString2);
git g
26) Which of the following options will print the details of Bag and Unit
for the below options
let myBag = {
name: "Gucci",
type: "Brand Bag",
price: 2300,
mfgUnit: {
country: "Canada",
quantity: 100,
}
};
function printBagDetails() {
console.log("Name :", this.name);
console.log("Type :", this.type);
console.log("Price :", this.price);
}
function printUnitDetails() {
console.log("Country :", this.country);
console.log("Quantity :", this.quantity);
}
printBagDetails.call(myBag);
printUnitDetails.call(myBag.mfgUnit);
27) Rank the elements of the CSS box model from most inner to outer layer
Content
Padding
Border
Margin
let noOfWeakendsWorked=2;
let compoffEligibilityStatus;
(noOfWeakendsWorked>0) ?
compoffEligibilityStatus = "You are eligible to avail compOff":
compoffEligibilityStatus = "You are not eligible to avail compOff";
console.log(compoffEligibilityStatus);
<html>
<script>
function remove() { console.log('Remove1 code') }
function remove() { console.log('Remove2 code') }
function remove() { console.log('Remove3 code') }
</script>
<body>
<button onclick="remove()">Remove</button>
</body>
</html>
32) What would be the color of Sample1, Sample2 and paragraph when the
below web page is rendered
on the browser?
<html>
<head>
<style>
h1#id1 {
color:red;
}
p#id1 {
color:blue;
}
</style>
</head>
<body>
<h1 id="id1">Sample1</h1>
<h1 id="id1">Sample2</h1>
<p id="id1">Paragraph</p>
</body>
</html>
function fun(...input) {
let sum = 0;
for(let i of input) {
sum+=i;
}
return sum;
}
console.log(fun(1,2));
console.log(", "+fun(1,2,3));
console.log(", "+fun(1,2,3,4,5));
3,6,15
34) Which of the following are the valid HTML5 input types?
c) time
d) number
a) max
b) minlength
e) required
38) Which of the following will map the name of an input parameter
"studentInfo" to a field named "students"?
a) @Input('studentInfo') students
39) Given the HTML structure below, which selector will select both the
span elements?
div class="outerDiv">
<span id="span1" class="innerSpan"></span>
<span id="span2" class="innerSpan"></span>
</div>
a) div#outerDiv span#innerSpan
d) div.outerDiv span#span1, div.outerDiv span#span2
a) min
d) max
b) Template Literals
function greatUser(isLoggedIn:boolean) {
if(isLoggedIn) {
let message = "Welcome to ES6";
}
return message; }
console.log(greatUser(true));
console.log(greatUser(false));
c) Error in greetUser()
a) readyState
b) status
46) Which of the following Pseudo elements can we use to manage styles on
HTML documents?
a) first-line
b) first-letter
47) Keith wants to apply margin property to an element with top-margin
value of 30px bottom-margin value of 20px
and left and right margin value of 25px. Which among the following will
help her in achieving the requirement?
c) <notscript>
class Cube {
width;
height;
length;
}
function fun(...input) {
let sum = 0;
for(let i of input) {
sum += i;
}
return sum;
}
console.log(fun(1,2));
console.log(", "+fun(1,2,3));
console.log(", "+fun(1,2,3,4,5));
3,6,15
7 or Compilation Error
let items = [
{ name: "Cake", price: 360 },
{ name: "Vegetables", price: 500 },
{ name: "Drinks", price: 410 }
];
910
52) Given the following object, which of the following options are valid
ways to access its "area" property?
var country = {name: "Egypt", area: 1010408, population: 99581200}
a) country["area"]
b) country.area
<html>
<head>
<script> function User(name, age) { this.name = name; this.age =
age; }
var user = new User('Daniel', 45);
document.write(user[name] + ' ' + 'is' + ' ' + user[age] + ' ' +
'years old');
</script>
</head>
<body>
</body>
</html>
<html>
<script>
var check = 'a';
switch(check) {
case 'A': document.write('Lower and Uppercase letters are same
for JavaScript');
case 'a': document.write('Lower and Uppercase letters are
different for JavaScript');
default: document.write('Lower and Uppercase letters cannot be
compared in JavaScript');
}
</script>
</html>
16
58) What will be the output when AppComponent is rendered on the browser?
app.component.ts:
import { Component } from '@angular/core';
@Component ({
selector: 'app-root',
templateUrl: './app.component.html',
template: `Welcome to {{course}}`
})
export class AppComponent {
salutation = "Hello";
course = "Angular";
}
app.component.html:
{{salutation}} {{course}}
c) Welcome to Angular
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++
using System;
class Program {
static void Main(string[] args) {
try {
Console.WriteLine("Hello");
}
catch (ArgumentNullException) {
Console.WriteLine("A");
}
catch (Exception) {
Console.WriteLine("B");
}
finally {
Console.WriteLine("C");
}
Console.ReadKey();
}
}
Hello
C
@Optional
Iserializable
6) Most documents will likely have the <body> section divided into
different sections.
Select the tags from the code except below that are generally used to
enclose navigator elements.
<html>
<head>
<title>Basic Document Structure</title>
</head>
<body>
<nav></nav>
<article></article>
</body>
<html>
<nav></nav>
[TestFixture]
a) View()
b) ViewModel
c) Partial views
d) Sessions
e) All of the above
f) FactoryProvider
@Component ({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ]
})
export class AppComponent implements OnInit {
name = 'hi Angular';
ngOnInit() {
hello()
}
}
a) Developer
b) Customer
using System;
class Program {
static DateTime time;
static void Main(string[] args) {
Console.WriteLine(time == null ? "time is null" : time.ToString());
}
}
@SkipSelf
c) InjectionToken or @injectable
a) c=a>b ? b:a;
19) ______ section in package.json is used to defined the dependencies the
module needs to run in production phase.
dependencies
@Component ({
selector: 'my-app',
templateUrl: `
<h1>Hello from {{ name }}!</h1>
<input type="button" value="click here" (click)="hello()">
})
export class AppComponent implements OnInit {
name = 'hi Angular';
}
// method difinition
void ShowData (int param1, string param2, int param3) {}
a) Networking costs
b) Server Costs
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++
1) function show() {
console.log('show function called');
}
show.call();
2) using System;
class HelloWorld {
static void Main(string args[]) {
int[] a = {10,20,30,40,50,80};
Console.WriteLine(a[-1]);
}
}
What happens when you run the application that uses above component?
4) console.log(null == undefined)
true
5) var a = 90;
doit();
function doit() {
console.log(a);
var a = 10;
}
undefined
d) Directive
b) Distributed Cloud
b) A constructor can use a base statement and a this statement if the base
statement comes first.
NaN
10) What happens when you try to create a component by running the below
command?
ng g c 3helloworld
Error
11) Which of the following statements are true w.r.t abstract classes in
C#?
a) You cannot create an object of abstract class
b) An abstract class can never be sealed or static
What happens when you run the application that uses above component?
13) Lets say, you want to align an element both vertically and
horizontally at the center of its parent element, which CSS positioning is
the best suited?
a) absolute
16) Lets say, you want to select first <p> element that is placed
immediately after <div>
and display in yellow, Which css selector do you use?
<div>
<p>This is Paragraph 1 </p>
<p>This is Paragraph 2 </p>
<section><p> This is Paragraph 3.<p></section>
</div>
d) <style>
div + p {
background-color: yellow;
}
</style>
18) Lets say, you want to select all <p> elements that are inside <div>
and display in yellow,
Which css selector do you use?
<div>
<p>This is Paragraph 1 </p>
<p>This is Paragraph 2 </p>
<section><p> This is Paragraph 3.<p></section>
</div>
f) <style>
div p {
background-color: yellow;
}
</style>
p {
margin: 25px 50px 75px 100px;
}
20) Lets say, you want to select all <p> elements that are the children of
<div> and display in yellow,
Which css selector do you use?
<div>
<p>This is Paragraph 1 </p>
<p>This is Paragraph 2 </p>
<section><p> This is Paragraph 3.<p></section>
</div>
b) <style>
div > p {
background-color: yellow;
}
</style>
21) What is the output of below code:
using System;
public class HelloWorld {
static string location;
public static void Main(string[] args) {
Console.WriteLine(location == null ? "location is null" :
location);
}
}
location is null
23) When html elements are positioned with _____ attribute, they aren't
affected by positional
attributes such as top, bottom, left or right.
c) static
24) The binary search method needs no more than ______ comparisons
a) (log2n) + 1
25) In Angular 15, how do you generate a component using cli command
without creating its spec file?
b) ng generate component Login --skipTests=true
c) jagged array
27) In the below code, what styles will be applied to which elements?
section {
color: gray;
}
<section>
<p>paragraph</p>
<a href="#">link</a>
<section>
using System;
public class Shape {
public virtual void Draw() {
Console.WriteLine("Drawing a shape.");
}
}
Drawing a Circle
29) Which member function does not require any return type?
Constructor and destructor
32) Lets say you want to call Child Component's method from Parent
Component. Which of the following is used?
a) Dependency Injection
b) @ViewChild decorator
33) Lets say you want to apply CSS, Javascript and Validate some code
inside a Component
Which of the following is best suited for implementing this?
c) Directives
35) Which of the following default class is used to configure all the
routes in MVC?
RouteConfig
e) Error
37) Which CSS properties can you use to create a rounded corner on just
the top-left and top-right corners of an element?
a) border-radius: 10px 10px 0 0;
b) border-top-left-radius: 10px; and border-top-right-radius: 10px;
false
39) Lets say you want to create charts and display them in the
application.
Which of the following is best suited for developing this?
c) Directives
undefined
43) Lets say you want to run the application on different port.What
happens when you try
to run the below command?
ng serve --port:8888 --open
46) You are implementing a data structure, where in you want to store keys
which are strings, and you want
to store values associated with the keys, which are also strings. There
can be multiple values associated with a key.
What class would you use to minimize the development effort, while at the
same time maximizing efficiency?
h) NameValueCollection
49) The body of your page includes below some sections. How will it look
with the following CSS applied?
body {
background: #ffffff; /* white */
}
section {
background: #0000ff; /* blue */
height: 200px;
}
50) What happens when you try to create a component by running the below
command?
ng g c hello-3-world
52) lets say you want to implement custom sort feature into your Angular
application. This functionality has to be reuseable
across the project Which of the following option is best suited for
implementing this?
Services and DI
undefined
OnActionExecuting
Regions
ngOnViewInit
LoadComplete
\\
65) How can you use the HttpClient to send a POST request to an endpoint
from within an addOrder function in this OrderService?
this.httpClient.post<Order>(this.orderUrl, order).subscribe();
66) What is an alternative way to write this markup to bind the value of
the class field userName to the ht element title property?
<h1 [title]="userName">Current user is (userName })</h1>
Developers
Customers
Project Manager
virtual
70) The acts as a placeholder that marks the spot in the html template
where the components' output will be displayed
Router Outlet
71) Based on the following component, what template syntax would you use
to bind the Tale Card Component's title Text felt to the ht element the
property?
@Component{{
selector: 'app-title-card' ,
template:'<h1 title="User Data"> {{titleText}}</h1>',
}}
export class TitleCardComponent{
titleText = 'User Data';
}
72) Based on the following usage of the async pipe, and assuming the users
class field is an Observable, how many subscriptions to the users
Observable are being made?
<h2>Names</h2>
<div *ngFor="let user of users | async">{{ user.name }}</div>
<h2>Ages</h2>
<div *ngFor="let user of users | async">{{ user.age }}</div>
<h2>Genders</h2>
<div *ngFor="let user of users | async">{{ user.gender }}</div>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
LoadComplete
PAAS
font-family
Prelnit
internal
7) Based on the following usage of the async pipe, and assuming the users
class field is an Observable, how many subscriptions to the users
Observable are being made?
<h2>Names</h2>
<div *ngFor="let user of users | async">{{ user.name }}</div>
<h2>Ages</h2>
<div *ngFor="let user of users | async">{{ user.age }}</div>
<h2>Genders</h2>
<div *ngFor="let user of users | async">{{ user.gender }}</div>
There will be one for each async pipe, the code above resust in 3
Subscriptions
Obackground-image
FormGroup
Prelnit
11) The ______ acts as a placeholder that marks the spot in the html
template where the components' output will The be displayed acts as a
placeholder that marks the spot in the html template where the
components' output will
be displayed.
Router Outlet
Avaliability Zones
15) You are implementing a data structure, where in you want to store
keys which are strings and you want to store values associated with
the keys, which are also strings.
There can be multiple values associated with a key. What class would you
use to minimize the development effort while at the same time maximizing
efficiency?
NameValueCollection
OngOnViewInit
Subject
19) Complete the below code to get the button in Tahoma font
LoadComplete
22) How can you disable the submit button when the form has errors in
this template-driven forms example?
<form #userForm="ngForm">
<input type="text" ngModel name="firstName" required />
<input type="text" ngModel name="lastName" required />
<button (click)="submit(userForm.value)">Save</button>
</form>
<button (click)="submit(userForm.value)"
[disabled]="userForm.invalid">Save</button>
transform: rotate
26) What is an alternative way to write this markup to bind the value of
the class field userName to the h1 element title property?
<h1 [title]="userName">Current user is {{ userName }}</h1>
l [title]="userName">Current user is ((userName ))</h1>
27) event takes place before saving ViewState, so any changes made nere
are saved
PreRender
28) Based on the following component, what template syntax would you use
to bind the TitleCardComponent's titleText field to the h1 element
title property?
@Component({
selector: 'app-title-card',
template: '<h1 title="User Data"> {{titleText}}</h1>',
})
export class TitleCardComponent {
titleText = 'User Data';
}
29) What parameter would allow text to be wrapped around an image in CSS?
Ofloat
LoadComplete
31) What coding convention is missing from the code snippets belo that
would complete the code for an inline style
Select the option to complete this snippet of code so that the hotation
accuratele esents an inline style in an HTML5 document.
FileResult
33) Same as 28
Onavigator.geolocation
35) How can you use the HttpClient to send a POST request to an endpoint
from within an addOrder function in this OrderService?
export class OrderService {
constructor(private httpClient: HttpClient) {}
addOrder(order: Order) {
// Missing line
}
}
this.httpClient.post<Order>(this.orderUrl, order).subscribe();
Iformatter
Avaliability Zones
39) What is an alternative way to write this markup to bind the value of
the class field userName to the h1 element title property?
<h1 [title]="userName">Current user is {{ userName }}</h1>
OnActionExecuting
Regions
42) How can you disable the submit button when the form has errors in
this template-driven forms example?
<form #userForm="ngForm">
<button (click)="submit(userForm.value)"
[disabled]="userForm.invalid">Save</button>
43)
44)
Networking costs
Server Costs
Azure Disks
47) can affect whether the text appears centered, left justified or night
justitied
text-align
Iserializable
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
==========================================================================
ActionFilters
Code Coverage
node -v
continuous integration
Docker Machine
Inheritance
(D)
<a href="#">home</a><br>
==========================================================================
====
Phase: 4
---------
Phase - 4:
==========
1) Why do Azure storage accounts have two access keys?
To periodically rotate one key while the other remains unchanged
2) What is a Container?
Create an instance of an image
9) You have a .NET app running on a VM Scale set. You need to monitor
application performance without modifying the code. The solution should
minimize the cost. What should you do?
Install the Application Insights Agent.
13) You need to host a website that mainly contains static content,
including HTML, CSS, and a few pages with client-side JavaScript. The site
contains no sensitive information, and CORS support is unnecessary. You
have limited funds to pay for hosting, so the solution should be as
inexpensive as possible. Which option should you use?
14) measures the extent to which the source code is exercised by tests.
It
helps identify areas of the code that are not adequately tested
Test Coverage
==========================================================================
=========
7) Use in a variable. when you do not have a model to send to the view
and have a lot of html to bring back that doesn't need to be stored
@Html.RenderAction
10) The attribute allows you to vary the cached output depending on the
query string.
VaryByParam
11) How do you pass multiple models from a controller to the single view?
>ViewBag
12) You can set a common prefix for an entire controller by using the
attribute:
[RoutePrefix]
23) Ado. Net EF, you can insert data into your database tables during the
database initialization process. You need to create a custom DB
initializer that derives from class
a) DropCreateDatabaseAlways<DBContext>
25) Assuming the following query is executed on 31st Dec 2011. What is the
result of the below query. SELECT CONVERT(varchar(30), GETDATE(), 111) AS
Expr1
31/12/2011
31) is used to force all the validation controls to run and to perform
validation.
ModelState.validate()
33) The clause combines all those records that have identical values in a
particular field or any collection of fields.
group by
34) Lets say you want to track the IP address of the users for your
Asp.Net MVC application. You can implement this by using
Filters
35) There are occasions when you want to abort a portion of transaction,
but not all of it. There are occasions when you want to abort a portion of
transaction, but not all of it. For this you use
Savepoint
39) block in web config file sets the user-defined values for the whole
appSettings
44) In case of isolation level of transaction, shared locks are held while
the data is being read to avoid dirty reads,
but the data can be changed before the end of the transaction, resulting
in non-repeatable reads or phantom data.
ReadUncommitted
45) How can you select all the even number records from a table?
Select from table where id % 2 = 0;
46) is the cache policy where the cache expires at a fixed specified date
or time
Absolute Expiration
49) Lets say you want to display ADS to the users for your Asp.Net MVC
application. You can implement this by using
Tag Helpers
50) are used to define the degree to which one transaction must be
separated from resource or data modifications made by other concurrent
transactions
IsolationLevels
56) enables one to follow the execution path of a page, debug the
application and display diagnostic information at runtime
Tracing
58) In case of ACID properties, property ensures that any transaction will
bring the database from one valid state to another
Consistency
60) Lets say you want to display a footer for every page in your Asp.Net
MVC application. You can implement this by using
Layout Pages
61) Which class is used to add / Insert values to a Identity column from
Ado.Net?
SqlCommandBuilder
64) attribute marks a method that is executed after each test, allowing
you to clean up any resources or restore the system to its original
state.
[TearDown]
68) gives you application-level routing and load balancing services that
let you build a scalable and highly- available web front end in Azure
Azure Application Gateway
70) You have a .NET app running on a VM Scale set. You need to monitor
application performance without modifying the code. The solution should
minimize the cost. What should you do?
Install the Application Insights Agent.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++
Web API in C#:
==============
2) With the latest release of ASP. NET, the following user identities can
be managed:
Cloud, SQL, Local Window active directory.
13) CSS, Javascript, AJAX are the technologies are used in ASP.NET
14) web.config file are use to store global information and variable
definition
23) Bin folder is used to store DLL files in the ASP.NET application
24) PreInit is the first event triggered when a user request an ASP.NET
page
25) Counter, AdRotator, File Access are the part of ASP.NET component
34) The ____ class is used to summarize the error messages from all
validators on a Web page in a single location.
ValidationSummary
35) Which method is used in ASP.Net to preserve page and control values
between round trips?
View State
42) In ____ page processing transfers from one page to the other page
without making a round-trip back to the client's browser.
Server.Transfer
43) ____is used to redirect the user's browser to another page or site.
ResponseRedirect
45) Which of the following tag is used for the HTML checkbox?
<input>
46) Which of the following property is used to set the check state for
ASP.NET CheckBox control?
Checked
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++
==========================================================================
======
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++
15) self contained application can be installed and run on any platform
without .net core runtime
16) .net standard should target for the code sharing of .net core
33) What is the name of the Page object’s property that determines if a
Web page is being requested without data being submitted to server?
IsPostBack
36) Which is the first event of ASP.NET page, when user requests a web
page
Preinit
39) You can add more than one master page in a website.
b. Master page can be nested.
41) Which of the following is the default authentication mode for IIS?
Anonymous
42) 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?
Login.aspx
46) In which file you should write the connection string, so you can
access it in all the web page for same application?
Web.config file
47) ______________is the first method that is fired during the page load.
Init()
48) Which protocol is used for requesting a web page in ASP.NET from the
Web Server?
HTTP