Trishul API MCQs with answers Page - 11

Here, you will find a collection of MCQ questions on Trishul API . Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833K Points
Coach

Q. Which method supports sending mixed data type?

  • (A) post_flux()
  • (B) put_flux()
  • (C) post_mono()
  • (D) delete_flux()

A

Admin • 833K Points
Coach

Q. What is the return type of TrishulClient methods?

  • (A) Boolean
  • (B) PDO
  • (C) Response from server
  • (D) JSON only

A

Admin • 833K Points
Coach

Q. Which class is used to define headers?

  • (A) HttpHeader
  • (B) RequestHeader
  • (C) TrishulClientHeader
  • (D) HeaderBuilder

A

Admin • 833K Points
Coach

Q. What is passed to __makeCurlRequest() as requestType?

  • (A) URL
  • (B) HTTP method (GET, POST, etc.)
  • (C) Headers
  • (D) Response

A

Admin • 833K Points
Coach

Q. Which parameter is NOT optional in client methods?

  • (A) URL
  • (B) Headers
  • (C) Data
  • (D) All are required

A

Admin • 833K Points
Coach

Q. What happens inside __makeCurlRequest()?

  • (A) Creates DB connection
  • (B) Sets up and executes cURL request
  • (C) Parses JSON
  • (D) Routes request

A

Admin • 833K Points
Coach

Q. Which method is used for PUT request (mono variant)?

  • (A) put()
  • (B) put_mono()
  • (C) update_mono()
  • (D) put_flux()

A

Admin • 833K Points
Coach

Q. Which method enforces array type for data?

  • (A) post_mono()
  • (B) put_mono()
  • (C) post_flux()
  • (D) get_mono()

A

Admin • 833K Points
Coach

Q. Which of the following is a correct usage?

Code:
$client->get_mono('https://api.example.com/data', $headers);
  • (A) Correct
  • (B) Incorrect - missing data param
  • (C) Incorrect - wrong method
  • (D) Incorrect - headers must be array

A

Admin • 833K Points
Coach

Q. What is the primary responsibility of the DB class?

  • (A) Routing requests
  • (B) Providing database connection
  • (C) Handling middleware
  • (D) Managing API responses

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ