PrepAway - Latest Free Exam Questions & Answers

Author: admin

You’d like to use the class MyDBConnection that’s defined in the MyGreatFramework\MyGreatDatabaseAbstracti

You’d like to use the class MyDBConnection that’s defined in the MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type. What would you do? A. Import the MyGreatFramework namespace B. Import the MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace C. Alias MyGreatFramework\MyGreatDatabaseAbstractionLayer\MyDBConnection to a shorter name D. Alias […]

What is the difference between the spaceship operator (<=>) and the strcmp() function?

What is the difference between the spaceship operator () and the strcmp() function? A. There is no difference in functionality B. strcmp() returns a Boolean value, the spaceship operator a number C. strcmp() does a case-intensive comparison, the spaceship operator does not D. The spaceship operator returns -1, 0 or 1; strcmp() may return any […]


Page 2 of 212