Posts

Full Concepts On Array Function() And array_pop() And array_push() Function With 3 Coding Examples Each Prepared By Me Of Array Functions In PHP

Image
Full Concepts On Array Function() And array_pop() And array_push() Function With 3 Coding Examples Each Prepared By Me Of Array Functions In PHP Q1. What is Array Function()? Ans: Array Function() is the manipulation of an array elements. Q2. What is array_pop()> Ans: array_pop() is the manipulation function that removes the last element of an array. Coding Example 1 => <?php $arr =[ "red" , "green" , "blue" ]; $arrpop = array_pop ( $arr ); print_r ( $arr ); ? > Output Of Coding Example 1 => Coding Example 2 => <?php $arr =[ "MS Dhoni" , "Virat Kohli" , "Sachin Tendulkar" , "Sourav Ganguly" , "Hardik Pandya" ]; $arrpop = array_pop ( $arr ); print_r ( $arr ); ? > Output Of Coding Example 2 => Coding Example 3 => <?php $arr =[ "10" , "20" , "30" , "40" , "50" ]; $arrpop = array_pop ( $arr ); print_r ( $arr ); ? > Output Of C...

PHP WEB DEVELOPMENT CONCEPTS ON CALLBACK FUNCTION IN JAVASCRIPT, ID AND CLASS IN HTML AND == AND === IN JAVASCRIPT MADE BY ME GENERALLY ASKED IN PITANGENT ANALYTICS AND TECHNOLOGY SOLUTIONS PVT. LTD. FOR FRESHERS

PHP WEB DEVELOPMENT CONCEPTS ON CALLBACK FUNCTION IN JAVASCRIPT, ID AND CLASS IN HTML AND == AND === IN JAVASCRIPT MADE BY ME GENERALLY ASKED IN PITANGENT ANALYTICS AND TECHNOLOGY SOLUTIONS PVT. LTD. FOR FRESHERS Q16. What is callback function in JavaScript? Ans: Callback function in JavaScript is a function that is passed as an argument to another function, with the intention of being executed at a later time, typically after the completion of some operation or event. Q17. What is the difference between id and class in HTML? Ans: id = id attributes must be unique to single element on a page. class = class attributes can be applied to multiple elements, used for grouping and shared styling. Q18. What is the difference between == and === in javascript? Ans: == -> == is a loose equality. This operator performs type coercion before comparing values. === -> === is a strict equality. This operator compare both values and thye data types of the operands without performing any type coer...

PHP WEB DEVELOPMENT PART - 3 PROBABLE MOST IMPORTANT INTERVIEW QUESTIONS AND ANSWERS MADE BY ME GENERALLY ASKED IN PITANGENT ANALYTICS AND TECHNOLOGY SOLUTIONS PVT. LTD. FOR FRESHERS

Image
PHP WEB DEVELOPMENT PART - 3 PROBABLE MOST IMPORTANT INTERVIEW QUESTIONS AND ANSWERS MADE BY ME GENERALLY ASKED IN PITANGENT ANALYTICS AND TECHNOLOGY SOLUTIONS PVT. LTD. FOR FRESHERS Q13. Write a program to check if a string is a palindrome. Ans:  <?php $str = "noon" ; $str = strtolower ( $str ); $str2 = strtolower ( strrev ( $str )); if ( $str == $str2 ){     echo "The string $str is a palindrome" ; } else {     echo "The string $str is not a palindrome" ; } ? > Output => Q2. How to find duplicate rows in a table? Ans: To find duplicate rows in a table I need to use GROUP BY and HAVING clauses. SELECT column1, column2,..., COUNT(*) FROM table_name GROUP BY column1,column2,... HAVING COUNT(*) > 1; Q3. Write a program to count the number of vowels in a string. Ans:  <?php $str = "I love playing cricket" ; $vow = 0 ; $str = str_replace ( " " , "" , $str ); $length = strlen ( $str ); for ( $i = 0 ; $i < $len...

PHP WEB DEVELOPMENT PART - 2 PROBABLE MOST IMPORTANT INTERVIEW QUESTIONS AND ANSWERS MADE BY ME GENERALLY ASKED IN PITANGENT ANALYTICS AND TECHNOLOGY SOLUTIONS PVT. LTD. FOR FRESHERS

Image
  PHP WEB DEVELOPMENT PART - 2 PROBABLE MOST IMPORTANT INTERVIEW QUESTIONS AND ANSWERS MADE BY ME GENERALLY ASKED IN PITANGENT ANALYTICS AND TECHNOLOGY SOLUTIONS PVT. LTD. FOR FRESHERS Q8. What is the difference between GROUP BY and ORDER BY? Ans: GROUP BY => GROUP BY statement can create the group with the same values and it has some aggregated functions. For ex. : MAX(), MIN(), AVG(), COUNT(), SUM(). ORDER BY => ORDER BY statement can return the value in order wise. Q9. How to update a column using UPDATE query? Ans: UPDATE table_name SET column_name = new_value WHERE condition; Q10. How to center a div both vertically and horizontally? Ans: To center a div both vertically and horizontally, we can use padding and text-align : center as well as we can use the below 5 ways: => display : flex method. => display : grid method. => position : absolute and transform : translate method. => table and table-cell method. => line-height method. Q11. What are pseudo class...

PHP WEB DEVELOPMENT PART - 1 PROBABLE MOST IMPORTANT INTERVIEW QUESTIONS AND ANSWERS MADE BY ME GENERALLY ASKED IN PITANGENT ANALYTICS AND TECHNOLOGY SOLUTIONS PVT. LTD. FOR FRESHERS

Image
PHP WEB DEVELOPMENT PART - 1 PROBABLE MOST IMPORTANT INTERVIEW QUESTIONS AND ANSWERS MADE BY ME GENERALLY ASKED IN PITANGENT ANALYTICS AND TECHNOLOGY SOLUTIONS PVT. LTD. FOR FRESHERS Q1. What is the difference between == and ===? Ans: == -> This operator is used to check whether the given values are equal or not. If yes, it returns true, otherwise it returns false. === -> This operator is used to check whether the given values and it's data types are equal or not. Q2. What are superglobals in PHP? Ans: Superglobals in PHP are the pre-defined global variables. All superglobal variables are written in capital letters. For ex. : $_GLOBALS, $_GET, $_POST, $_COOKIES, $_SESSION, $_REQUEST, $_FILES, etc. Q3. What are variables and constants in PHP? Ans: Variables = Variables are containers for storing information. A variable start with the $ sign, followed by the name of the variable. For ex. : $x=10; $y="Capgemini"; Constants = Constants are like variables, except that on...

CORE PHP PART - 1 PROBABLE INTERVIEW QUESTIONS AND ANSWERS MADE BY ME WHICH ARE GENERALLY ASKED IN vEXPLORE TECHNOLOGIES FOR PHP WEB DEVELOPMENT FOR FRESHERS

Image
CORE PHP PART - 1 PROBABLE INTERVIEW QUESTIONS AND ANSWERS MADE BY ME WHICH ARE GENERALLY ASKED IN vEXPLORE TECHNOLOGIES FOR PHP WEB DEVELOPMENT FOR FRESHERS Q1. What are superglobals in PHP? Explain $_GET, $_POST,$_SESSION,etc. Ans: Superglobals in PHP are known as the pre-defined global variables. For ex. : $_SESSION, $_POST,$_COOKIES, $_GET, $_REQUEST, $_FILES, etc. $_GET = $_GET is the unsecure method. Query string can pass through $_GET method. $_POST=$_POST is the most secure method. Query string cannot pass through $_POST method. $_SESSION= $_SESSION is known as the global carrier of data which trace the user activity on website. It is used to send the user information on server. $_SESSION is the unsecure method. $_SESSION does not have any limit. For ex. : Login, Logout, Multipart Form. Q2. What is the use of header() function? Ans: header() function in PHP is used to sent the raw HTTP header to the client. For ex. : header("location:display.php"); , header("loca...

PHP WEB DEVELOPMENT INTERVIEW CODING PREPARED BY ME OF PITANGENT ANALYTICS AND TECHNOLOGY SOLUTIONS PVT. LTD FOR FRESHERS

Image
PHP WEB DEVELOPMENT INTERVIEW CODING  PREPARED BY ME OF PITANGENT ANALYTICS AND TECHNOLOGY SOLUTIONS PVT. LTD FOR FRESHERS Q1. Write a PHP program to count the number of vowels in a string. Ans: PROGRAM NO. - 1 => <?php $str="Welcome To Capgemini"; $vow=0; $str=str_replace(" ", "", $str); $len=strlen($str); for ($j=0; $j < $len; $j++) {  if ($str[$j] == "a" || $str[$j] == "e" || $str[$j] == "i" || $str[$j] == "o" || $str[$j] == "u" || $str[$j] == "A" || $str[$j] == "E" || $str[$j] == "I" || $str[$j] == "O" || $str[$j] == "U") { $vow++; } } print_r("The number of vowels in a string is: ".$vow); ?> OUTPUT OF PROGRAM NO. - 1 => PROGRAM NO. - 2 => <?php $str="Welcome To Pitangent"; $vow=0; $str=str_replace(" ", "", $str); $length=strlen($str); for ($i=0; $i < $length; $i++) {  if ($str[$i] ...