Admin Dashboard
×

Result for: Sanket Sanjay Patil


Exam Name: ERP NEXT Developer

Download Result (PDF)

Total Marks: 45.0

Score: 9.0

Percentage: 20.00%


Question Answers

Sr. No. Question Selected Answer Correct Answer
1 What is the underlying web framework used by ERPNext? Flask Frappe
2 Which DocType property defines if a document is a single instance (like Settings) or a list of records? Is Tree Is Single
3 In Frappe, what is a "DocType"? A database table definition A database table definition
4 Which field type is used to link two DocTypes together? Data Link
5 What is the file extension for the meta-data of a DocType? .js .json
6 Which command is used to start the development server? frappe start bench start
7 Which command creates a new Frappe app? bench new-app [name] bench new-app [name]
8 Where are the site configurations (like database credentials) stored? sites/common_site_config.json sites/[site_name]/site_config.json
9 To apply changes made in DocType JSON files to the database, which command is used? bench migrate bench migrate
10 How do you enable "Developer Mode" for a site? It is on by default set "developer_mode": 1 in site_config.json
11 Which event is triggered when a form is loaded and ready? onload refresh
12 How do you set a value in a field using Client Script? this.field = value frm.set_value('field', value)
13 How do you make a field read-only dynamically via script? frm.set_read_only('field') frm.set_df_property('field', 'read_only', 1)
14 Which method is used to fetch a value from the database asynchronously in JS? frappe.fetch frappe.call
15 What is the correct syntax to trigger a function when a specific field 'age' changes? on_change_age: function(frm) { } age: function(frm) { }
16 Which controller method is called before saving a document to validate data? on_update validate
17 How do you fetch a specific document in Python? frappe.db.get(doctype, name) frappe.get_doc(doctype, name)
18 How do you show a popup message to the user from Python code? console.log("Message") frappe.msgprint("Message")
19 Which decorator is required to make a Python function accessible via AJAX/API? @frappe.public @frappe.whitelist()
20 In a controller class, how do you access the value of the 'status' field? request.status self.status
21 What is the prefix of database tables created by Frappe? frappe_ tab
22 Which method is best for fetching a single value from the DB for performance? frappe.db.sql frappe.db.get_value
23 How do you run a raw SQL query in Frappe? frappe.sql("query") frappe.db.sql("query")
24 Which parameter in frappe.get_list is used to filter results? conditions filters
25 By default, frappe.db.sql returns data as: JSON Object List of Tuples
26 What is the file hooks.py used for? Connecting events and scheduling tasks Connecting events and scheduling tasks
27 How do you restrict a document so it can only be submitted, not cancelled? Use permission manager Override on_cancel and throw exception
28 To export custom fields created in a live site to your app, you use: Data Backup Fixtures
29 Which hook is used to run a task every day at midnight? scheduler_events scheduler_events
30 If you want to change the standard logic of the 'Item' DocType validation without touching core files, you should use: doc_events in hooks.py doc_events in hooks.py
31 What is the standard REST API endpoint format for a specific document? /api/method/DocType/Name /api/resource/DocType/Name
32 Which header is required for token-based authentication in API calls? Authorization Authorization
33 To allow Guest (not logged in) users to access a whitelisted function, you must: Set allow_guest=True in decorator Set allow_guest=True in decorator
34 What method is used to call a Python function from another app? run_method frappe.call
35 If frappe.db.commit() is not called after a DB write in a custom script... The transaction is rolled back The transaction is rolled back
36 How do you run a long-running Python function in the background? frappe.background.run() frappe.enqueue()
37 Which Redis queue is used for long jobs by default? long default
38 How do you log a complex error trace to the 'Error Log' DocType? logging.error(message) frappe.log_error(message, title)
39 What command allows you to open a Python shell within the context of your site? python bench console
40 If you need to store temporary data that expires, which mechanism should you use? A text file frappe.cache()
41 Which templating engine is used for Print Formats in ERPNext? Handlebars Jinja2
42 In a Query Report, how do you pass filters from JS to the SQL query? String concatenation Using %(filter_name)s syntax
43 Which file is required to define the columns of a Script Report? .js file .py file
44 How do you add a custom button to the Form Menu in JS? frappe.ui.button frm.add_custom_button
45 To render a custom HTML template inside a workspace or page, you use: frappe.get_html frappe.render_template
  Page 1  
Admin Dashboard