YouTube Icon

Interview Questions.

Top 100+ Web2py Interview Questions And Answers - May 24, 2020

fluid

Top 100+ Web2py Interview Questions And Answers

Question 1. What Is Web2py Framework?

Answer :

Web2py is an open supply web utility framework. It is written within the Python programming language. It lets in web builders to layout and broaden dynamic net software.

Question 2. How Can We Install Web2py In Different Operating System?

Answer :

We can install Web2fy in one-of-a-kind operating device by using the use of following code:

Operation System : Unix and Linux,OS X,Windows

Command : python web2py.Py,open web2py.App,web2py.Exe

Python Interview Questions

Question 3. What Are The Protocols Supports In Web2py?

Answer :

Web2py helps numerous protocols like: XML, JSON, RSS, CSV, XMLRPC, JSON RPC, AND RPC, and SOAP.

Question four. How To Write A Hello World Program In Web2py?

Answer :

We can write a howdy international program by means of using following code:

def whats up():  

        return 'Hello World'  

Python Tutorial

Question 5. Who Is The Author Of Web2py?

Answer :

Massimo Di Pierro developed the writer of Web2py.

MySQL Interview Questions

Question 6. What Is The Stable Version Of Web2py?

Answer :

Web2py solid model is 2.14.6 that's released on May 10, 2016.

Question 7. What Are The Application Components Of Web2py?

Answer :

Web2fy consists of the subsequent components:

    Models: It represents records and database tables.
    Views: It enables rendering the show of the statistics.
    Controllers: It describes the application logic and workflow.
    Languages: describe the way to translate strings inside the utility into diverse supported languages.
    Static files: Do not require processing (e.G. Pictures, CSS fashion sheets and many others).
    ABOUT and README: It offer details of the project.
    Errors: It stores blunders reviews generated by using the application.
    Sessions: It stores data associated with each specific consumer.
    Databases: It store SQLite databases and extra desk facts.
    Cache: It store cached application gadgets.
    Modules: Modules are different elective Python modules.
    Private: It includes documents are accessed by using the controllers however now not directly through the developer.
    Uploads: Files are accessed by means of the models however now not at once by the developer.

MySQL Tutorial Oracle 11g Interview Questions

Question 8. What Are The Databases And Their Drivers Support By Web2py?

Answer :

Web2py helps following databases and their drivers:

Databases Drivers

SQLite sqlite3 or pysqlite2 or zxJDBC (on Jython)

PostgreSQL psycopg2 or pg8000 or zxJDBC (on Jython)

MySQL pymysql or MySQLdb

Oracle cx_Oracle

MSSQL pyodbc or pypyodbc

FireBird kinterbasdb or fdb or pyodbc

DB2 pyodbc

Informix informixdb

Ingres ingresdbi

Cubrid cubriddb

Question nine. What Are The Crud Methods Of Web2py?

Answer :

Web2fy crud techniques are :

Methods                                                     Description

crud.Tables()                                      It returns a list of tables that is described inside the database.

Crud.Create(db.Tablename)                  It returns a create shape for the desk tablename.

Crud.Study(db.Tablename, id)                It returns a study-best shape for tablename and file identity.

Crud.Delete(db.Tablename, id)              It is used to deletes the document

crud.Pick out(db.Tablename, question)         It returns a list of facts decided on from the desk

crud.Search(db.Tablename)                  Returns a tuple (form, records) in which form is a search shape

PostgreSQL Interview Questions

Question 10. Which Class Is Used To Send Email In Web2py Framework?

Answer :

In Web2fy Framework, gluon.Equipment.Mail class is used to ship e-mail. The mailer may be defined with this class.

From gluon.Gear import Mail  

    mail = Mail()  

    mail.Settings.Server = 'smtp.Instance.Com:25'  

    mail.Settings.Sender = 'abc@example.Com'  

    mail.Settings.Login = 'username:password'  

Oracle 11g Tutorial

Question 11. What Is The Default Port Of Web2py?

Answer :

Web2py default port is 8000.

SQL DBA Interview Questions

Question 12. What Is Postbacks?

Answer :

A higher sample in web2py is to put up paperwork to the same movement, which generates them. This mechanism is called as "postback" that's the principle feature of web2py. In brief, self-submission is completed in postback.

Python Interview Questions

Question thirteen. How Can We Create A Model?

Answer :

We can create a version by means of using following code :

db.Define_table('organization', Field('call', notnull = True, unique = True), format = '%(call)s')  

db.Define_table(  

   'touch',  

   Field('call', notnull = True),  

   Field('company', 'reference company'),  

   Field('picture', 'add'),  

   Field('electronic mail', requires = IS_EMAIL()),  

   Field('phone_number', calls for = IS_MATCH('[d-() ]+')),  

   Field('address'),  

   layout = '%(call)s'  

)  

db.Define_table(  

   'log',  

   Field('frame', 'textual content', notnull = True),  

   Field('posted_on', 'datetime'),  

   Field('contact', 'reference touch')  

)

Database Testing Tutorial

Question 14. Describe The Workflow Of Web2py?

Answer :

Web2py workflow are given below :

    The web server manages HTTP requests concurrently in its personal thread.
    The HTTP request header is exceeded to the dispatcher.
    The dispatcher manages the software requests and map the PATH_INFO within the URL of the function name. Every function call is represented inside the URL.
    All the requests for documents included inside the static folder are controlled without delay, and big report are streamed to the consumer.
    Requests for anything but a static file are mapped into an motion.
    If the request header includes a consultation cookie for the app, the session item is retrieved; in any other case, a consultation identification is created.
    If the motion returns a cost as string, that is returned to the consumer.
    If the action returns an iterable, it is used to loop and flow the statistics to the client.

Question 15. What Are The Features Of Web2py?

Answer :

Web2py features are:

    It is easy to analyze.
    It is portable.
    It has widespread library that helps many undertaking.

SQL Interview Questions

Question 16. What Is The I/o Functions In Web2py?

Answer :

There are numerous I/O capabilities in Web2py which are given beneath:

open(): It enables to open a report or document

write(): It enables to jot down a string in report or file

read(): It allows to read the content material in existing report

close(): This technique closes the document item.

Django Tutorial

Question 17. What Is Cron In Web2py?

Answer :

In Web2py, CRON gives the capability to run the task within the specific c language of the time.

Database Testing Interview Questions

Question 18. What Is Rbac In Web2py?

Answer :

In Web2py, RBAC stands for Role Based Access Control. It is an approach to restricting system access to legal used.

MySQL Interview Questions

Question 19. Which Method Is Used To Send An Email In Web2py?

Answer :

In Web2py, mail.Send() approach is used to send an e mail.

Git (software program) Tutorial

Question 20. What Are The Protocols Used In Web2py?

Answer :

There are diverse protocols utilized in Web2py:

XML

JSON

RSS

CVC

SOAP and many others.

Django Interview Questions

Question 21. Does Web2py Support Multiple Database?

Answer :

Yes, Web2py supports more than one database.

Question 22. What Is The Use Of Dal Object?

Answer :

DAL object is used to represents a database connection.

Example:  db = DAL('sqlite://storage.Sqlite')

Javascript Advanced Tutorial

Question 23. How Can We Disable All The Table In Web2py?

Answer :

In Web2py, Migration is used to disable all the table.

Example: db = DAL(..., migrate enabled=False)  

Database Administration Interview Questions

Question 24. Is It Possible To Skip The Gui And Start Web2py Directory?

Answer :

Yes, with the aid of the usage of command line.

Example: python web2py.Py -a 'your password' -i 127.Zero.Zero.1 -p 8000  

Oracle 11g Interview Questions

Question 25. What Is The Process To Send Sms?

Answer :

The following code is used to send SMS:

from gluon.Contrib.Sms utils  

import SMS CODES, sms e mail  

e-mail = sms_email('1 (111) 111-1111','T-Mobile USA (abc)')  

mail.Ship(to = electronic mail, situation = 'take a look at', message = 'test')  

Flask Tutorial

Question 26. In Which Language Web2py Was Written?

Answer :

Web2py turned into written in Python language.

Git (software) Interview Questions

Question 27. What Is Nginx?

Answer :

Niginx is a unfastened, open-source web server. It is used to configure document.

PostgreSQL Interview Questions

Question 28. How Can We Delete The Records?

Answer :

We can delete the facts with the aid of the use of following code:

crud.Delete(db.Table name, identification)  

CouchDB Tutorial

Question 29. Which Tag Is Used To Escape Python Code Embedded In Html?

Answer :

Web2py uses ... Tag to get away python code embedded in HTML.




CFG