PET: Drupal – Quiz 1) What is Drupal? 2) What is Drupal core template engine type? 3) What are the default content types in drupal? 4) Which is the function used to activate the DB? 5) List out any three common DB functions in Drupal? 6) What’s the syntax to define the DB credentials in Drupal? 7) To create a custom module, how many files to be created? what are they? 8) What are the Common menu types? 9) What is the difference b/w callback and callback arguments? 10) List the default roles in Drupal? 11) How many spaces to be used for indention? 12) Among the following DB-place-holders, which one is not enclosed with in single quotes? a) Binary b) Integer c) Float d) String 13) Write a simple query with Drupal coding standard, with the condition to be met with an INTEGER value.
Key 1. open source web content management system or framework 2. PHPTemplate 3. page, blog entry, story 4. db_set_active() 5. db_set_active(), db_query(), db_result(), db_fetch_object(), db_fetch_array() db_num_rows() 6. $db_url = 'mysql://username:password@localhost/databasename'; 7. three files (i.e) .info, .module & .install files 8. MENU_DEFAULT_LOCAL_TASK, MENU_LOCAL_TASK and MENU_CALLBACK 9. callback is to trigger the function callback arguments is to pass the arguments to callback function 10. anonymous user & authenticated user 11. 2 12. a (binary) 13. SELECT * FROM {tablename} WHERE fieldname = %d', value (Note: value can be any Integer)

Quiz With Answers Drupal

  • 1.
    PET: Drupal –Quiz 1) What is Drupal? 2) What is Drupal core template engine type? 3) What are the default content types in drupal? 4) Which is the function used to activate the DB? 5) List out any three common DB functions in Drupal? 6) What’s the syntax to define the DB credentials in Drupal? 7) To create a custom module, how many files to be created? what are they? 8) What are the Common menu types? 9) What is the difference b/w callback and callback arguments? 10) List the default roles in Drupal? 11) How many spaces to be used for indention? 12) Among the following DB-place-holders, which one is not enclosed with in single quotes? a) Binary b) Integer c) Float d) String 13) Write a simple query with Drupal coding standard, with the condition to be met with an INTEGER value.
  • 2.
    Key 1. open source web content management system or framework 2. PHPTemplate 3. page, blog entry, story 4. db_set_active() 5. db_set_active(), db_query(), db_result(), db_fetch_object(), db_fetch_array() db_num_rows() 6. $db_url = 'mysql://username:password@localhost/databasename'; 7. three files (i.e) .info, .module & .install files 8. MENU_DEFAULT_LOCAL_TASK, MENU_LOCAL_TASK and MENU_CALLBACK 9. callback is to trigger the function callback arguments is to pass the arguments to callback function 10. anonymous user & authenticated user 11. 2 12. a (binary) 13. SELECT * FROM {tablename} WHERE fieldname = %d', value (Note: value can be any Integer)