SlideShare a Scribd company logo
1 of 2
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)

More Related Content

What's hot

Learn PHP Lacture2
Learn PHP Lacture2Learn PHP Lacture2
Learn PHP Lacture2ADARSH BHATT
 
Django with MongoDB using MongoEngine
Django with MongoDB using MongoEngineDjango with MongoDB using MongoEngine
Django with MongoDB using MongoEngineRakesh Kumar
 
Rails and alternative ORMs
Rails and alternative ORMsRails and alternative ORMs
Rails and alternative ORMsJonathan Dahl
 
Intro to drupal module internals asheville
Intro to drupal module internals ashevilleIntro to drupal module internals asheville
Intro to drupal module internals ashevillecgmonroe
 
System performance tuning
System performance tuningSystem performance tuning
System performance tuningMenandro Oba
 
Presentation on files
Presentation on filesPresentation on files
Presentation on filesmallubenal
 

What's hot (9)

phptut4
phptut4phptut4
phptut4
 
Learn PHP Lacture2
Learn PHP Lacture2Learn PHP Lacture2
Learn PHP Lacture2
 
Django with MongoDB using MongoEngine
Django with MongoDB using MongoEngineDjango with MongoDB using MongoEngine
Django with MongoDB using MongoEngine
 
Rails and alternative ORMs
Rails and alternative ORMsRails and alternative ORMs
Rails and alternative ORMs
 
Intro to drupal module internals asheville
Intro to drupal module internals ashevilleIntro to drupal module internals asheville
Intro to drupal module internals asheville
 
System performance tuning
System performance tuningSystem performance tuning
System performance tuning
 
PHP Data Objects
PHP Data ObjectsPHP Data Objects
PHP Data Objects
 
Presentation on files
Presentation on filesPresentation on files
Presentation on files
 
extending-php
extending-phpextending-php
extending-php
 

Viewers also liked

Git presentation to some coworkers some time ago
Git presentation to some coworkers some time agoGit presentation to some coworkers some time ago
Git presentation to some coworkers some time agoRodrigo Urubatan
 
Are you ready for Drupal 8?
Are you ready for Drupal 8?Are you ready for Drupal 8?
Are you ready for Drupal 8?Stephanie Peugh
 
Yet Another Drupal Development/Deployment Presentation
Yet Another Drupal Development/Deployment PresentationYet Another Drupal Development/Deployment Presentation
Yet Another Drupal Development/Deployment Presentationdigital006
 
Performance & Scalability in Drupal
Performance & Scalability in DrupalPerformance & Scalability in Drupal
Performance & Scalability in DrupalMukesh Agarwal
 
Master the New Core of Drupal 8 Now: with Symfony and Silex
Master the New Core of Drupal 8 Now: with Symfony and SilexMaster the New Core of Drupal 8 Now: with Symfony and Silex
Master the New Core of Drupal 8 Now: with Symfony and SilexRyan Weaver
 
Aneurysm Enhancement Poster AMIA 2009
Aneurysm Enhancement Poster AMIA 2009Aneurysm Enhancement Poster AMIA 2009
Aneurysm Enhancement Poster AMIA 2009ktdiedrich
 
Drupal 8 Configuration Management
Drupal 8 Configuration ManagementDrupal 8 Configuration Management
Drupal 8 Configuration ManagementPhilip Norton
 

Viewers also liked (9)

Git presentation to some coworkers some time ago
Git presentation to some coworkers some time agoGit presentation to some coworkers some time ago
Git presentation to some coworkers some time ago
 
Are you ready for Drupal 8?
Are you ready for Drupal 8?Are you ready for Drupal 8?
Are you ready for Drupal 8?
 
Yet Another Drupal Development/Deployment Presentation
Yet Another Drupal Development/Deployment PresentationYet Another Drupal Development/Deployment Presentation
Yet Another Drupal Development/Deployment Presentation
 
#D8 cx: upgrade your modules to drupal 8
#D8 cx: upgrade your modules to drupal 8 #D8 cx: upgrade your modules to drupal 8
#D8 cx: upgrade your modules to drupal 8
 
Drupal Best Practices
Drupal Best PracticesDrupal Best Practices
Drupal Best Practices
 
Performance & Scalability in Drupal
Performance & Scalability in DrupalPerformance & Scalability in Drupal
Performance & Scalability in Drupal
 
Master the New Core of Drupal 8 Now: with Symfony and Silex
Master the New Core of Drupal 8 Now: with Symfony and SilexMaster the New Core of Drupal 8 Now: with Symfony and Silex
Master the New Core of Drupal 8 Now: with Symfony and Silex
 
Aneurysm Enhancement Poster AMIA 2009
Aneurysm Enhancement Poster AMIA 2009Aneurysm Enhancement Poster AMIA 2009
Aneurysm Enhancement Poster AMIA 2009
 
Drupal 8 Configuration Management
Drupal 8 Configuration ManagementDrupal 8 Configuration Management
Drupal 8 Configuration Management
 

Similar to Drupal Quiz - Core Concepts and Functions

Drupal Module Development - OSI Days 2010
Drupal Module Development - OSI Days 2010Drupal Module Development - OSI Days 2010
Drupal Module Development - OSI Days 2010Siva Epari
 
13th Sep, Drupal 7 advanced training by TCS
13th Sep, Drupal 7 advanced training by TCS 13th Sep, Drupal 7 advanced training by TCS
13th Sep, Drupal 7 advanced training by TCS DrupalMumbai
 
Entity Query API
Entity Query APIEntity Query API
Entity Query APImarcingy
 
Top 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and AnswersTop 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and AnswersVineet Kumar Saini
 
Custom module and theme development in Drupal7
Custom module and theme development in Drupal7Custom module and theme development in Drupal7
Custom module and theme development in Drupal7marif4pk
 
Drupal 8 - Core and API Changes
Drupal 8 - Core and API ChangesDrupal 8 - Core and API Changes
Drupal 8 - Core and API ChangesShabir Ahmad
 
Andriy Podanenko.Drupal database api.DrupalCamp Kyiv 2011
Andriy Podanenko.Drupal database api.DrupalCamp Kyiv 2011Andriy Podanenko.Drupal database api.DrupalCamp Kyiv 2011
Andriy Podanenko.Drupal database api.DrupalCamp Kyiv 2011camp_drupal_ua
 
Data Abstraction for Large Web Applications
Data Abstraction for Large Web ApplicationsData Abstraction for Large Web Applications
Data Abstraction for Large Web Applicationsbrandonsavage
 
Drupal Camp Porto - Developing with Drupal: First Steps
Drupal Camp Porto - Developing with Drupal: First StepsDrupal Camp Porto - Developing with Drupal: First Steps
Drupal Camp Porto - Developing with Drupal: First StepsLuís Carneiro
 
Intro to drupal_7_architecture
Intro to drupal_7_architectureIntro to drupal_7_architecture
Intro to drupal_7_architectureHai Vo Hoang
 
100 PHP question and answer
100 PHP  question and answer100 PHP  question and answer
100 PHP question and answerSandip Murari
 
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01Tekblink Jeeten
 
Drupal 7 entities & TextbookMadness.com
Drupal 7 entities & TextbookMadness.comDrupal 7 entities & TextbookMadness.com
Drupal 7 entities & TextbookMadness.comJD Leonard
 
Php interview questions
Php interview questionsPhp interview questions
Php interview questionssubash01
 
Drupal Best Practices
Drupal Best PracticesDrupal Best Practices
Drupal Best Practicesmanugoel2003
 
Top 8 Improvements in Drupal 8
Top 8 Improvements in Drupal 8Top 8 Improvements in Drupal 8
Top 8 Improvements in Drupal 8Angela Byron
 

Similar to Drupal Quiz - Core Concepts and Functions (20)

Drupal 8 Hooks
Drupal 8 HooksDrupal 8 Hooks
Drupal 8 Hooks
 
Drupal Module Development - OSI Days 2010
Drupal Module Development - OSI Days 2010Drupal Module Development - OSI Days 2010
Drupal Module Development - OSI Days 2010
 
13th Sep, Drupal 7 advanced training by TCS
13th Sep, Drupal 7 advanced training by TCS 13th Sep, Drupal 7 advanced training by TCS
13th Sep, Drupal 7 advanced training by TCS
 
Entity Query API
Entity Query APIEntity Query API
Entity Query API
 
Top 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and AnswersTop 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and Answers
 
Custom module and theme development in Drupal7
Custom module and theme development in Drupal7Custom module and theme development in Drupal7
Custom module and theme development in Drupal7
 
Drupal 8 - Core and API Changes
Drupal 8 - Core and API ChangesDrupal 8 - Core and API Changes
Drupal 8 - Core and API Changes
 
Andriy Podanenko.Drupal database api.DrupalCamp Kyiv 2011
Andriy Podanenko.Drupal database api.DrupalCamp Kyiv 2011Andriy Podanenko.Drupal database api.DrupalCamp Kyiv 2011
Andriy Podanenko.Drupal database api.DrupalCamp Kyiv 2011
 
Data Abstraction for Large Web Applications
Data Abstraction for Large Web ApplicationsData Abstraction for Large Web Applications
Data Abstraction for Large Web Applications
 
Drupal Camp Porto - Developing with Drupal: First Steps
Drupal Camp Porto - Developing with Drupal: First StepsDrupal Camp Porto - Developing with Drupal: First Steps
Drupal Camp Porto - Developing with Drupal: First Steps
 
Intro to drupal_7_architecture
Intro to drupal_7_architectureIntro to drupal_7_architecture
Intro to drupal_7_architecture
 
100 PHP question and answer
100 PHP  question and answer100 PHP  question and answer
100 PHP question and answer
 
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
 
Drupal 7 entities & TextbookMadness.com
Drupal 7 entities & TextbookMadness.comDrupal 7 entities & TextbookMadness.com
Drupal 7 entities & TextbookMadness.com
 
Php interview questions
Php interview questionsPhp interview questions
Php interview questions
 
Drupal Best Practices
Drupal Best PracticesDrupal Best Practices
Drupal Best Practices
 
Data herding
Data herdingData herding
Data herding
 
Data herding
Data herdingData herding
Data herding
 
Top 8 Improvements in Drupal 8
Top 8 Improvements in Drupal 8Top 8 Improvements in Drupal 8
Top 8 Improvements in Drupal 8
 
Mongo-Drupal
Mongo-DrupalMongo-Drupal
Mongo-Drupal
 

Drupal Quiz - Core Concepts and Functions

  • 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)