Monday, October 24, 2016

Interview Questions for CSS -2- Answers



Back

Q1. Answer: The class selector is used to specify a style for a group of elements.

Q2. Answer: The class selector uses the HTML class attribute and it is define with a ".".

Example: All HTML elements with class="centre" will be centre aligned

.centre{text-align:center;}

Q3. Answer: Inline Style is used the style attribute in the relevant tag. The style attribute can contain any CSS property.

Example: <p style="color:red;margin-left:15px;">This is an Inline Style.</p>

Q4. Answer: An internal style sheet should be used when a single document has a unique style. An internal style sheet is used in the head section of an HTML page. It define in the <Style> tag.

Example: <head>
                     <style>
                                   hr{color:red;}
                                   p{margin-left:15px;}
                  </style>
                  </head>
Q5. Answer: An External Style sheet is a file which save with ".css" extension. All style format write in it for all web page and access in HTML page through <link>tag. This file should not contain any HTML tags.

Example: The <link> tag goes inside the head section:
                 <head>
                   <link rel="stylesheet" type="text/css" href="ssheet.css">
                  </head>
                   In CSS ssheet.css
                       hr{color:red;}
                       p{margin-left:15px;}

Sunday, October 23, 2016

Interview Questions for CSS - 2



Q1. What is a Class Selector?

Q2. What is an Inline Style?

Q3. What is an External Style Sheet?

Q4. What is an Internal Style Sheet?

Q5. How to use Class Selector?

Wait for Answers .......Till Next Post.....Interview questions' answers. 

Interview questions for CSS -2-  Answer

Free Download PHP Interview Questions and Answers

Wednesday, October 19, 2016

Interview Questions for CSS - 1 - Answers





Back- Interview Questions for CSS - 1

Q1. Answer : The selector is normally the HTML elements and style apply on particular HTML     element.

Q2. Answer: True

Q3. Answer: CSS is a Cascading Style Sheets. It define how to display HTML elements. CSS controls the style and layout of multiple web pages all at once.

Q4. Answer: CSS Syntax has two main parts.
  • Selector 
  • Declaration 
Declaration has two parts.
  • Property
  • Value
Example:    P {color: red;font-size:10px;}

Selector=P; Property=color, font-size; Value=red, 10px;

Q5. Answer: Three ways of inserting of Style Sheets.
  • External Style Sheet
  • Internal Style Sheet
  • Inline Style


Friday, October 7, 2016

Interview Questions for CSS - 1




Q1. What is a Selector?

Q2. "Styles were added to HTML 4.0 to solve a problem of Design".  Is this statement true or false?

Q3. What is CSS?

Q4. How much Part of CSS Syntax?

Q5. How much ways of inserting a Style Sheet?

Wait for Answers .......Till Next Post.....Interview questions' answers. 

Interview questions for CSS -1-  Answer 

Free Download PHP Interview Questions and Answers

Saturday, July 30, 2016

Project Documentation - Reason Behind Choosing C++

Back

The traditional methodology(Function-Oriented Programming), object-oriented programming emphasises on the data rather than the algorithm.In OOP, data is compartment or capsule is called an object.
In the OOP approach, the problem is divided into objects, whereas in function-oriented programming the problem is divided into functions. Although, both approaches adopt the same philosophy divide and conquer, OOP conquers a bigger region, while function-oriented programming is content with conquering a smaller region. Object-Oriented Programming contains function-oriented programming and so OOP can be referred to as the super set of function-oriented programming and hence, it can be concluded that OOP has an edge over function-oriented programming.
Some of the most prominent features of C++ are classes, operator and function overloading, free store management, constant types, references, inline and friend function, inheritance, virtual functions, streams for console and file manipulations, templates and exception handling.

Advantages:

Information hiding and data abstraction increase reliability and help decouple the procedural and representational specification from its implementation.
Dynamic binding increase flexibility.
Inheritance coupled with dynamic binding enhances the re-usability of code, thus increasing the productivity of a programmer. Code reuse is possible in conventional language as well, but object-oriented language greatly enhances the possibility of reuse.
Object-Orientation provides many other advanges in the production and maintenance of software; Shorter development time, high degree of code sharing and malleability.  

Saturday, July 23, 2016

Interview Questions for PHP - 4 - Answers

Back - Interview Questions for PHP - 4

Q1. Ans - The output is displayed directly to the browser.

Q2. Ans - If you want to create a table, you can run the CREATE TABLE statement as shown in the following sample script:

<?php
include "mysql_connection.php";

$sql = "CREATE TABLE astore ("
. " id INTEGER NOT NULL"
. ", url VARCHAR(80) NOT NULL"
. ", notes VARCHAR(1024)"
. ", counts INTEGER"
. ", time TIMESTAMP DEFAULT sysdate()"
. ")";
if (mysql_query($sql, $con)) {
print("Table Astore created.\n");
} else {
print("Table creation failed.\n");
}

mysql_close($con);
?>

Remember that mysql_query() returns TRUE/FALSE on CREATE statements. If you run this script, you will get something like this:
Table Astore created.

Q3. Ans - The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it will not be included again. The major difference between include() and require() is that in failure include() produces a warning message whereas require() produces a fatal errors.

Q4. Ans - string urlencode(str) - Returns the URL encoded version of the input string. String values to be used in URL query string need to be URL encoded. In the URL encoded version:

Alphanumeric characters are maintained as is.
Space characters are converted to "+" characters.
Other non-alphanumeric characters are converted "%" followed by two hex digits representing the converted character.

string urldecode(str) - Returns the original string of the input URL encoded string.

For example:

$discount ="10.00%";
$url = "http://domain.com/submit.php?disc=".urlencode($discount);
echo $url;

You will get "http://domain.com/submit.php?disc=10%2E00%25".

Q5. Ans - Once the Web server received the uploaded file, it will call the PHP script specified in the form action attribute to process them. This receiving PHP script can get the uploaded file information through the predefined array called $_FILES. Uploaded file information is organized in $_FILES as a two-dimensional array as:
$_FILES[$fieldName]['name'] - The Original file name on the browser system.
$_FILES[$fieldName]['type'] - The file type determined by the browser.
$_FILES[$fieldName]['size'] - The Number of bytes of the file content.
$_FILES[$fieldName]['tmp_name'] - The temporary filename of the file in which the uploaded file was stored on the server.
$_FILES[$fieldName]['error'] - The error code associated with this file upload.

The $fieldName is the name used in the <INPUT TYPE=FILE, NAME=fieldName>.

Q6. Ans - MySQL fetch object will collect first single matching record where mysql_fetch_array will collect all matching records from the table in an array.

Q7. Ans - Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, "php myScript.php", assuming "php" is the command to invoke the CLI program.
Be aware that if your PHP script was written for the Web CGI interface, it may not execute properly in command line environment.

Q8. Ans - PHP Interpreter treats numbers beginning with 0 as octal.

Q9. Ans - Total 5 types of tables we can create
1. MyISAM
2. Heap
3. Merge
4. INNO DB
5. ISAM
MyISAM is the default storage engine as of MySQL 3.23. When you fire the above create query MySQL will create a MyISAM table.

Q10. Ans - define() directive, like define ("MYCONSTANT", 100).



Tuesday, July 19, 2016

Interview Questions for PHP - 4

Q1. What does a special set of tags do in PHP?

Q2. How to create table in mysql?

Q3.What are the differences between require and include, include_once?

Q4. what is meant by urlencode and urldecode?

Q5. How to get the uploaded file information  in the receiving script?

Q6. What is the difference between mysql fetch object and mysql fetch array?

Q7. How can I execute script using command line?

Q8. I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what's the problem?

Q9. What are the different tables present in mysql? which type of table is generated when we are creating a table in the following syntax: create table employee(eno int(2), ename varchar(10))?

Q10. How do you define a Constant?

Wait for Answers .......Till Next Post.....Interview questions' answers. 

Interview Questions for PHP - 4 - Answers

Free Download PHP Interview Questions and Answers

Thursday, June 9, 2016

Project Documentation - Tools / Platforms, Languages to be used

Back


  • HARDWARE CONFIGURATION
  1. Microprocessor - Intel Pentium IV
  2. Motherboard - Gigabyte 
  3. Hard Disk - 160 GB
  4. RAM - 2 GB
  5. Cache Memory - 1 MB
  6. Multimedia Keyboard
  7. Optical Mouse
  8. Color monitor 17"
  9. DVD Writer
  10. UPS 600VA
  11. Printer HP All in All
  • SOFTWARE REQUIREMENTS
  1. Operating System                            : Window XP
  2. Programming Language                  : OOPS in C++
  3. Compiler                                          : TURBO C++  IDE 3.0
  4. Documentation in MS-Word 2000

Monday, May 23, 2016

Project Documentation - DRAW BACKS WITH THE EXISTING SYSTEM - "MATERNITY CENTRE"

BACK

1. It is very time consuming.
    Since the existing system was developed a long ago, the generation of information is very much tedious and time consuming for the management.

2. More paper works are to be done.

3. Less data security is there.

4. No alarming facility.
     Since the existing system doesn't checks for the performance of the staff hence this cause irregularity in the matter of promotion.

5. No query generation facility.
     Since the existing system is the slow one making the query a tough job to do. After new automation of the organisation query can be done easily and in short span of time .

6. No report generation facility.
    As the existing system doesn't get the actual idea about the staff's performance through generation of different reports.

Friday, March 18, 2016

Project Documentation - Advantages of New Computerized System - "MATERNITY CENTRE"

ADVANTAGES OF SYSTEM

BACK

1. It is fully user friendly

     The system is fully user friendly since it is developed in menu based category which being an interactive environment is having very easy understandable facilities.

2. It doesn't require expert hand 

    The data entry in the software can be done by any body, since it handles any error occurred with a readable manage which guides even a raw hand to sort out the error.

3. Paper work is reduce

    Since there is no unnecessary printing copying of the document for the various patient and staff, the cost can be reduced.

 4. Faster access of information

     As the system will use file as its database, the information can be accessed fast and since the system will run on stand alone machine the retrieval can be done round the clock with greater security.

Thursday, March 17, 2016

Interview Questions - 3 - PHP - Answers

Back - Interview Questions - 3

1. Ans - Crypto usage in PHP is simple, but that doesn’t mean it’s free. First off, depending on the data that you’re encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.

2. Ans - htmlspecialchars only takes care of <, >, single quote ‘, double quote " and ampersand. htmlentities translates all occurrences of character sequences that have different meaning in HTML.

3. Ans - The major difference is the length of the hash generated. CRC32 is, evidently, 32 bits, while sha1() returns a 128 bit value, and md5() returns a 160 bit value. This is important when avoiding collisions.

4. Ans - ASSIGNMENTSSTORE IS COLLECTION OF INTERVIEW QUESTIONS. ucwords() makes every first letter of every word capital, but it does not lower-case anything else. To avoid this, and get a properly formatted string, it’s worth using strtolower() first

5. Ans - On large strings that need to be formatted according to some length specifications, use wordwrap() or chunk_split() 

6. Ans - Both examples would provide the same result - $var3 equal to "Welcome to Assignmentsstore.com". However, Code Sample 1 will work significantly faster. Try it out with large sets of data (or via concatenating small sets a million times or so), and you will see that concatenation works significantly faster than variable substitution. 

7. Ans - echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to echo, like: 
 <?php echo 'Welcome ', 'to', ' ', 'Assignmentsstore!'; ?> 
and it will output the string "Welcome to Assignmentsstore!" print does not take multiple parameters. It is also generally argued that echo is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP. printf  is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of echo, print and printf.


8. Ans - A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests. There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved by the same script or another script when requested from the same visitor. Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor.

9. Ans
$date1 = date('Y-m-d');
$date2 = '2015-07-01'; 
$days = (strtotime() - strtotime()) / (60 * 60 * 24); 
echo "Number of days since '2015-07-01': $days";


10. Ans. A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is closed, temporary cookies will be erased. You should decide when to use temporary cookies and when to use persistent cookies based on their differences:
*Temporary cookies can not be used for tracking long-term information.
*Persistent cookies can be used for tracking long-term information.
*Temporary cookies are safer because no programs other than the browser can access them.
*Persistent cookies are less secure because users can open cookie files see the cookie values.