Archive for January 17, 2011
Use Incognito window in chrome for doing private browsing
We can do private browsing in Google Chrome browser by using incognito window.
Pages viewed in this incognito window won’t appear in the browser history or search history, and they won’t leave other traces, like cookies after closing the incognito window.
How to split a string into individual characters using PHP?
In one of our php project, we had to split a string into individual characters. I thought there should be some built-in function for doing this. But I couldn’t find the appropriate build-in php function.
Currently we are using below code snippet for doing this split..
for($i=0;$i< strlen($inputstring);$i++){
$letterarray[]=$inputstring[$i];
}
You can let me know thro’ the comments if you know any suitable function for doing this task.
PHP Quiz Questions and Answers
Find below MCQ (Multiple Choice) questions and Answers for PHP.
PHP QUESTIONS AND ANSWERS
| 1)<?php $x=array(“aaa”,”ttt”,”www”,”ttt”,”yyy”,”tttt”); $y=array_count_values($x); echo $y[ttt]; ?> |
| a)2 |
| b)3 |
| c)1 |
| d)4 |
| Show Answer |
|
|
| 2) How do you get information from a form that is submitted using the “get” method? |
| a)$_GET[]; |
| b)Request.Form; |
| c)Request.QueryString; |
| d)$_POST[]; |
| Show Answer |
Software Testing Quiz Questions and Answers
Find below MCQ (Multiple Choice) questions and Answers useful for learning Software Testing.
Software Testing Quiz Questions and answers
| 1) The approach/document used to make sure all the requirements are covered when writing test cases | |||||||||
| a) Test Matrix | |||||||||
| b) Checklist | |||||||||
| c) Test bed | |||||||||
| d) Traceablity Matrix | |||||||||
| Show Answer | |||||||||
|
|
|||||||||
| 2) Executing the same test case by giving the number of inputs on same build called as | |||||||||
| a) Regression Testing | |||||||||
| b) ReTesting | |||||||||
| c) Ad hoc Testing | |||||||||
| d) Sanity Testing | |||||||||
| Show Answer |
Javascript Quiz Questions and Answers
Find below MCQ (Multiple Choice) questions and Answers useful for learning Javascript.
Javascript Quiz Questions and Answers
| 1) <script type=”text/javascript”> x=4+”4″; document.write(x); </script> Output——? |
|||||||||
| a) 44 | |||||||||
| b) 8 | |||||||||
| c) 4 | |||||||||
| d) Error output | |||||||||
| Show Answer | |||||||||
|
|
|||||||||
| 2) <script type=”text/javascript” language=”javascript”> var qpt = “Qualiyt Point Technologies”; var result = qpt.split(” “); document.write(result); </script> |
|||||||||
| a) Quality | |||||||||
| b) Q,u,a,l,i,t,y,P,o,i,n,t,T,e,c,h,n,o,l,o,g,i,e,s | |||||||||
| c) Qualiyt,Point,Technologies | |||||||||
| d) QualityPointTechnologies | |||||||||
| Show Answer |
HTML Quiz Questions and Answers
Find below MCQ (Multiple Choice) questions and Answers useful for learning HTML.
| 1) Is it possible to set up a browser so it refuse pages that does not have a content rating meta tag? | |||||||||
| a) Yes – many companies and parents actually do | |||||||||
| b) No | |||||||||
| c) Only with a cybersitter add on | |||||||||
| Show Answer | |||||||||
|
|
|||||||||
| 2) When images are used as links they get a blue border. | |||||||||
| a) Always | |||||||||
| b) Never | |||||||||
| c) Unless border is set to zero | |||||||||
| Show Answer |
MySQL Quiz Questions and Answers
Find below MCQ (Multiple Choice) questions and Answers useful for learning MySQL.
You can put the below HTML code in your blog or website for linking into this page.<a href=”http://qualitypoint.blogspot.com/2010/01/mysql-quiz-questions-and-answers.html” title=”MySQL Quiz”>MySQL Quiz</a>
MYSQL QUESTIONS AND ANSWERS
| 1) MySQL runs on which operating systems? | |||||||||
| a) Linux and Mac OS-X only | |||||||||
| b) Any operating system at all | |||||||||
| c) Unix, Linux, Windows and others | |||||||||
| d) Unix and Linux only | |||||||||
| Show Answer | |||||||||
|
|
|||||||||
| 2) To remove duplicate rows from the result set of a SELECT use the following keyword: | |||||||||
| a) NO DUPLICATE | |||||||||
| b) UNIQUE | |||||||||
| c) DISTINCT | |||||||||
| d) None of the above | |||||||||
| Show Answer |
Handling Date format in MySQL
Recently, I came to know about a website http://www.mysqlformatdate.com/ which will be useful for understanding and using a MySQL function DATE_FORMAT().
DATE_FORMAT()function is used to display date/time data in different formats.
It takes two arguments, date and format.
