ADVANCED WEB DEVELOPMENT (Final)
ADVANCED WEB DEVELOPMENT (Final)
1. A variable $str is set to HELLO WORLD, which of the following script returns it title
case?
echo ucwords(strtolower($str)
2. RedirectToAction() works like in ASP.Net MVC C# as
Response.Redirect()
3. ______ JavaScript is also called server-side JavaScript
LiveWire
4. Does Web API (ASP.Net) supports to both version mobile apps and others ?
Yes
5. What does the XMLHttpRequest object accomplish in Ajax?
It provides the ability to asynchronously exchange data between Web browsers and a Web
server.
6. Which one of these technologies is NOT used in AJAX?
Flash
7. Can vNext runs on both Mac and Linux today (Mono Version)?
Yes
8. Which name space using can send email in ASP.Net MVC?
using System.Net.Mail;
_ JavaScript is also called client side javascript
navigator
9. Which is the best approach to assign a session in MVC?
Current.Session[“LoginID”]
10. foreach loop is used to iterate over ____?
Array
11. What is ViewResult() ?
It is a Concrete Class
12. What is the use of array_values() function?
Returns the values and the frequency of each value in form of an array.
13. Which Web browser is the least optimized for Microsoft’s version of AJAX?
Safari
14. Does Viewstart override all Views layout/template under “Views” folder in MVC ?
Yes
15. Does MVC 6 allow only save change, hitting the save but then refreshing the browser
to reflect changes?
Yes
16. RedirectToAction() Method for which Status code represents?
302
17. Which method will automatically convert the array into appropriate json response?
Json
18. What will be the output of the following PHP code ?{= prints loop 3 times ~ prints loop
infinite times ~ prints loop 1 times ~ prints loop 2 times}
prints loop 3 times
19. A variable can have ________?
Both a and b
20. what is finally block do?
It is used in place of catch block or after catch block .
21. return View() works like in ASP.Net MVC C# as?
Server.Transfer()
22. Objects are also known as ______
Instances
23. What is BundleConfig.cs in ASP.Net MVC ?
BundleConfig.cs in MVC is used to register bundles used by the bundling and minification,
serveral bundles are added by default like jQuery, jQueryUI, jQuery validation, Modernizr,
default CSS references.
24. WordPress.org provides ____________ you can use to create a beautiful website,
blog, or app
Open source software
25. What will be the output of the following PHP code?(hello world ,hello, nothing ,error)
Error
26. What is the use of array_unshift() function?
Adds elements to the beginning of the array and returns the size of array.
27. Which is the way to render Partial View using ASP.Net MVC Razor Engine?
'@Html.Partial(“_PartialHeader”)
28. What will be the output of the following PHP code ?{= Print LFC 50 times ~ Print LFC
10 times ~ Print LFC 5 times ~Print LFC 1 times}
Print LFC 50 times
29. What will be the output of the following PHP code ?2?Hi:Bye;echo $b;?>
Hi
30. What will be the output of the following PHP code ?{= infinite loop ~ LFC ~ I LOVE
WEBSITE ~ LFC I LOVE WEBSITE}
Infinite loop
31. The ________ is the URL-friendly version of the name of tag or category.It is usually
all lowercase and contains only letters, numbers, and hyphens
Slug
32. WordPress is a________
CMS
33. What Request Processing technique follows ASP.Net ?
Pipeline
34. How many arguments cookie() method will take?
3
35. Which of the following are correct ways of creating an array?i) arr[0] =
letsfindcourse;ii) $arr[] = array(letsfindcourse);iii) $arr[0] = letsfindcourse;iv) $arr =
array(letsfindcourse);
iii and iv
36. Does ASPX View Engine supports for TDD ?
No
37. Class is a programmer-defined data type, which includes _____ methods and
______ variable?
Local,local
38. AuthConfig.cs file is under in which App folder ? App_Start how to declare strict
requirement in php 7?
declare(strict_types
39. How can we provide Height and Width to MVC Charts ? new Chart(width: 600,
height: 400)
40. Which one of the following functions is used to determine whether a class exists?
class_exist()
41. What is the data type of $TV in the above code?
Null
42. Which steps you should can take if your WordPress file is hacked?
All of the above
43. Which keyword allows the developers to shorten the namespace?
Use
44. Is ViewData faster than ViewBag in MVC?
Yes
45. What is the first step in creating a Joke of the Day application?
Write the application’s HTML.
46. The Razor View Engine uses to render server side content.
@
47. WebApiConfig.cs file is under in which App folder ?
App_start
48. What is the official name of JavaScript?
ECMAScript
49. Does MVC 6 introduced new JSON project based structure?
Yes
50. What will be the output of the following PHP code?
First Element:
51. Which is more faster between ASPX View Engine and Razor View Engine.
ASPX View Engine
52. Does Web API (ASP.Net) supports to non SOAP based like XML or JSON ?
yes
53. What will be the output of the following PHP code?
o malley wins the heavyweight championship!
54. The class from which the child class inherits is called(i) Child class(ii) Parent class(iii)
Super class(iv) Base class
(ii) and (iv)
55. What is the data type of $Cost?
Integer
56. In which case we recommend WordPress to our client?
all of the above
57. ORM (Object Relational Mapper) and ActiveRecord implementation called?
Eloquent
58. Which command is used to create Middleware?
php artisan make:middleware
59. Which one of the following is the right way to call a class constant, given that the
class is mathFunction?
echo mathFunction::PI;
60. A variable declared _____ has a LOCAL SCOPE?
inside function
61. Command line interface used in Laravel is called?
artisan
62. Which Namespaces are required to Data Annotation using MVC ?
Both A and B
63. How many types of Middleware in Laravel?
2
64. The ________ function compares the two strings s1 and s2, ignoring the case of the
characters
strcasecmp()
65. The ASPX View Engine uses to render server side content.
B)(in assignment)
<%= %>(actual)
66. How can we give Title to MVC Charts?
.AddTitle(“My First Chart”)
67. Choose the client-side JavaScript object?
FileUpLoad
68. What will be the output of the following PHP code?
example.com
69. What is the use of array_flip() function?
Is used to convert the keys to values and values to keys.
70. Type Hinting was introduced in which version of PHP?
PHP 5
71. PHP files can contain ________ code
Both A and B
72. What is the output of the following php code? array ( php => php 70, date => 3
December 2019), B => array( python => python 3.8
3 December 2019
73. Which of the following is/are an exception?i) OutOfBoundExceptionii)
OutOfRangeExceptioniii) OverflowExceptioniv) UnderflowException
i), ii), iii) and iv)
74. Can ASP.Net Web API ability to both self hosting (outside of IIS) and IIS ?
Yes
75. What is ActionResult() ?
It is an abstract Class
76. while loop is an _____ control loop ?
entry
77. Which one of the following functions is used to determine object type?
is_a()
78. How to check all errors of Model using ASP.Net MVC?
var errors = ModelState.Values.SelectMany(v => v.Errors);(actual)
79. Execute the below command to create a new controller called? php artisan
make:controller UriController –plain
UriController
80. ________________ can be defined as a class of elements in which each element
has a unique name to that associated class.
Namespaces
81. Which of the conditional statements is/are supported by PHP? i) if statements ii)
if-elsestatements iii) if-elseif statements iv) switch statements
i), ii), iii) and iv)
82. For which ModelState.IsValid Validate ?
It checks for valid Model State using DataAnnotations.
83. If Razor View Engine need to add JQuery function and contain @special character
then how we can write it in Razor View?
Replace @ to @@ (double)
84. How can we add Chart Type to MVC Charts?
.AddSeries(chartType: “Bar”)
85. What will be the output of the following PHP code?
First Element:
86. In WordPress, a ___________is a way of grouping posts together based on a select
number of relationships
Taxonomy
87. Which of the below statements are false?
The methods in Exception class are defined as final
88. What is the extension of MVC view when using vb.net?
vbhtml
89. What is Word Press?
CMS
full form-content managaement system
90. Can ASP.Net Web API, it works HTTP standard verbs like POST, GET, PUT,
DELETE (CRUD Operations) ?
yes
91. Which one of these legendary Greek mythical figures or places is the code name for
Microsoft’s version of AJAX ?
Atlas
92. What is the output of the following php code?
Name is all lowercase!
93. Can ASP.Net Web API has ability to transport non HTTP protocols like TCP, UDP,
Named Pipes etc ?
No
94. What is FilterConfig.cs in ASP.Net MVC ?
FilterConfig.cs is used to register global MVC filters, HandleErrorAttribute is registered by
default filter. We can also register other filters.
95. How to set Default Value to Hidden Input Box using ASP.Net MVC?)
~'@Html.HiddenFor(m => m.Name, “Jack”) ~'@Html.Hidden(m => m.Name, new {
Value = “Jack”}) ~None}
@Html.HiddenFor(m => m.Name, new { Value = "Jack"})
96. What will be the output of the following PHP code?{= No Output ~ Error ~ infinite loop
~ Only one garbage value}
No Output
97. How to check all errors of Model using ASP.Net MVC?
ModelState.Values.SelectMany(v
98. Are both TempData/ViewData require typecasting in MVC?
Both (TempData/ViewDatrequires type casting to avoid null exception.
99. What are the rules to follow in WordPress plugin development?
all of the above
100. How can you comment using Razor Syntax?
'@* Comment me *@
101. What is the benefits of Html.RenderPartial using ASP.Net MVC Razor Engine?
'@Html.RenderPartial Returns nothing (void), it is faster than @Html.Partial, moreover
requires not to create action.
102. Which Namespace is used for Razor View Engine ?
System.Web.Razor
103. What makes Ajax unique?
It makes data requests asynchronously.
104. Constructor is also called ____ function
magic
105. A ________ is an array with more than two dimensions
multi dimensional array
106. Which Namespace is used to “Display” in Data Annotation using MVC ?
System.ComponentModel
107. Which of the following function is Used to set the array pointer to the value of last
key?
end()
108. Why Exception Handling in PHP used?
Both A And B
109. What is the benefits of Html.Partial using ASP.Net MVC Razor Engine?
'@Html.RenderPartial Returns string value, it is slower than @Html.RenderPartial, moreover
requires not to create action.
110. In MVC framework, the letter V stands for Value.
FALSE
111. In which format data can be return from XML into table ?
DataSet
112. Which filter will be execute at last using ASP.Net MVC?
Exception filters
113. Which Namespace is used for ASPX View Engine ?
System.Web.Mvc.WebFormViewEngine
114. Which of the following attribute can hold theJavaScript version?
LANGUAGE
115. Does vNext is now Open Sourced via the .NET Foundation and open to public
contributions.
Yes
116. Which one of the following functions displays PHP interpreter settings bound to
web server?
phpinfo()
117. Which of the following function is used to get the value of the previous element in
an array?
prev()
118. Which of the following is not a built-in function in php ?
fclosed()
119. Which keyword is used to refer to properties or methods within the class itself?
this
120. Cookie can be created by global cookie helper of Laravel.
TRUE
121. How does work Viewstart in MVC (ASP.Net)?
A, B and C.
122. Does Razor Engine supports for TDD ?
yes
123. Which Namespaces are required to Data Annotation using MVC ?
Both A and B
124. In the PHP code given below, what is/are the properties?{= public $name; ~ echo
“This is an Object Mcqâ€; ~ class letsfindcourse ~ function lfc()}
public $name;
125. What will be the output of the following PHP code?(Hello+World, 0, HelloWorld,
Error)
0
126. Which loop evaluates the condition expression as Boolean, if it is true, it executes
the statements and when it is false it will terminate?
While loop
127. what is throw block do?
It is used to throw an exception.
128. By default, all cookies generated by Laravel are encrypted and signed so that
they can not be modified or read by the client
true
129. Which of the following is the output of the below code?
Int(14)
130. What is the use of is_array() function
Function can be used to verify if a variable is an array. Returns TRUE or FALSE
131. Why so JavaScript and Java have similar name?
JavaScript's syntax is loosely based on Java's
132. What is the extension of MVC view when using C#?
Cshtml
133. Are both TempData/ViewData property of Controller base class in MVC?
Yes
134. Variable names in PHP must start with ?
All of the above
135. BundleConfig.cs file is under in which App folder ?
App_Start
136. ________ Of the following technologies, which oneprovides the ability to
dynamically interact with Web page layout?
Document Object Model.
137. A function name always begins with the keyword _________
Function
138. In Which php version Exception handling was added?
PHP 5
139. Choose the server-side JavaScript object?
File
140. Returns a string arguments with trilling blank space removed, is a behavior of
lc()
141. Is ViewBag slower than ViewData in MVC?
Yes
142. Which of the following is true about Laravel?
All of the above
143. What sever support AJAX ?
HTTP
144. How to Print value from Controller to View in MVC ?
“my message”; and in [email protected]
145. A variable declared _____ has a GLOBAL SCOPE?
outside function
146. Can we use view state in MVC ?
No
147. Can ASP.Net Web API specialize to XML or JSON ?
Yes
148. Viewstart comes under which folder name ?
Views
149. Does TempData used to pass data from one page to another page in MVC?
Yes
150. Are MVC and Web API merged into one in MVC 6?
Yes
151. How can we add Series to MVC Charts?
.AddSeries(chartType: “Bar”, xValue: xValue, yValues: yValue)
152. The cookie can be attached to the response using the ?
withCookie() method
153. _____________ acts as a bridge between a request and a response.
Middleware
154. What is the difference between HtmlTextbox and HtmlTextboxFor using ASP.Net
MVC Razor Engine?
'@Html.TextBox is not strongly typed, @Html.TextBoxFor is strongly typed that is why should
be use @Html.TextBoxFor in MVC Razor Engine.
155. What will be the output of the following PHP code? Letsfindcourse, '1' =>
Computer, '2' => Science, '3' => Portal); print_r($arr[0]); ?>
Letsfindcourse
156. Select the true statements Once a constant is defined:
Neither the value can be changed nor variable can be unset
157. Which Name space is used to create chart using ASP.Net MVC?
using System.Web.Helpers;
158. Which filter will be execute at first using ASP.Net MVC?
Authorization filters
159. AJAX made popular by
Google
160. Which is the correct method to turn off error display?
init_set(error_reporting,Off)
161. What is the data type of $TV in this Line 1?
String
162. Which type of string can processes special characters inside quotes?
double quote string
163. Which is the error level to report probable run-time errors?
E_NOTICE