Web2Py MCQ Questions & Answers
Web2Py MCQs : This section focuses on "Web2Py" of Python Frameworks. These Multiple Choice Questions (MCQ) should be practiced to improve the Web2Py skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Web2py is written in the?
A. C++
B. Java
C. Python
D. Ruby
View Answer
Ans : C
Explanation: It is written in the Python programming language. It allows web developers to design and develop dynamic web application.
2. Web2py supports various protocols like?
A. XML
B. JSON
C. RSS
D. All of the above
View Answer
Ans : D
Explanation: Web2py supports various protocols like: XML, JSON, RSS, CSV, XMLRPC, JSON RPC, AND RPC, and SOAP.
3. Massimo Di Pierro developed the author of Web2py.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Massimo Di Pierro developed the author of Web2py.
4. Which of the following helps rendering the display of the data?
A. Models
B. Views
C. Controllers
D. Languages
View Answer
Ans : B
Explanation: Views: It helps rendering the display of the data.
5. Which of the following stores error reports generated by the application?
A. Sessions
B. Modules
C. Errors
D. Uploads
View Answer
Ans : C
Explanation: Errors: It stores error reports generated by the application.
6. _______ object is used to represents a database connection.
A. PAL
B. ZAL
C. SAL
D. DAL
View Answer
Ans : D
Explanation: DAL object is used to represents a database connection.
7. ____________ method is used to send an email.
A. mail.compose()
B. mail.send()
C. mail.read()
D. mail.receive()
View Answer
Ans : B
Explanation: In Web2py, mail.send() method is used to send an email.
8. RBAC stands for?
A. Read Based Access Control
B. Restrict Based Access Control
C. Role Based Access Control
D. Run Based Access Control
View Answer
Ans : C
Explanation: In Web2py, RBAC stands for Role Based Access Control. It is an approach to restricting system access to authorized used.
9. Is It Possible To Skip The Gui And Start Web2py Directory?
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: Yes, by using command line.
10. Which of the following are features of Web2py?
A. It is easy to learn
B. It is portable
C. It has standard library that supports many task
D. All of the above
View Answer
Ans : D
Explanation: All of the above are features of Web2py.
11. A better pattern in web2py is to submit forms to the same action, which generates them. This mechanism is called as ?
A. formback
B. postback
C. model
D. view
View Answer
Ans : B
Explanation: A better pattern in web2py is to submit forms to the same action, which generates them. This mechanism is called as postback which is the main feature of web2py.
12. Web2py default port is?
A. 3000
B. 5000
C. 8000
D. 10000
View Answer
Ans : C
Explanation: Web2py default port is 8000.
13. In Web2fy Framework, gluon.tools.Mail class is used to send email.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, In Web2fy Framework, gluon.tools.Mail class is used to send email.
14. Which crud methods returns a list of tables which is defined in the database?
A. crud.create(db.tablename)
B. crud.delete(db.tablename, id)
C. crud.read(db.tablename, id)
D. crud.tables()
View Answer
Ans : D
Explanation: crud.tables() : It returns a list of tables which is defined in the database.
15. The scheduled events are listed in models with the file name ?
A. admin.py
B. setting.py
C. scheduler.py
D. None of the above
View Answer
Ans : C
Explanation: The scheduled events are listed in models with the file name scheduler.py.
16. Which of the following gives the ability to run the task within the specified intervals of the time?
A. Scheduler
B. CRON
C. Scheduler
D. All of the above
View Answer
Ans : B
Explanation: In web2py, CRON gives the ability to run the task within the specified intervals of the time.
17. HTML helpers consists of _________ types.
A. 5
B. 4
C. 3
D. 2
View Answer
Ans : D
Explanation: HTML helpers consists of two types, namely positional and named arguments.
18. In Web2fy Framework, gluon.tools.Mail class is used to send email.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, In Web2fy Framework, gluon.tools.Mail class is used to send email.
19. web2py uses ________ as the universal tag generator.
A. MENU
B. BEAUTIFY
C. TAG
D. SET
View Answer
Ans : C
Explanation: web2py uses TAG as the universal tag generator. It helps in generating customized XML tags.
20. Massimo Di Pierro developed the author of Web2py.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Massimo Di Pierro developed the author of Web2py.
Discussion