Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

The data type BLOB stands for:

A. Binary Large Object
B. Big List Object
C. Binary List Object
D. None of the above
Answer» B. Big List Object
2.

Which of the following is used to delete an entire MYSQL database?

A. drop entiredb dbname
B. drop database dbname
C. drop db dbname
D. drop dbase dbname
Answer» C. drop db dbname
3.

In PHP 5, how can you write a class so that some of its properties cannot be accessed from outside its methods?

A. By declaring the class as private
B. By declaring the property as private
C. It cannot be done
D. By writing a property overloading method
Answer» C. It cannot be done
4.

Which object-oriented pattern would you use to implement a class that must be instantiated only once for the entire lifespan of a script?

A. Model-view-controller
B. Abstract factory
C. Singleton
D. Proxy
Answer» D. Proxy
5.

Array values are keyed by ______ values (called indexed arrays) or using ______ values (called associative arrays).

A. Float, string
B. Even number, string
C. String, Boolean
D. Integer, string
Answer» E.
6.

_______ function is used to sort an array in ascending order by value while preserving key associations.

A. ksort()
B. asort()
C. krsort()
D. usort()
Answer» C. krsort()
7.

What is the name of function used to convert an array into a string?

A. explode()
B. glue()
C. implode()
D. None of the above
Answer» D. None of the above
8.

Which is an invalid name of identifier?

A. world
B. addition23
C. test-name
D. factorial
Answer» D. factorial
9.

The resistance of conductor is R. If the conductor length gets doubled and cross section is reduced by half a times then the resistance of conductor is

A. R remains same
B. R gets reduced by 2
C. R increases by 2
D. R increases by 4
Answer» E.
10.

In dc motor the motion of conductor is given by

A. Flemmings right hand rule
B. Flemings left hand rule
C. Cork screw rule
Answer» C. Cork screw rule
Previous Next