On Github sawtell / sawtell.github.io
1.0 Fundamental Web Concepts 13% 2.0 Site Building 27% 3.0 Front end development (theming) 25% 4.0 Back end development (coding) 35%
Pass mark: 65%
You are building a solution in PHP using object orientated methodologies. You want to be able to create variations of a base class and the base class should never be instantiated. What do you do?
Create an abstract base class and extend it with each variation. Create an interface base class and extend it with each variation. Create an individual class for each variation. Write the functionality using procedural programming in individual files and include them when necessary.There are some lines in custom code that are causing an issue. The code is version controlled with Git. You want to figure out who wrote the lines of offending code. How do you it?
Use the git log command and view who last committed to the file. Use the git log command with the grep option to search for the offending lines of code. Use the git blame command and view the user who committed the lines. Send an email to the team to ask who added the offending lines of code.You have 2 content types Blog and Article, an image field is used on both. The site administrator wants to remove the image field from the Article content type. Which statement below is true?
Deleting the field instance on the Article content type won't affect Blog node content. You cannot delete a field once it has stored data. Delete the field instance will remove it from both the Article and Blog content types. Deleting the Article field instance will only affect new Article nodes, the old nodes will still display the field.
You have a content type Blog. The client wants a page displaying a Views list of the 10 most recently created Blog nodes. The list must display a stripped down version of the full Blog node. Which one of the following solutions should you use?
Copy the views template files into the theme and update them to strip out the desired fields. Use the views display format to display the full Blog content then update the node template file to check for the current page to display the stripped down content. Use the fields display format in Views to select only the fields to display. Configure the teaser display mode for the Blog content type and update the views display format to use the new display mode.You are working on a client website. A custom module; key_data has been developed and needs to be updated. A new table required to store additional meta data. The module is already live, how do you update it?
Implement key_meta_data_install() to specify the new table schema. Deploy the changes and run update.php on the site. Update the function key_meta_data_schema() implementation with the new table definition, write the function key_meta_data_update_N() that calls the function drupal_install_schema(). Deploy the changes and run update.php on the site. Update the existing function key_data_schema() with the new table definition. Implement key_data_update_N() and call the function db_create_table(). Deploy the changes and run update.php Log into mysql on the live server and run the relevant commands to create the new table.Overall Score: 81%
Topic Level Scoring:
Result: Pass
Read Tanay Sai's blog - http://www.tanay.co.in/
Read the Drupal documentation
Role play and create
Read through the questions and answers carefully.
Mark questions for review that you are unsure on.
Use the power of deduction.