Chaitanya Lakshmi
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook

PHP is a widely used ……………. scripting language that is especially suited for web development and can be embedded into html

2/27/2012

0 Comments

 
  • Open source general purpose
  • Proprietary general purpose
  • Open source special purpose
  • Proprietary special purpose
Answer:
Open source general purpose

0 Comments

When compared to the compiled program, scripts run?

2/27/2012

0 Comments

 
  • Faster
  • Slower
  • The execution speed is similar
  • All of above
Answer:
Slower
0 Comments

A script is a?

2/27/2012

2 Comments

 
  • Program or sequence of instructions that is interpreted or carried out by processor directly
  • Program or sequence of instruction that is interpreted or carried out by another program
  • Program or sequence of instruction that is interpreted or carried out by web server only
  • None of above
Answer:
Program or sequence of instruction that is interpreted or carried out by another program

2 Comments

What OOP construct unavailable in PHP 4 does the following script approximate?

2/27/2012

0 Comments

 
class my_class
{
function my_funct ($my_param)
{
user_error ("Please define me", E_ERROR);
}
function b()
{
return 10;
}
}

A. Multiple inheritance
B. Interfaces
C. Abstract methods
D. Private methods
E. Function overloading

Answer:
Abstract methods
0 Comments

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

2/27/2012

2 Comments

 
A. Model-view-controller
B. Abstract factory
C. Singleton
D. Proxy
E. State

Answer:
Singleton
2 Comments

At the end of the execution of the following script, which values will be stored in the $a->my_value array? (Choose 3)

2/27/2012

0 Comments

 
class my_class
{
var $my_value = array();
function my_class ($value)
{
$this->my_value[] = $value;
}
function set_value ($value)
{
$this->$my_value = $value;
}
}
$a = new my_class ('a');
$a->my_value[] = 'b';
$a->set_value ('c');
$a->my_class('d');

  • c
  • b
  • a
  • d
  • e
Answers:
b,a and d

The set_value method of my_class will not work correctly because it uses the expression $this->$my_value, which is a “variable variable” that, under the circumstances will never correspond to any real property of the class.
0 Comments

Can AJAX be synchronous?

2/27/2012

0 Comments

 
  • True
  • False
  • I don’t know
Answer:
True

0 Comments

Include files must have the file extension “.inc”

2/27/2012

0 Comments

 
  • True
  • False
  • I don’t know
Answer:
False
0 Comments

Which function does return the number of seconds elapsed since the 1st January 1970?

2/27/2012

0 Comments

 
  • time()
  • timestamp()
  • mktime()
  • microtime()
  • I don’t know
Answer:
mktime()

0 Comments

PHP is a _____ scripting language based on the ____ engine. It is primarily used to develop dynamic _____ content, although it can be used to generate ____ documents (among others) as well.

2/27/2012

0 Comments

 
  • Dynamic, PHP, Database, HTML
  • Embedded, Zend, HTML, XML
  • Perl-based, PHP, Web, Static
  • Embedded, Zend, Docbook, MySQL
  • Zend-based, PHP, Image, HTML
  • I don’t know
Answer:
Embedded, Zend, HTML, XML

0 Comments
<<Previous

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    February 2012

    Categories

    All
    General
    Krds
    Phponweb

    RSS Feed

Powered by Create your own unique website with customizable templates.