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

Sorry!For this module there is no Assignments.
Question No: 1 of 27
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 27
Which Namespace is used for Razor View Engine ? 
Options:
  1. System.Web.Razor
  2. System.Web.Mvc.WebFormViewEngine
  3. System.Web.MVC
  4. System.Razor
View Answer/Explanation:
a
Explanation:
Represents a view engine that is used to render a Web page that uses the

Question No: 3 of 27
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: 4 of 27
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 27
Layout.cshtml file present in which folder 
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 27
Which of the following represents RAZOR syntax? 
Options:
  1. <% %>
  2. @
  3. < >
  4. ( )
View Answer/Explanation:
b
Explanation:
Razor minimizes the number of characters and keystrokes required when writing a view template, and enable a fast coding workflow. Unlike most template syntax's, you do not need to interrupt your coding to explicitly denote the start and end of server blocks within your HTML. The Razor parser is smart enough to infer this from your code.

Question No: 7 of 27
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
  4. Hello, my name is John
View Answer/Explanation:
a
Explanation:
Inside the code block @: should be used.

Question No: 8 of 27
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: 9 of 27
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: 10 of 27
What is the Output of the following code
   @{
        var domain="Microsoft";
        @:john@domain.com
    } 
Options:
  1. john@domain.com
  2. johnMicrosoft.com
  3. john@Microsoft.com
  4. johndomain.com
View Answer/Explanation:
a
Explanation:
The result of above code is john@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 john@(domain).com then it gives result like johnMicrosoft.com

  1