Saturday, 30 May 2020

Friday, 3 May 2019

May 03, 2019

jQuery MCQ | IDB-BIESW jQuery MCQ Answer

 jQuery MCQ | IDB-BIESW jQuery MCQ Answer

jQuery - youngheart.tk



1. jQuery is a________

  • a). JavaScript Library. 
  • b).JavaScript Language 
  • c).JavaScript Method 
  • d). PHP Method



2. Which sign does jQuery use as a shortcut for jQuery?

  • A.the % sign
  • B. the ? Sign
  • C. the $ sign



3. jQuery uses CSS selectors to select elements?

  • A.False
  • B. True


4. With jQuery, look at the following selector: $(“div”). What does it select?

  • A.All div elements
  • B. The first div element




5. Is it possible to use jQuery together with AJAX?

  • A.No
  • B. Yes



6. The jQuery html() method works for both HTML and XML documents

  • A.False
  • B. True



7. Is jQuery a library for client scripting or server scripting?

  • A.Server scripting
  • B. Client scripting



8. What is the correct jQuery code to set the background color of all p elements to red?

  • A.$(“p”).layout(“background-color”,”red”);
  • B. $(“p”).manipulate(“background-color”,”red”);
  • C. $(“p”).css(“background-color”,”red”);
  • D. $(“p”).style(“background-color”,”red”);



9. With jQuery, look at the following selector: $(“div.intro”). What does it select?

  • A.The first div element with class=”intro”
  • B. The first div element with id=”intro”
  • C. All div elements with class=”intro”
  • D. All div elements with id=”intro”




10. Which jQuery method is used to set one or more style properties for selected elements?

  • A.css()
  • B. html()
  • C. style()



11. Which jQuery method is used to hide selected elements?

  • A.hidden()
  • B. hide()
  • C. visible(false)
  • D. display(none)


12. Which jQuery method is used to perform an asynchronous HTTP request?

  • A.jQuery.ajaxAsync()
  • B. jQuery.ajax()
  • C. jQuery.ajaxSetup()



13. Which statement is true?

  • A.To use jQuery, you must buy the jQuery library at http://www.jquery.com
  • B. To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and Opera) have the jQuery library built in the browser
  • C. To use jQuery, you can refer to a hosted jQuery library at Google



14. What scripting language is jQuery written in?

  • A.VBScript
  • B. JavaScript
  • C. C#
  • D. C++



15. Look at the following jQuery selector: $(“div#intro .head”). What does it select?

  • A.The first element with id=”head” inside any div element with class=”intro”
  • B. All elements with class=”head” inside the first div element with id=”intro”
  • C. All div elements with id=”intro” or class=”head”




16. Which statement best explains what “unobtrusive JavaScript” is?

  • A.JavaScript that doesn’t annoy users
  • B. JavaScript that is separate from HTML
  • C. JavaScript that does not affect a web page
  • D. JavaScript that works even with scripting turned off



17. Is jQuery a W3C standard?

  • A.No
  • B. Yes




18. Which of these is NOT a valid comment in JavaScript?

  • A.// This is a comment
  • B. /* This is a comment. */
  • C. /* This is a comment
  • D. .<!– This is a comment.–>



19. What is the correct JavaScript syntax to write “Hello World”?

  • A.document.write(“Hello World”)
  • B. (“Hello World”)
  • C. response.write(“Hello World”)
  • D. “Hello World”



20. jQuery is a_______

  • A.JavaScript library
  • B. Ruby Gem
  • C. PHP Framework
  • D. None of the above



21. jQuery’s main focus is/are ______

  • A.AJAX
  • B. DOM Manipulation
  • C. Animations
  • D. All of the above



22. $.foo() is equivalent to..

  • A.javascript.foo()
  • B. document.foo()
  • C. jQuery.foo()
  • D. None of the above



23. Can jQuery be used on the same page alongside other libraries?

  • A.Yes
  • B. No



24. var ps = $(“p”);
ps will be..

  • A.A linked list
  • B. A hash or dictionary
  • C. An array
  • D. A jQuery object



25. $(document).ready(function() {
// Some code.
});
The above code is used to..

  • A.Make sure no code is executed till the entire page is fully loaded
  • B. Make sure no code is executed till the DOM is fully loaded
  • C. Both A and B
  • D. Neither A nor B



26. Can you can use CSS3 selectors to select or find elements using jQuery?

  • A.Yes
  • B. No



27. $(‘p’).click(function(){
// Code here
});
Inside the commented section, the value of the variable this is a..

  • A.Array
  • B. String
  • C. Reference to the DOM node
  • D. jQuery object



28. The method that provides AJAX functionality within jQuery is named..

  • A.ajax
  • B. easyAJAX
  • C. jQueryajax
  • D. jQajax



29. You can attach a handler to an event using which method?

  • A.eventBind
  • B. bind
  • C. attach
  • D. eventAttach



30. $(‘#masterList’).find(‘li’)
.width(500).addClass(‘selected’);
The phenomena occuring in the above code is called?

  • A.Chaining
  • B. Event bubbling
  • C. AJAX
  • D. Animating



31. What is jQuery?

  • a) jQuery is a library of JavaScript Functions.
  • b) jQuery stands for Structured Query Language
  • c) jQuery stands for Cascading Style Sheets.
  • d) jQuery communication between computers on the Internet




32. The jQuery library contains the following features

  • a)  HTML element selections. HTML element manipulation .HTML event functions
  • b)  CSS manipulation. JavaScript Effects and animations. HTML DOM traversal and modification
  • c)  JavaScript Effects and animations. HTML DOM traversal and modification. AJAX. Utilities
  • d)  all of the above



33. AJAX and jQuery

  • a) jQuery provides a rich set of methods (functions) for AJAX web development.
  • b) With jQuery AJAX, you can request TXT, HTML, XML or JSON data from a remote server using both HTTP Get and HTTP Post.
  • c) a and b
  • d) AJAX and jQuery are cross-platform (you can develop in Windows and serve on a Unix platform)



34. Load remote data using HTTP GET

  • a) $.get(url,data,callback,type)
  • b) $.ajax(options)
  • c) $.post(url,data,callback,type)
  • d) $.getScript(url,callback)



35. Triggers, or binds a function to the error event of selected elements.

  • a) click()
  • b) error()
  • c) event.pageX
  • d) click.error()



36. What are the :odd and :even filters?

  • a) They allow you to determine if a number is odd or even.
  • b) They  allow you to determine if a specific element is in an odd or even position.
  • c) None of the above.



37. When referencing an HTML element preceded by a # (pound or hash), what javascript function is this equivalent to?

  • a) getElementById
  • b) getElementByClassName
  • c) getElementByTagName
  • d) None of the above



38. When referencing an HTML element preceded by a . (dot), what javascript function is this equivalent to?

  • a) getElementById
  • b) getElementByClassName
  • c) getElementByTagName
  • d) None of the above



39. What is the each function used for?

  • a) The Each function allows you to loop though every element in a parent element.
  • b) The Each function allows you to put the word “Each” into each element
  • c) The Each function allows you to loop through different elements with a class or ID.
  • d) None of the above.



40. What is the difference between Hover and Mouseover

  • a) Mouseover allows you to specify an optional function to use for the mouseout event
  • b) Hover allows you to specify an optional function to use for the mouseout event
  • c) No Difference; Mouseover and Hover are the same



41. What are the various speed options?

  • a) The words “slow” and “fast” as well as integers for the milliseconds
  • b) Only the words “slow”, “fast”, and “medium”
  • c) All of the above
  • d) None of the above



42. The speed options can be applied to which jQuery functions?

  • a) css and ajax
  • b) show and fadeIn
  • c) toggleCss
  • d) All of the above

 

43. Which function do you reference in HTML form data?

  • a) value()
  • b) formData()
  • c) val()
  • d) None of the above



44. If you want to stop your jQuery for a few milliseconds, which function do you use?

  • a) stop()
  • b) pause()
  • c) slowdown()
  • d) delay()



45. When do you use the $(this) code?

  • a) When an HTML element will reference its own action.
  • b) When an HTML element will reference its parent element’s action
  • c) When an HTML element will reference the entire document
  • d) None of the above.

 

46. How do you fetch the first span on the page, which has the class ‘green’?

  • a) $(‘span, .green, :first’)
  • b) $(‘first .green span’)
  • c) $(‘span.green:first’)



47. What does the function $(“.selector”) return?

  • a) An array.
  • b) A node list.
  • c) A new jQuery object.



48. What does the $(‘#myDiv’).hover() method do?

  • a) It binds the functions you pass as parameters, to the mouseenter and mouseleave events.
  • b) Converts the element upon which it was called, into a hoverable menu.


49. jQuery is

  • a).Light weight 
  • b).Interpreter compiled
  • c).parallelly processed 
  • d).Runs in js shell



50. Which of the following is correct?

  • A. jQuery is a JavaScript Library
  • B. jQuery is a JSON Library


51. Which of the following jQuery syntax uses the class selector
a). $(‘#temp’) b). $(‘.temp’)
c). $(‘class’)      d).  $(‘temp’).class

 52. Minified and compressed version of jQuery is usually used as
a).Development version
b).Production version
c).Beta Version d).Alpha version



53. jQuery does not support which of the following
a).HTML/DOM Manipulation
b).HTML events
c).AJAX
d).PHP Bytecode


54. $(selector).action() – What does this jquery syntax format do?
a).Select an HTML element and then use HTML to act on it
b).Select an HTML element and perform some actin on it
c).Perform an action on an element and then select it
d).Perform selection and ignore the action

55. What does the dollar sign in jQuery statement do?
a).It loads the jQuery methods b).It loads the DOM c).It loads PHP d).It is used to define or access jQuery

56. Here is a jquery code:
$(document).ready(function(){});
57. Why do we place all jQuery methods inside this code?
a).Because jQuery is never compiled
b).It shows where jQuery starts and ends
c).To enable the DOM to load jQuery
d).To prevent jQuery code from running before the document is fully loaded
$(function(){});

58. What does this piece of jQuery do?
a).This is a shorter version for $(document).ready(function(){});
b).This is to test if jQuery can be loaded again
c). This is to test if jQuery has completed execution
d).This is to create a method in jQuery
$(‘#temp’).action()

59. What type of selector is used in the above jQuery syntax?
a).id selector
b).class selector
c).name selector
d).value selector

60. Which jQuery function is used to prevent code from running, before the document is finished loading?
A. $(document).load()
B. $(document).ready()
C. $(body).onload()


61. What is the correct jQuery code for making all div elements 100 pixels high?
A. $(“div”).height=”100″
B. $(“div”).height(100)
C. $(“div”).yPos(100)


62. The CSS selector engine that jQuery uses is called?
A. Badaboom
B. Mango
C. Sizzle
D. AwesomeX


63. Which jQuery method should be used to deal with name conflicts?
A. noNameConflict()
B. noConflict()
C. nameConflict()
D. conflict()


64. Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?
A. toggleClass()
B. switch()
C. altClass()
D. switchClass()


65. How do you use JavaScript within CoffeeScript code?
A. Use the JavaScript keyword
B. Wrap the code in <script> tags
C. Wrap the code in backticks or grave accents [`]
D. You can’t embed JavaScript code within CoffeeScript

66. In JavaScript, we can keep a reference to the context outside a function by assigning it to a variable: var self = this. In CoffeeScript, we use:
A. self = this printScope -> console.log self
B. printScope => console.log @
C. printScope => console.log this
D. All of the above


67. You can test whether the browser supports specific features using…
A. $.support
B. $.browser
C. $.featureTest
D. $.browserTest


68. Multiple document.ready blocks can be placed in a page without detriments. This statement is..
A. True
B. False


69. Query.noConflict(true) is used to..
A. Free up the $ symbol for use by other libraries
B. Improve compatibility
C. Remove all jQuery variables from the global scope
D. All of the above


70. Why do we usually add the stop() method before calling animate()?
a) stop() halts the execution of the scripts on the page until the animation has finished.
b) stop() ends any currently running animations on the element, and prevents conflicts and pile-ups.

c) We tell jQuery that the animation has to be stopped at some point.
May 03, 2019

jQuery MCQ | IDB-BIESW jQuery MCQ Answer

 jQuery MCQ | IDB-BIESW jQuery MCQ Answer

jQuery - youngheart.tk



1. jQuery is a________

  • a). JavaScript Library. 
  • b).JavaScript Language 
  • c).JavaScript Method 
  • d). PHP Method



2. Which sign does jQuery use as a shortcut for jQuery?

  • A.the % sign
  • B. the ? Sign
  • C. the $ sign



3. jQuery uses CSS selectors to select elements?

  • A.False
  • B. True


4. With jQuery, look at the following selector: $(“div”). What does it select?

  • A.All div elements
  • B. The first div element




5. Is it possible to use jQuery together with AJAX?

  • A.No
  • B. Yes



6. The jQuery html() method works for both HTML and XML documents

  • A.False
  • B. True



7. Is jQuery a library for client scripting or server scripting?

  • A.Server scripting
  • B. Client scripting



8. What is the correct jQuery code to set the background color of all p elements to red?

  • A.$(“p”).layout(“background-color”,”red”);
  • B. $(“p”).manipulate(“background-color”,”red”);
  • C. $(“p”).css(“background-color”,”red”);
  • D. $(“p”).style(“background-color”,”red”);



9. With jQuery, look at the following selector: $(“div.intro”). What does it select?

  • A.The first div element with class=”intro”
  • B. The first div element with id=”intro”
  • C. All div elements with class=”intro”
  • D. All div elements with id=”intro”




10. Which jQuery method is used to set one or more style properties for selected elements?

  • A.css()
  • B. html()
  • C. style()



11. Which jQuery method is used to hide selected elements?

  • A.hidden()
  • B. hide()
  • C. visible(false)
  • D. display(none)


12. Which jQuery method is used to perform an asynchronous HTTP request?

  • A.jQuery.ajaxAsync()
  • B. jQuery.ajax()
  • C. jQuery.ajaxSetup()



13. Which statement is true?

  • A.To use jQuery, you must buy the jQuery library at http://www.jquery.com
  • B. To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and Opera) have the jQuery library built in the browser
  • C. To use jQuery, you can refer to a hosted jQuery library at Google



14. What scripting language is jQuery written in?

  • A.VBScript
  • B. JavaScript
  • C. C#
  • D. C++



15. Look at the following jQuery selector: $(“div#intro .head”). What does it select?

  • A.The first element with id=”head” inside any div element with class=”intro”
  • B. All elements with class=”head” inside the first div element with id=”intro”
  • C. All div elements with id=”intro” or class=”head”




16. Which statement best explains what “unobtrusive JavaScript” is?

  • A.JavaScript that doesn’t annoy users
  • B. JavaScript that is separate from HTML
  • C. JavaScript that does not affect a web page
  • D. JavaScript that works even with scripting turned off



17. Is jQuery a W3C standard?

  • A.No
  • B. Yes




18. Which of these is NOT a valid comment in JavaScript?

  • A.// This is a comment
  • B. /* This is a comment. */
  • C. /* This is a comment
  • D. .<!– This is a comment.–>



19. What is the correct JavaScript syntax to write “Hello World”?

  • A.document.write(“Hello World”)
  • B. (“Hello World”)
  • C. response.write(“Hello World”)
  • D. “Hello World”



20. jQuery is a_______

  • A.JavaScript library
  • B. Ruby Gem
  • C. PHP Framework
  • D. None of the above



21. jQuery’s main focus is/are ______

  • A.AJAX
  • B. DOM Manipulation
  • C. Animations
  • D. All of the above



22. $.foo() is equivalent to..

  • A.javascript.foo()
  • B. document.foo()
  • C. jQuery.foo()
  • D. None of the above



23. Can jQuery be used on the same page alongside other libraries?

  • A.Yes
  • B. No



24. var ps = $(“p”);
ps will be..

  • A.A linked list
  • B. A hash or dictionary
  • C. An array
  • D. A jQuery object



25. $(document).ready(function() {
// Some code.
});
The above code is used to..

  • A.Make sure no code is executed till the entire page is fully loaded
  • B. Make sure no code is executed till the DOM is fully loaded
  • C. Both A and B
  • D. Neither A nor B



26. Can you can use CSS3 selectors to select or find elements using jQuery?

  • A.Yes
  • B. No



27. $(‘p’).click(function(){
// Code here
});
Inside the commented section, the value of the variable this is a..

  • A.Array
  • B. String
  • C. Reference to the DOM node
  • D. jQuery object



28. The method that provides AJAX functionality within jQuery is named..

  • A.ajax
  • B. easyAJAX
  • C. jQueryajax
  • D. jQajax



29. You can attach a handler to an event using which method?

  • A.eventBind
  • B. bind
  • C. attach
  • D. eventAttach



30. $(‘#masterList’).find(‘li’)
.width(500).addClass(‘selected’);
The phenomena occuring in the above code is called?

  • A.Chaining
  • B. Event bubbling
  • C. AJAX
  • D. Animating



31. What is jQuery?

  • a) jQuery is a library of JavaScript Functions.
  • b) jQuery stands for Structured Query Language
  • c) jQuery stands for Cascading Style Sheets.
  • d) jQuery communication between computers on the Internet




32. The jQuery library contains the following features

  • a)  HTML element selections. HTML element manipulation .HTML event functions
  • b)  CSS manipulation. JavaScript Effects and animations. HTML DOM traversal and modification
  • c)  JavaScript Effects and animations. HTML DOM traversal and modification. AJAX. Utilities
  • d)  all of the above



33. AJAX and jQuery

  • a) jQuery provides a rich set of methods (functions) for AJAX web development.
  • b) With jQuery AJAX, you can request TXT, HTML, XML or JSON data from a remote server using both HTTP Get and HTTP Post.
  • c) a and b
  • d) AJAX and jQuery are cross-platform (you can develop in Windows and serve on a Unix platform)



34. Load remote data using HTTP GET

  • a) $.get(url,data,callback,type)
  • b) $.ajax(options)
  • c) $.post(url,data,callback,type)
  • d) $.getScript(url,callback)



35. Triggers, or binds a function to the error event of selected elements.

  • a) click()
  • b) error()
  • c) event.pageX
  • d) click.error()



36. What are the :odd and :even filters?

  • a) They allow you to determine if a number is odd or even.
  • b) They  allow you to determine if a specific element is in an odd or even position.
  • c) None of the above.



37. When referencing an HTML element preceded by a # (pound or hash), what javascript function is this equivalent to?

  • a) getElementById
  • b) getElementByClassName
  • c) getElementByTagName
  • d) None of the above



38. When referencing an HTML element preceded by a . (dot), what javascript function is this equivalent to?

  • a) getElementById
  • b) getElementByClassName
  • c) getElementByTagName
  • d) None of the above



39. What is the each function used for?

  • a) The Each function allows you to loop though every element in a parent element.
  • b) The Each function allows you to put the word “Each” into each element
  • c) The Each function allows you to loop through different elements with a class or ID.
  • d) None of the above.



40. What is the difference between Hover and Mouseover

  • a) Mouseover allows you to specify an optional function to use for the mouseout event
  • b) Hover allows you to specify an optional function to use for the mouseout event
  • c) No Difference; Mouseover and Hover are the same



41. What are the various speed options?

  • a) The words “slow” and “fast” as well as integers for the milliseconds
  • b) Only the words “slow”, “fast”, and “medium”
  • c) All of the above
  • d) None of the above



42. The speed options can be applied to which jQuery functions?

  • a) css and ajax
  • b) show and fadeIn
  • c) toggleCss
  • d) All of the above

 

43. Which function do you reference in HTML form data?

  • a) value()
  • b) formData()
  • c) val()
  • d) None of the above



44. If you want to stop your jQuery for a few milliseconds, which function do you use?

  • a) stop()
  • b) pause()
  • c) slowdown()
  • d) delay()



45. When do you use the $(this) code?

  • a) When an HTML element will reference its own action.
  • b) When an HTML element will reference its parent element’s action
  • c) When an HTML element will reference the entire document
  • d) None of the above.

 

46. How do you fetch the first span on the page, which has the class ‘green’?

  • a) $(‘span, .green, :first’)
  • b) $(‘first .green span’)
  • c) $(‘span.green:first’)



47. What does the function $(“.selector”) return?

  • a) An array.
  • b) A node list.
  • c) A new jQuery object.



48. What does the $(‘#myDiv’).hover() method do?

  • a) It binds the functions you pass as parameters, to the mouseenter and mouseleave events.
  • b) Converts the element upon which it was called, into a hoverable menu.


49. jQuery is

  • a).Light weight 
  • b).Interpreter compiled
  • c).parallelly processed 
  • d).Runs in js shell



50. Which of the following is correct?

  • A. jQuery is a JavaScript Library
  • B. jQuery is a JSON Library


51. Which of the following jQuery syntax uses the class selector
a). $(‘#temp’) b). $(‘.temp’)
c). $(‘class’)      d).  $(‘temp’).class

 52. Minified and compressed version of jQuery is usually used as
a).Development version
b).Production version
c).Beta Version d).Alpha version



53. jQuery does not support which of the following
a).HTML/DOM Manipulation
b).HTML events
c).AJAX
d).PHP Bytecode


54. $(selector).action() – What does this jquery syntax format do?
a).Select an HTML element and then use HTML to act on it
b).Select an HTML element and perform some actin on it
c).Perform an action on an element and then select it
d).Perform selection and ignore the action

55. What does the dollar sign in jQuery statement do?
a).It loads the jQuery methods b).It loads the DOM c).It loads PHP d).It is used to define or access jQuery

56. Here is a jquery code:
$(document).ready(function(){});
57. Why do we place all jQuery methods inside this code?
a).Because jQuery is never compiled
b).It shows where jQuery starts and ends
c).To enable the DOM to load jQuery
d).To prevent jQuery code from running before the document is fully loaded
$(function(){});

58. What does this piece of jQuery do?
a).This is a shorter version for $(document).ready(function(){});
b).This is to test if jQuery can be loaded again
c). This is to test if jQuery has completed execution
d).This is to create a method in jQuery
$(‘#temp’).action()

59. What type of selector is used in the above jQuery syntax?
a).id selector
b).class selector
c).name selector
d).value selector

60. Which jQuery function is used to prevent code from running, before the document is finished loading?
A. $(document).load()
B. $(document).ready()
C. $(body).onload()


61. What is the correct jQuery code for making all div elements 100 pixels high?
A. $(“div”).height=”100″
B. $(“div”).height(100)
C. $(“div”).yPos(100)


62. The CSS selector engine that jQuery uses is called?
A. Badaboom
B. Mango
C. Sizzle
D. AwesomeX


63. Which jQuery method should be used to deal with name conflicts?
A. noNameConflict()
B. noConflict()
C. nameConflict()
D. conflict()


64. Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?
A. toggleClass()
B. switch()
C. altClass()
D. switchClass()


65. How do you use JavaScript within CoffeeScript code?
A. Use the JavaScript keyword
B. Wrap the code in <script> tags
C. Wrap the code in backticks or grave accents [`]
D. You can’t embed JavaScript code within CoffeeScript

66. In JavaScript, we can keep a reference to the context outside a function by assigning it to a variable: var self = this. In CoffeeScript, we use:
A. self = this printScope -> console.log self
B. printScope => console.log @
C. printScope => console.log this
D. All of the above


67. You can test whether the browser supports specific features using…
A. $.support
B. $.browser
C. $.featureTest
D. $.browserTest


68. Multiple document.ready blocks can be placed in a page without detriments. This statement is..
A. True
B. False


69. Query.noConflict(true) is used to..
A. Free up the $ symbol for use by other libraries
B. Improve compatibility
C. Remove all jQuery variables from the global scope
D. All of the above


70. Why do we usually add the stop() method before calling animate()?
a) stop() halts the execution of the scripts on the page until the animation has finished.
b) stop() ends any currently running animations on the element, and prevents conflicts and pile-ups.

c) We tell jQuery that the animation has to be stopped at some point.
May 03, 2019

Codeigniter MCQ | IDB-BISEW Codeigniter MCQ for exam

Codeigniter MCQ | IDB-BISEW Codeigniter MCQ

Codeigniter MCQ- Youngheart.tk


1. Which defines the bisiness logic?


  • 1) Model
  • 2) View
  • 3) Controller
  • 4) all 



2. How can you load a model?


  • 1) this->load->model();
  • 2) this->load->model('mname');
  • 3) $this->load->modelname();
  • 4) $this->load->model('mname'); 


3. View represents-


  • 1) template
  • 2) page segment
  • 3) Information that being presented in the screen
  • 4) both a and c
  • 5) all 



4. Helper files are -


  • 1) a collection of functions
  • 2) a single function
  • 3) a part of the core framework
  • 4) both a and c
  • 5) both b and c 



5. To calculate the time between two points of the application which class is used?

1) Unit Testing
2) Session
3) Pagination
4) Banchmarking 


6. Profiler class is used to -


  • 1) upload file
  • 2) retrieve session data
  • 3) ouput benchmark result
  • 4) none 



7. Which configuration has to set for automatic filtering?


  • 1) $config['global_xss_filter']=TRUE;
  • 2) $config['global_xss_filtering']=FALSE;
  • 3) $config['global_xss_filtering']=TRUE;
  • 4) $config['global_xss_filte']=FALSE; 



8. To retrieve get and post data which function is used?


  • 1) getpost
  • 2) postget
  • 3) get_post
  • 4) post_get 



9. Which function is used to provide the information that the email has been sent or not?


  • 1) debugger()
  • 2) email_debugger()
  • 3) print _debugger()
  • 4) send_debugger() 



10. To ensure that the input data is secure which function is used?


  • 1) xss_secure
  • 2) xss_clean
  • 3) xss_filter
  • 4) xss_security 



11. To validate an email address which of the following is used?


  • 1) Email Library
  • 2) Email Helper
  • 3) Form Validation Library
  • 4) Form Helper 



12. Which function of Email Heiper is used to send an email in simple way?


  • 1) mail()
  • 2) send()
  • 3) send_mail()
  • 4) send_email() 


13. Which configuration is used to set allowed uploading file type?


  • 1) $config['allow_types']
  • 2) $config['allowed_type']
  • 3) $config['allowed_types']
  • 4) $config['allow_type'] 



14. Which session value is randomly generate?


  • 1) user_id
  • 2) session_id
  • 3) last_activity
  • 4) ip_address 



15. What is output of the following code?
echo $this->unit->run('a123', 'is_numeric');


  • 1) Passed
  • 2) Failed
  • 3) Error
  • 4) Success 



16. Which rule must be used for confirm password field?


  • 1) required
  • 2) alpha
  • 3) matches[field_name]
  • 4) all 



17. Which function is used to convert php tags into entities?


  • 1) prep_for _form
  • 2) prep_url
  • 3) encode_php
  • 4) encode_php_tags 



18. To change the error delimiter globally which of the following function used?


  • 1) set_errors_delimeters
  • 2) set_error_delimeter
  • 3) set_error_delimeters
  • 4) set_errors_delimeter 



19. To return the data as a object which of the following is used?


  • 1) $query->object()
  • 2) $query->rows()
  • 3) $query->result()
  • 4) $query->array() 



20. Which function is used to delete all data from a table?


  • 1) delete_data()
  • 2) delete_table()
  • 3) empty_data()
  • 4) empty_table() 



21. To rename a table column using database forge which function is used?


  • 1) rename_column()
  • 2) change_column()
  • 3) modify_column()
  • 4) none 



22. What is the function of password salt?


  • 1) Make the password more secure
  • 2) Make it harder to break the password
  • 3) Easily generate the random password
  • 4) both a and b
  • 5) both a and c 



23. Callback function is used with-


  • 1) field
  • 2) rule
  • 3) query
  • 4) none 



24. Which library is used to validate the fields with different rule?


  • 1) Form Library
  • 2) Form validation Library
  • 3) Form Validate Library
  • 4) None 



25. What is function of active record caching?


  • 1) It retrieves the query data
  • 2) It saves the query data for later use
  • 3) It updates the query data
  • 4) both a and b 


26. Which function is used to add data into the database using active record?


  • 1) add
  • 2) insert
  • 3) insert_data
  • 4) insert_query 



27. To get the first 10 records of product table name which of the following correct?


  • 1) this->db->get('product',0,10)
  • 2) $this->db->get('product',10,10)
  • 3) $this->db->get('product',0,10)
  • 4) this->db->get('product',10,0) 



28. Which file is used to set database configuration?


  • 1) config.php
  • 2) autoload.php
  • 3) database.php
  • 4) model.php 



29. Which rule is used to set fixed length for a form field?


  • 1) min_length[x]
  • 2) max_length[x]
  • 3) exact_length[x]
  • 4) fixed_length[x] 



30. Which of the following option is used to see the full information of unit testing?


  • 1) $this->unit->result()
  • 2) $this->unit->report()
  • 3) $this->unit->all_result()
  • 4) $this->unit->all_report() 



How to Install Laravel 7

Very easy to Install Laravel 7 Laravel  is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development ...