Auriga IT Consulting Private Limited
Tradehull Interview Questions and Answers
Q1. How many types of errors are in PHP?
There are three main types of errors in PHP: syntax errors, runtime errors, and logical errors.
Syntax errors occur when there is a mistake in the code that prevents it from being parsed correctly by the PHP engine. For example, missing semicolons or parentheses.
Runtime errors occur during the execution of the code, such as division by zero or calling a function that does not exist.
Logical errors occur when the code runs without any syntax or runtime errors, but does not produ...read more
Q2. Difference between include and include_once?
include() includes and evaluates a specified file, while include_once() does the same but ensures the file is only included once.
include() can include the same file multiple times, while include_once() will only include it once
include() will continue to execute the script even if the file is not found, while include_once() will throw a warning and continue
include_once() is useful for preventing multiple declarations of functions or classes
Q3. Give 5 names of array functions in PHP.
Array functions in PHP are used to manipulate arrays in various ways.
array_push() - adds one or more elements to the end of an array
array_pop() - removes and returns the last element of an array
array_merge() - merges one or more arrays into a single array
array_slice() - extracts a slice of an array
array_search() - searches an array for a specific value and returns the corresponding key if successful
Q4. Difference between get and post?
GET is used to request data from a specified resource, while POST is used to submit data to be processed to a specified resource.
GET requests data from a specified resource, and should only be used for retrieving data.
POST submits data to be processed to a specified resource, and can be used for creating or updating data.
GET requests can be bookmarked and cached, while POST requests cannot.
GET requests have length restrictions, while POST requests do not.
GET requests are visi...read more
Q5. Difference between Unlink and Unset?
Unlink is used to delete a file from the filesystem, while unset is used to unset a variable.
Unlink is used to delete a file from the filesystem in PHP.
Unset is used to unset a variable in PHP.
Unlink requires the file path as an argument, while unset requires the variable name.
Q6. How doe youtube seek feature works
YouTube seek feature allows users to skip to specific parts of a video by dragging the progress bar.
Users can drag the progress bar to skip to a specific time in the video.
The seek feature allows users to quickly navigate to different parts of the video.
Seeking can also be done by clicking on a specific point on the progress bar.
Interview Process at Tradehull
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month