Trishul API MCQs with answers Page - 8

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. What type of class is TrishulApiCoreDataModel?

  • (A) Interface
  • (B) Concrete class
  • (C) Abstract class
  • (D) Final class

A

Admin • 833K Points
Coach

Q. Which keyword correctly defines table name in Model v1.x?

  • (A) public string $table_name
  • (B) public static string $table_name
  • (C) protected string $table
  • (D) static $table

A

Admin • 833K Points
Coach

Q. What does Model::all() return?

  • (A) Single object
  • (B) Boolean
  • (C) Array of records
  • (D) PDO instance

A

Admin • 833K Points
Coach

Q. What is returned by getById($id)?

  • (A) Array only
  • (B) Object
  • (C) Array or null
  • (D) Boolean

A

Admin • 833K Points
Coach

Q. What does create() return?

  • (A) Boolean
  • (B) Inserted row
  • (C) Inserted ID
  • (D) PDO object

A

Admin • 833K Points
Coach

Q. Which method performs soft delete?

  • (A) deleteSoft()
  • (B) remove()
  • (C) softDelete()
  • (D) markDelete()

A

Admin • 833K Points
Coach

Q. Which methods are aliases of find()?

  • (A) where() only
  • (B) filter() only
  • (C) where() and filter()
  • (D) count() and exists()

A

Admin • 833K Points
Coach

Q. What does exists() return?

  • (A) Integer
  • (B) Array
  • (C) Boolean
  • (D) String

A

Admin • 833K Points
Coach

Q. Which method executes raw SQL and returns multiple records?

  • (A) rawQuerySingle()
  • (B) rawQuery()
  • (C) rawQueryCount()
  • (D) rawQueryExists()

A

Admin • 833K Points
Coach

Q. Which method returns only one record using raw SQL?

  • (A) rawQuery()
  • (B) rawQuerySingle()
  • (C) rawQueryOne()
  • (D) rawSingle()

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