Result for: Shruti Himmatrao Deshmukh
Exam Name: ERP NEXT Developer
Download Result (PDF)Email: [email protected]
Total Marks: 45.0
Score: 19.0
Percentage: 42.22%
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 Child Table | 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? | Link | Link |
| 5 | What is the file extension for the meta-data of a DocType? | .json | .json |
| 6 | Which command is used to start the development server? | npm 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/[site_name]/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 update | bench migrate |
| 10 | How do you enable "Developer Mode" for a site? | In the UI Settings | 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? | frm.set_value('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.get_doc | 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? | validate | validate |
| 17 | How do you fetch a specific document in Python? | DocType.get(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.expose | @frappe.whitelist() |
| 20 | In a controller class, how do you access the value of the 'status' field? | self.get('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.get_value | 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: | List of Tuples | List of Tuples |
| 26 | What is the file hooks.py used for? | defining DocTypes | Connecting events and scheduling tasks |
| 27 | How do you restrict a document so it can only be submitted, not cancelled? | Hide the cancel button in JS | Override on_cancel and throw exception |
| 28 | To export custom fields created in a live site to your app, you use: | Export to CSV | 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: | Client Script | 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? | frappe.call | frappe.call |
| 35 | If frappe.db.commit() is not called after a DB write in a custom script... | Data is saved automatically | 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? | default | default |
| 38 | How do you log a complex error trace to the 'Error Log' DocType? | print(error) | frappe.log_error(message, title) |
| 39 | What command allows you to open a Python shell within the context of your site? | bench shell | bench console |
| 40 | If you need to store temporary data that expires, which mechanism should you use? | frappe.cache() | frappe.cache() |
| 41 | Which templating engine is used for Print Formats in ERPNext? | Jinja2 | Jinja2 |
| 42 | In a Query Report, how do you pass filters from JS to the SQL query? | Using %(filter_name)s syntax | Using %(filter_name)s syntax |
| 43 | Which file is required to define the columns of a Script Report? | .json file | .py file |
| 44 | How do you add a custom button to the Form Menu in JS? | frm.add_custom_button | frm.add_custom_button |
| 45 | To render a custom HTML template inside a workspace or page, you use: | frappe.render_template | frappe.render_template |
Page 1