Daily Archives: November 18, 2015

Django Test 2016

1. Consider the following Python string representing a human readable date and time: dt = 'Jan 14 2009 11:00PM' Which of the following code snippets will convert the above string to a Python Datetime object that is suitable for a django.models.DateField? Answers: date_object = time.strptime(dt, '%b %d %Y %I:%M%p') date_object = datetime.strptime(dt, '%b %d %Y [...]

By | November 18th, 2015|Upwork Web Development|0 Comments

Ruby on Rails Test 2016

1. Which of the following will return a User object when used with a model which deals with a table named User? Answers: User.new User.destroy User.find User.save 2. In the case of Rails application performance optimization, select all valid ways to do assets compilation: Answers: Running the rake task with the assets:precompile parameter when CSS [...]

By | November 18th, 2015|Upwork Web Development|0 Comments

Twitter Bootstrap Test 2016

1. Which of the following LESS variables does not belong to the Navbar component? Answers: @navbar-margin-bottom @navbar-border-radius @navbar-padding-horizontal @navbar-default-height 2. Which of the following classes will make tables scroll up horizontally when width of the view is under 768px? Answers: .table .table-striped .table-condensed .table-responsive .table-scrollable 3. Which of the following will set a modal window [...]

By | November 18th, 2015|Upwork Web Development|1 Comment

SEO Test 2016

1. Which of the following image file types can be indexed by Google? Answers: TIFF RAW WEBP PNG 2. Which of the following correctly describes what are considered to be "Doorway pages"? Answers: Pages with a permanent redirect(301) to an external page with relevant content. Pages especially designed to link partner sites. Sets of poor-quality [...]

By | November 18th, 2015|Upwork Web Development|7 Comments

Node.js Test 2016

1. Which Node.js module can be used to get the IP address of the server the program is running on? Answers: util os dns net 2. What does the following code do? var http = require('http'); var fs = require('fs'); var file = fs.createWriteStream("file.png"); var request = http.get("http://path/to/file.png", function(response) { response.pipe(file); }); Answers: It creates [...]

By | November 18th, 2015|Upwork Web Development|0 Comments

Magento Test 2016

1. Which of the following will display a customer's TAX/VAT number? Answers: $taxvat = $order['customer_taxvat']; $order->getData('customer_taxvat'); $order->getQuote()->getCustomerTaxvat(); $order->getData()->getCustomerTaxvat(); 2. Why does the error, "front controller reached 100 router match iterations", occur? Answers: There is an error in the code. Some modules failed to load. Router references were set incorrectly. .htacces is blocking URLs. 3. Which [...]

By | November 18th, 2015|Upwork Web Development|0 Comments

jQuery Test

1. Consider the following code snippet: $('a.arrow-1').click(function () { $('.second-row').slideUp(); $(this).parent('.first-row').siblings('.second-row').slideDown(); }); The order of the animations of this code snippet are: Answers: The targeted parent sibling .second-row will slide up, then .second-row will slide down. .second-row will slide up, then the targeted parent sibling .second-row will slide down. Both the targeted parent sibling .second-row [...]

By | November 18th, 2015|Upwork Web Development|0 Comments

Joomla Test 2016

1. Which of the following items will be checked in when you use the "Global Check-in" function? Answers: Banner Content Contact Components Modules Plugins Languages Menu 2. In the User Manager, who can publish an article? Answers: The Editor The Publisher The Manager The Administrator 3. In the User Manager, which of the following groups [...]

By | November 18th, 2015|Upwork Web Development|0 Comments

E4X Test 2016

1. Which of the following methods is not one of the global methods and properties in E4X? Answers: isXMLName() isScopeNamespaces() namespaceDeclarations() removeNamespaces() 2. Which of the following characters are treated as white space characters? Answers: tab space Line feed enter 3. Which of the following is the correct syntax for calling the Namespace constructor as [...]

By | November 18th, 2015|Upwork Web Development|0 Comments