Type Here to Get Search Results !

Web Technologies Mcq Questions [SET - 8] | Web Technology Exam Questions and Answers

 

web technology exam questions and answers

1.The _______ function generates a random number:

    rand
    min
    abs

ANSWER= (A) rand

 

2. To create a constant, use the _____ function.is used

    define()
    min()
    abs()

ANSWER= (A) define()

 

3. A ______is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.

    cookie
    session
    abs

ANSWER= (A) cookie

 

4. the _____function returns the square root of a number:

    count
    min
    abs

ANSWER= (D)  sqrt()

 

5. which type of language used in sql

     DDL
    DML
    DIL

ANSWER= (A) DDL

 

6.  A ______ is a way to store information (in variables) to be usedacross multiple pages.

    cookie
    session
     abs

ANSWER= (B) session

 

7. _______are the two main aspects of object-oriented programming.

    classes and objects
    constructor and destructor
    object and array

ANSWER= (A)  classes and objects

 

8. If you create a __construct() function, PHP will automatically call thisfunction when you create an object from a class.

    true
    false
    both a and b

ANSWER= (A) true

 

9. A ______is called when the object is destructed or the script is stopped orexited.

    destructor
    constructor
    object

ANSWER= (A)  destructor

 

10. If you create a __destruct() function, PHP will automatically call thisfunction at the end of the script.

    true
    false
    both a and b

ANSWER= (A) true

 

11. Abstract classes and methods are when the parent class has a named method,but need its child class(es) to fill out the tasks.

    true
    false
    both a and b

ANSWER= (A) true

 

12. An abstract class is a class that contains at least one abstract method. Anabstract method is a method that is declared, but not implemented in the code.

    true
    false
    both a and b

ANSWER= (A) true

 

13. When inheriting from an abstract class, the child class method must be definedwith the same name, and the same or a less restricted access modifier.

    false
    both a and b
ANSWER= (A) true


 

14. Interfaces allow you to specify what methods a class should implement.


     true
    false
    both a and b

ANSWER= (A) true

 

15.  To implement an interface, a class must use the______ keyword.

    interface
    abstract class
     implements

ANSWER= (C)  implements

 

16. In PHP, there are three types of arrays one is not type of array in phpwhich one:

    Indexed arrays -
    Associative arrays -
    Multidimensional arrays -

ANSWER= (D) polygamy array

 

17.  An inherited class is defined by using the extends keyword.

    true
    false
    both a and b

ANSWER= (A) true

 

18.  A destructor is called when the object is destructed or the script is stopped orexited.

    true
    false
     both a and b

ANSWER= (A) true

 

19. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.

    true
    false
     both a and b

ANSWER= (A) true

 

20. If there is no error, then what will the error() method return?

    TRUE
    FALSE
    Empty String

ANSWER= (C)  Empty String

 

21. Which one of the following statements should be used to include a file?

     #include ‘filename’;
    include ‘filename’;
     include <filename>

ANSWER= (B) include ‘filename’;

 

22. ______ is use to create the web page .

    Word press
    Lotus
    Word star
ANSWER= (A) Word press

 

23. A class that is inherited from by another class. This is also called a ____

    child class
    class
    member function

ANSWER= (D) parent Class or base class

 

24. ________ a type of polymorphism in which some or all of operators have differentimplementations depending on the types of their arguments

    overloading
    data Abstraction
    Encapsulation

ANSWER= (A) overloading

 

25. ________Any representation of data in which the implementation details are hidden

    overloading
    data Abstraction
    Encapsulation

ANSWER= (B) data Abstraction

 

26. __________ refers to a concept where we encapsulate all the data and member functionstogether to form an object.

    overloading
    data Abstraction
    Encapsulation

ANSWER= (C) Encapsulation

 

27.  Validation means check the input submitted by the user.

    true
    false
    both a and b

ANSWER= (A) true

 

28. Which one of the following methods can be used to diagnose and displayinformation about a MySQL connection error?

    connect_errno()
    connect_error()
    mysqli_connect_errno()

ANSWER= (C) mysqli_connect_errno()


 

29.The default file extension for PHP files is _________

    .PHP
    .js
    .Ajs

ANSWER= (A) .PHP

 

30. __________ is used to show the out put …or give message..same as printf in clanguage…

    Echo
    java script
    Angular js

ANSWER= (A) Echo



Friends if you like this post,kindly comment bellow and do share your responce.Thank You for Visiting.

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Top Post Ad

Below Post Ad