0

web technology Online Quiz - 11

Description: web technology Online Quiz - 11
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

Is there any advantage of using System.String over String.Builder

  1. It is immutable

  2. Simplifies strng manipulations

  3. Simplifies concurrent multithreaded programming

  4. None of the above


Correct Option: C

How do you change the text color of an element?

  1. text-color:

  2. font-color:

  3. color:

  4. fgcolor:


Correct Option: C

what would you best do to make other developers use the class you develop as being the standard one for other developers to follow. ?? Make the Class as ------

  1. sealed

  2. overiddable

  3. static

  4. abstract

  5. serailizable


Correct Option: A

Which is the best forward only read only cursor available to read the data

  1. DataReader

  2. DataAdapter

  3. DataSet

  4. None of the above


Correct Option: A

Which attribute would you use to make the class variable being Non-serializable

  1. Serialized

  2. OptionalAttribute

  3. NonSerializable

  4. Deserialized


Correct Option: C

Which type of control should I use when i want to display a certain information from database but it layout which can be purely HTML based?

  1. HTML Server control

  2. Web Server Control

  3. HTML Control

  4. None of the above


Correct Option: A

What would you do to the object which is expected to be no -longer in use

  1. Declare as null

  2. Declare as Null and Call the dispose method

  3. Call GC.SupressFinalize method for the object

  4. None of the above


Correct Option: B

How would you be best able to check a string value for null? String value is to be checked before setting value from DataSet which is having value as per database

  1. if(stringValue == null)

  2. if(string.IsNullOrEmpty(stringValue))

  3. if(stringValue == DbNull.value)

  4. None of the above


Correct Option: C

Why would you not use System.Web.Mail instead of System.Net.Mail

  1. It does not cover all the functions as covered by System.Net.Mail

  2. It is obsolete as compared to System.Net.Mail

  3. It is not secure way of sending mails.

  4. None of the above


Correct Option: B

I want to transfer any information over the network from one system to other system. Considering the plaform independence WHICH serialization technique should I choose

  1. Binary

  2. XML

  3. Soap

  4. None of the above


Correct Option: B

PHP stands for :

  1. Personal Home Page

  2. Personal Hypertext Processor

  3. PHP: Hypertext Preprocessor

  4. Private Home Page


Correct Option: C

PHP server scripts are surrounded by delimiters, which?

  1. ...&>

  2. ...?>

  3. ...


Correct Option: C

How do you write "Hello World" in PHP

  1. printf("Hello World")

  2. echo "Hello World";

  3. "Hello World";

  4. Document.write("Hello World");


Correct Option: B

All variables in PHP start with which symbol?

  1. @

  2. #

  3. &

  4. $

  5. %


Correct Option: D

How do you get information from a form that is submitted using the "get" method?

  1. Request.Form;

  2. Request.QueryString;

  3. Request_Get("");

  4. $GET[]

  5. $_GET[];


Correct Option: E

What is the correct way to include the file "time.inc" ?


Correct Option: C

By which variable we can retrieve the value passed by the GET and POST Method?

  1. $_REQUEST[]

  2. $_GET[]

  3. $_POST[]

  4. $_SESSION[]


Correct Option: A

If the file named wrongFile.php doesn't exist,then what will happen?

  1. Will run smoothly

  2. Will generate fetal error.

  3. Generate error and continue executing.

  4. Stop the running.


Correct Option: B,D

Which is the correct syntax for connecting the mysql database in php?

  1. mysql con=new mysql("Connection string")

  2. mysql("database name");

  3. mysql_connect("database name")

  4. mysql_connect("database",username,password)


Correct Option: D

In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:

  1. True

  2. False


Correct Option: A
- Hide questions