AHMAD ASJAD – احمد اسجد

Developer

  • HOME
  • Question & Answer
  • CONTACT

Archives

December 2, 2016

Method overloading in php

Which of the following is useful for method overloading?

 

Options:

  1. __cal, __get, __set
  2. _get, _set, _load
  3. __get, __set, __load
  4. __overload

 

Answer   
  1. A

Have a look on this

Posted in by ahmadasjad Leave a comment
December 2, 2016

echo 30 * 5 . 7;

What will be the output of the following code?

 

Code Block   
  1. <?php
  2.  
  3. echo 30 * 5 . 7;
  4.  
  5. ?>

 

 

Options:

  1. 150 . 7
  2. 1507
  3. 150.7
  4. Integers can’t be concatenated.
  5. An error will be thrown.

 

Answer   
  1. B
Posted in by ahmadasjad Leave a comment
May 25, 2016

____ is a pointer associated with the open file that you can use to access the file contents

  1. File type
  2. Server
  3. Remote file
  4. File handle
View Answer   
  1. D: File handle
Posted in by ahmadasjad Leave a comment
May 25, 2016

__store larger amount of data and store it in much more secure fashion

  1. Query String
  2. Cookies
  3. Session
  4. Database

 

Code Block   
  1. D: Databse
Posted in by ahmadasjad Leave a comment
May 17, 2016

echo & print within one statement

What will be output of the following

Code Block   
  1. <?php
  2. echo '1'.print(2)+3;
  3. ?>

Options

  • A    : 123
  • B    : 321
  • C    : 511
  • D    : 155
  • E    : 432

 

Answer

Show Answer   
  1. C

If, it’s so, why?

Posted in by ahmadasjad Leave a comment
2 of 2«12

Categories

  • Algorithm (10)
  • Array (2)
  • Database (5)
    • MySQL (5)
    • SQL (1)
  • Design Pattern (1)
  • e-Commerce (1)
    • Magento (1)
  • Framework (3)
    • Yii Framework (3)
  • Function (14)
  • HTML (1)
  • JavaScript (4)
  • JQuery (5)
  • Method (6)
  • OS (2)
    • Ubuntu (1)
    • Windows (1)
  • PHP (25)
  • Programming (30)
    • Python (1)
  • Server (1)
  • Sorting (1)
  • Uncategorized (1)
  • XAMPP (1)

Old Post

  • October 2018 (2)
  • February 2018 (2)
  • November 2017 (1)
  • February 2017 (1)
  • December 2016 (2)
  • November 2016 (1)
  • August 2016 (3)
  • July 2016 (1)
  • June 2016 (1)
  • May 2016 (1)
  • April 2016 (2)
  • January 2016 (3)
  • December 2015 (5)
  • November 2015 (7)
  • May 2015 (1)
  • March 2015 (2)
  • January 2015 (2)
  • December 2014 (1)
  • February 2014 (1)
This Site is owned by Ahmad Asjad & All © Reserved to him
ahmadasjad.in
 

Loading Comments...