Live Help (Start Chat)
View Count: 0
Duration: 29 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 29 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 11 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 6 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 25
What are the valid extensions of Razor view file 
Options:
  1. .cshtml
  2. .vbhtml
  3. .aspx
  4. .html
View Answer/Explanation:
a b
Explanation:
A Razor view can have the extensions .cshtml and .vbhtml. if selected the Language is C#,then extension is .cshtml and selected the Language is vb,then extension is .vbhtml

Question No: 2 of 25
When an ASP.NET MVC application is build, Razor views files are also compiled to generate DLL 
Options:
  1. Yes
  2. No
View Answer/Explanation:
b
Explanation:
At the time of MVC application build ,Razor views are not included in the compilation. They are used for Generating the HTML Markup code.

Question No: 3 of 25
Which One is the advantages of Razor view 
Options:
  1. Razor view is used to eanble a fast coding workflow
  2. It's not a new Language
  3. Razor views having great intellisense
  4. For writing View code, not Require any specific text editor
View Answer/Explanation:
a b c d
Explanation:
The advantages of the Razor views are the following 1>Razor minimises the number of Charactersand Keystrokes required and eanble a fast coding workflow 2> It's not a new Language 3> Razor views having great intellisense 4> work with any text editor

Question No: 4 of 25
Layout views are used as the Master pages in ASP.NET MVC. Is it Correct? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
a
Explanation:
Yes,The Layout views are used as Master pages to all views in ASP.NET MVC application

Question No: 5 of 25
Layout.cshtml file Present in Which Location 
Options:
  1. Views\_Layout.cshtml
  2. Views\Shared\__Layout.cshtml
  3. \_Layout.cshtml
  4. its present in Root directory
View Answer/Explanation:
b
Explanation:
Layout.cshtml file is used as a Master page to all the views. All the views shared the Layout.cshtml file. The location of Layout.cshtml file is Views\Shared\__Layout.cshtml.

Question No: 6 of 25
What is the Output of the following code
@{
var name= "John";
Hello, my name is @name
} 
Options:
  1. Compilation Error
  2. Hello, my name is @John
  3. Hello, my name is @name
View Answer/Explanation:
a
Explanation:
It gives the Compilation error. Inside the code block to execute a statement,write like @:text @:Hello, my name is @name then it will gives the result like @:Hello, my name is John

Question No: 7 of 25
What is the Output of the following code

@{
var i=1;
@:this is @(i)st line;
} 
Options:
  1. this is 1st line;
  2. compilation error
  3. this is ist line;
  4. this is 1st line
View Answer/Explanation:
a
Explanation:
The statement is executed with semicolon @:this is @(i)st line;

Question No: 8 of 25
What is the Output of the following code

@{
int var=10;
}
@var/2 
Options:
  1. 10/2
  2. 5
  3. no output
  4. Compilation error
View Answer/Explanation:
a
Explanation:
Razor view is calculating the expressions when the expressions are placed in the parenthesis like @(expressions) Here @var/2 simply gives 10/2 and @(var/2) gives 5 as result

Question No: 9 of 25
What is the Output of the following code
@{
var domain="Microsoft";
@:Jhon@domain.com
} 
Options:
  1. Jhon@domain.com
  2. JhonMicrosoft.com
  3. Jhon@Microsoft.com
  4. Jhondomain.com
View Answer/Explanation:
a
Explanation:
The result of above code is Jhon@domain.com Its not taking the domain as Microsoft because domain variable not used any where in code. To use domain variable in code write the above statement like Jhon@(domain).com then it gives result like JhonMicrosoft.com

Question No: 10 of 25
What is the Output of the following code

@
{
var domain="Microsoft";
@:Jhon@(domain).com
} 
Options:
  1. JhonMicrosoft.com
  2. Jhon@Microsoft.com
  3. Jhondomain.com
  4. Jhon@domain.com
View Answer/Explanation:
a
Explanation:
The result of above code is JhonMicrosoft.com Its taking the domain as Microsoft. Microsoft is assigned to domain variable in statement Jhon@(domain).com then it gives result like JhonMicrosoft.com

  1