MySQL interview questions part 54

MySQL interview questions part 54

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Which function is used to determine whether the variable’s value is either TRUE or FALSE?

Correct Answer is : NO

2. What will be the output of the following PHP code? title}: " .$shopProduct->getProducer() ." ({$shopProduct->price})\n"; print $str; } } $product1 = new ShopProduct( "My Antonia", "Willa", "Cather", 5.99 ); $writer = new ShopProductWriter(); $writer->write( $product1 );?>

Correct Answer is : NO

3. Which version of PHP introduced class type hints?

Correct Answer is : Null

4. Inheritance is the means by which one or more classes can be derived from a/an ___ class.

Correct Answer is : Null

5. What will be the output of the following PHP code?

Correct Answer is : Null

6. What will be the output of the following PHP code?

Correct Answer is : TRUE

7. What will be the output of the following PHP code?

Correct Answer is : Null

8. What will be the output of the following PHP code?

Correct Answer is : Null

9. What should be used to refer to a method in the context of a class rather than an object you use?

Correct Answer is : Null

10. Prior to which version of PHP did constructors took the name of the enclosing class.

Correct Answer is : Group data by column values

11. Which method or property can only be accessed from within the enclosing class? Even subclasses have no access.

Correct Answer is : WHERE

12. A mutator method is also called as..

Correct Answer is : To filter out the row values

13. A package is a set of related _________

Correct Answer is : Aggregate functions

14. Till which version of PHP, developers were forced to name their files in a global context?

Correct Answer is : COUNT

15. Which of the following can you place inside a namespace? i) classes ii) functions iii) variables

Correct Answer is : All of the mentioned

16. Which one of the following is the correct way of declaring a namespace?

Correct Answer is : GROUP BY

17. Which symbol is used to declare nested namespaces?

Correct Answer is : Aggregation of the field “name” of table “department”

18. Output of namespace main; com\getinstance\util\Debug::helloWorld() is PHP Fatal error: Class ‘main\com\getinstance\util\Debug’ not found in … Using which one of the following lines will the error be removed?

Correct Answer is : Filter out all rows whose total emp_id below 2 & Selecting those rows whose total emp_id>2

19. Which keyword can be used to fix the above error?

Correct Answer is : No

20. If I already had a Debug class in the main namespace. What will be the output of the following code? namespace main;use com\getinstance\util\Debug;
class Debug {    static function helloWorld() {        print "hello from main\Debug";    } } Debug::helloWorld();

Correct Answer is : Sorting your result set using column data

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon