php interview questions

2024-04-16-11:34:10.mp3

what is multiple inheritance

 what is the concept of trait


what is csrf token in laravel


what is multi facto authentication


how can we implement multi factor authentication


what is sso login, how do you mange sessions ( token based integration )


have you worked on jobs queue


what is cron jobs


custom artisan command


guard policies 


types of erros in php


array functions


what are the service provider and what aer the service container , what are the difference


what are the observers in laravel


what is the milti level inheritance


waht are the interfaces in laravel




what is version controler system 



2024-04-15-16:06:49.mp3


multiple inheticance it will no tsupport, multi level supports

multi level inheritance is supporting in laravel or php

using traits


web hooks 


webhook what it do ( rest api also sends data )


in bank application ( in payment gateway) some times payment takes time 

at taht time 

web hooks or rest api  what it will do ?


2024-04-15-18:15:15.mp3

had you implemented captcha mechanism

third highet value in given arrray


which laravel version 8

which is developed in laravel version 6, how to update to version10


some thing about queue , what is queue, how to implement queue


what is the diffetence document.rady and winodw.load


take two images, have two buttons, click onist button second button hide, second button click ist button hide

in javascript


how to knwo which database or which database engine perfects for your project

credited and debited => in tranascactiosn => all the credits and debits usrer by


what is composite-unique key in sql

find the highest salary in employees table


2024-04-17-13:05:26.mp3

stripe payment gatweay process


if anything happen after payment by client , and its not redirecting to our page

whats the soilution fo rthis payment gateway


pusher.io


datatable has pacakge 

what is eloquent orm and give some examples 


join query or orm query which one is best


what is middlewarem give some examples


authorisations pacakage, tell me some pacakges and 

which you feel good in laravel


for ccart you implemetned any package or hardcoded


from add to cart to realtime 

how it is storing ( cookies or database)


is it possible to connect more than database

and can we get database and can we related two databases


and how to relate two databases 


what is maintianece mode, can some users can access by sharingip address or any 


laravel jet stream ( which laravel it came)


what are teh artisan commands


what is softdelete and harddelete


is it possible can we call rooute api.php routes from web.php



is ti possible , can we update whatever happened in a database to b database automatically


2024-04-17-15:09:41.mp3

vmax questions

what is authrisation, how to give permissions to users ( role based or permission based)

how to authorise the rest api 

whatis npm 

what is php artisan

what are eloquesnt orms and what are their types

what is many to many and give example


reverse routing 

what is middleware and give me some examples other than authenticate


how to write middleware in routes


what is service container and what is sevice provider



new class, 

how to call afunction from a class and if we import that classs ot another class and how to call that perent function 

FIND COUNT 

$string ="fdkfhkhihrekfbkfndfnnfns";
$find=str_split($string);
$count = [];
foreach($find as $s){
if(array_key_exists($s,$count)){
$count[$s]++;
} else {
$count[$s]=1;
}
}
print_r($count);
[15:33] vamsikrishna
Array ( [f] => 6 [d] => 2 [k] => 4 [h] => 3 [i] => 1 [r] => 1 [e] => 1 [b] =>

=

select salary from employees order by salary desc limit (2,1)

=

select salary,count (*)as cnt from employees group by salary having count(*)>3

=


$.ajax({
url: 'www;google.com/api/xyz',
type'GET',
success:function(response){
console.log(response);
},
error:function(xhr,status,error){
}
}
);

=

WHAT IS THE DIFFERENCE BETWEEN PRIMARY AND UNIQUE KEY

=

WHAT IS INDEXING, AND WHAT IS THE BENEFITS OF INDEXING

==

HOW MANY PRIMARY KEYS IN TABLE

=

WHAT IS COMPOSITE-UNIQUE

=

THIRD HIGHEST SALARY FROM EMPLOYEE TABLE 

=


2024-04-18-17:06:32.mp3

ARRAY FUNCTIONS

IF IT IS COOKIE OFF, SESSIONS WIL WORK

WHAT IS HT ACCESS FILE

HOW TO INCRESE MAXIMUM UPLOAD SIZE 

WHAT IS THE $this

what is fdifference between file_Get_contents an drequire


what is difference  betwen single quote and double quite

what is difenerce between private and protected varaible

wht is trait


if there is now vuex, how to set parent variable from child

what is constructor

exec funciton

what is csrf token 

difference between web.php and api.php

what is difference between job and queue

what is dd function

what is eqloeuent orm and what are the relation ships

using cookies , session, statemeanagent sstem , local storage

what is local storagte , what is use

without vuex , can we run applicaiton

how to push dat ato parent component variable in vuejs

cors erros in javascript


how to debug logcal error in vuejs


differnce between let and var

how to implement timer in javascript



what is parse int , what it will do

how to store image to database direcltgy

how to imporve perforamnce of sql query

what is proomise 

backgroudn color, backgroud image, backgroud style properties

display flux

fixed csss

border-radius whati it is and short hand oif boprder

dispay:relative and absolute

what is diffeenece between pixel and em


19th apri l 2024

how can we make async 

my sql indexing

select * from user where email ="" or mobile ='';


how to create index while writeing query



2024-04-19-19:02:17.mp3


what is observers 

how to update before and after update inlaravel


what is difference between composition api and option api

what is statemanagement system

 class one and calss two (child) college and student class, inside the college class create a protectec varaible with array (courses)


call from child that courses using getcourse function
06:05 PM

inside the aprent create constructior mdofiy courses protected variable in parent classs

what is the difference between pacakge.lock and pacakge.json


create button call that css without bootstrap button develop css from scratch

click on that button it will copy and if i click on second button it will copy


task3


$tasks = [
['Learn PHP programming', [1,2]],
['Practice PHP', [2,2]],
['Work', [3,2]],
['Do exercise', [4,2]],
];
06:34 PM
$tasks = [
['Learn PHP programming',["test"=>["content"]]];
06:42 PM
$tasks = [
['Learn PHP programming',["test"=>["content"]]]
];

count the strings in above
task 4

<div id="test">get by id</div>
<div class="test">get by class</div>
<div data-id="test">get by data attr</div>
<div test="test">get by attr</div>

apply the css for above div tags

2024-04-23-15:12:09.mp3
what is ssr
how to printi html in in vuejs
had you implemented any payment gateway
what will be show in src in vuejs ui at browser
had you implemented pusher
what is reverse routing
you have one table with 10 million recordrs, while fetching it is page time out
what you do to optimise the query and and at database
what is diadvantages of indexing
how many types of indexing
forced indexing
where we can indexing ( at a atable or while writing in query)
differecen between var char and text
if type is integer column, if it is more than 11 order id , what error will throw
will i t insert or will it throw error

laravel jet stream
hmvc structure in laravel
why we are creating traits
in laravel which place to create trait
if created website , some one trying ddos attacks
where throttle implement
if bots send 1000 requests, what can we protect
what is difference between register and boot in appservice provider

what is authentiation mechanism

we have multiple forms , submit in laravel, need to pass csrf token ( can we exclude csrf for some routes)
boot in service provider and boot in mdoel what is the use

task
<!DOCTYPE html>
<html>
<body>

<?php
for ($i = 0; $i <= 9; $i++) {
    echo $i;
}
?>

</body>
</html>

<!DOCTYPE html> <html> <body> <?php for ($i=0;$i<=9;$i++); { echo $i++; } ?> </body> </html>
why second prints only 10

what is t he output


what is
*/ public function __invoke() { return view('LaraJS'); }

may2_2024

what are tthe template aengine in laravel

difference between array combne and array merge
some of the sorts in php
write function sort without sort

types of join in laravel with example
self join in laravel

difference between join and union
abstract class with their examples
what is the difference between abstract and interface

what is trait, how to write trait


what is coelsecing operator, if variable is null or empty what it prints

c






===

class Vehicle { private static function fuelTypeMapping(?string $fuelType): ?string { if (is_null($fuelType)) { return null; } return match (Str::lower($fuelType)) { 'p' => 'Petrol', 'd' => 'Diesel', 'e' => 'Electric', 'h' => 'Hybrid', default => $fuelType, }; } }

what is string in this
 how tocall 
if give empty vratiable what it prints

2024-04-23-11:34:22.mp3
innovasolutions

wordpresss

what is ranking parameters in website 
what i son page optimization 

what is dependecy injection 
facade design patter

client has old framwork,
convert core php to another framweork

what technique to optimise the website at ui


in linux pc, how pc will starts
can you describe the linux startup process
what i sperma link in wordpress
what are semantic html tags
closuere in javascript

whatis box model in css

how box model helps in debugging and helping in layot
have you work on solar technique

what is middleware

aliqaan
2024-04-23-14:05:52.mp3

what is difference between scoped slots and named slots
2024-04-23-15:12:09.mp3
===================







what is reverse routing 

you have one table, with ten milion users, while fetching data it is timeout
we have to optimise query side and databse side
waht technique have you implement

what is indexing, what is disadvanteages of indexing


what is forced indexing
when can we give indexing

what is difference betwen var char and text


if declare size of integer is 11, if greatert than 11 size will it give error

are you using laravel jet stream

hmvc architecture, what is the use

what is trait, why we are using tratit
what is the follder to crate traits

hwo do you prevent ddos atacks
types of validations

iam using bots to attack server, 
waht is throtltle , where can we reeclare
and how to block ip
what is laravel autheticatation mechanism

how can we exclude csrf token , where to exclude

what is boot and register difference 
can we write in ,model in boot
can we write boot in app service provider
what is the output
for ($i=0);$i<102;$i++);
{
echo $I;
}

====
2024-04-23-16:43:07.mp3

https://paradisosolutions.com/

what is the life cycle of laravel
what is eloquent orm 
what is joines, which join is veryhigh speed
how to call after creatre or update the event


how to check ip middleware write, 

how to restrict some ips
how to get ip address

what is hooks or web hooks in lravel
laravel web hooks
different type of hooks
whati  is composer
whatis migration

hwo can we integrate three database in laravel

task
\click on button call ajax
task

get laragest value in array without using array functions


how many joins in laravel
which join works faster
what are the procedures in my sql
what is the triggers and revoike
permission to user inmysql


priyanka.bhoi@ideazmeet.com
2024-04-24-13:06:41.mp3

whaqt is the difference between abstract and interfaces

how to optmize query sql query

cache mecahnism
how i tworks how to resolve

what is the differencfe between get an dpost request

security vulneratbiltieis in laravel
csrf tiken, how to implment from scratch in laravel

what are the differet types of debugging techniques 
what is unit testing , feature testing
integration testing

what is artisan command
what is elqoener orm 
whatis authetnication and authorisation

why needs jobs,  waht is jquee mecanisam 
types of styles declaration in html
whati sbox model
different types of selectors 
position element in css

different type ofs end point in rest api
what is scaffolding
WHATIS GRID SYSTEM
WHAT IS BACKGROUND SETTINGS

have you imiplemented any [pipelines


2024-04-24-17:32:10.mp3
v-max

i created students table with
name,
dob,
roll_number
section
class_name
gender
fathers name
another table
marks table
student_id
subject
marks
relation student_id and id of student_id
writtenquery
if i given roll roll_number
i wil get the co students
then checking the amrks of that student id and
caliculat total
then allot rank

[17:37]
student management system for school
[17:37]
school multilple class, design database , get student name, fa,dob, roll number, and gender, which class and which section
[17:38]
whn there are exams, three subjects , give ranks based on marks
=

2024-04-25-16:11:50.mp3

2024-04-27-11:16:29.mp3

klu

what is mvc structure
how you can show html in blade
from controller to show in blades
what are the defaults route file in laravel

can we access how many helpers in a function
what is flow of mvc

what are the avaialble database support in laravel
how to define envirornment varaibles in laravel

2024-04-29-17:40:21.mp3

how to improve speed of website
how to optimise the sql queries
to imoprove speed of sql queries

2024-04-30-13:01:12.mp3

sujatha@vellankitechnologies.com

how may types of routes in lravael

types of function in laravel


2024-05-02-15:40:45.mp3
LakshmisettyS@dnb.com

what is artisan
what is template engine
whatis soft delete in laravel
what ar the basic middlewares and how can we createnew or 
how can we implment

how to get authetnicated user information 

how can autheitcate a user

if authentiacation failed, what error i will show

what is service container

what is dependecy injection
what is eloquent orm 

how many ways to get request 
how can we implmenet validations in laravel
email; an du ser name is uniques , how can we implment

what is localisation in laravel

what is difference beteewn service provicer and service container 
do u have knowledge on designe patern
design principles inb laravel
solid design principles

array combine and arrray merge difference

write a function to combine three arrays
a code to sort the arrray without sorting
what are teh sortign functions in php

what are joins 
what is the difference bwteen unioin and join
what is sql injection
whatis self join
what are wild card characters
what is difference betewwen intergface and abstract

where we use abstract classes, where we use interface clases

why we have abstract and hy we have interface
what are thte trait


what is null coelesing
if it is null what i tprints in coelscing
what is printied if variable is null
what is space shiip operator
what are the three dots ellipsis in laravel

=============
2024-05-02-17:32:13.mp3
02/05/2024 5:30 AM

Payal.Bansal@keyloop.com

class Vehicle { private static function fuelTypeMapping(?string $fuelType): ?string { if (is_null($fuelType)) { return null; } return match (Str::lower($fuelType)) { 'p' => 'Petrol', 'd' => 'Diesel', 'e' => 'Electric', 'h' => 'Hybrid', default => $fuelType, }; } }

what is string in this
 how tocall 
if give empty vratiable or props what it prints
why we using :: to call this 

how to call private function in oops

car::find()->color()
what is this 
how to write eloquent orm

how to add one column to already existing table
if it is nullable in up function, 
now nullable makes false in down


false

2024-05-03-14:04:17.mp3
hr@adiencesoft.com

multi tenant
how to connect microsoft database from laravel
any driver required
i  wanna submit to towo databases at a time, how its possible
in environment if it is production , its not live, some body only can access, how its possible

whgat is the laravel structure

ddd ( domain driven distance architecture)

how many relations hsips in orm

what is has manythrough


what is aws dbs, rds 
n+1 relations in eloquenst orm

    tuning
laravel schedule jobs

for storage folder what is hte permisison 
if we give 777 ( it is dangerouse ) any boidy can accesss
755 permission its ok

what is queues, 
is it sync or aync
how to execute queues

how do u configure 
how do u increase security or implement security

comapny hgas so many roples, shall we create each rol with new table or go with one table users table

what dabases have knowledge
how to connect one database to aoother database
in same file


14-may 2024
https://mistermobile.com.sg/
2024-05-14-09:15:27.mp3

 what is mulitple inheritance, will it support php

what is most difficult thing in laravel

what is composer 

how can we turn off csrf token for some routes

what is middleware

can we create customised middleware

what is service provider

how can we define global var

how can call some functons ad global functions

what are the events in laravel

what are the queue mecahnisms 

sql


what are the difference between varchar and char

what is self refering foerign key

what is stored procedures

what is scheduler

what is trigger

what is transactions

what is difference between primary key and foreigh key

diecimal is 5,2, what is maximum value

difference bwtween let and var in javascript

what is hoisting

what is closure 

what are promises 

what are ajax global functions

service providers and service containers

Service provider register the dependencies and the Service Container is the place where all the depencies work together as a whole application.


tcs questions may 14 2024

 what is the usage of abstract, interfaces

what is traits, if twoo  traits are declare din one controller, how can we call that trait


<?php



$ty =[["name"=>"vamsi","age"=>8],["name"=>"krishna","age"=>20]];

$test='krishna';

$values= array_search($test,array_column($ty,'name'));

echo $ty[$values]['age'];

?>


employee table 

column name is name and salary

1000 records in table

find all third character is m


select * FROM employees where substring(name, 3,1) = 'm';

get the 6th highest salary


select  FROM employees where order by salary desc 

limit 1 offset 5;

what are the magic methods

what are _Set 

how to set coookie and how to unset cookie

what is session 

what are the differnce between session and cookie




1 2 3 4 5 6 \


what are the design patterns

what is sinelton pattern


SELECT DISTINCT salary FROM employee ORDER BY salary DESC LIMIT 1 OFFSET 5;


2024-05-15-14:01:29.mp3

value labs

what are magic methods 

why it is calle magic  methods

give me exaples 

how do u handle errors 

if we wrtie tr cahtec and inside of catch try catch

finaly used


what i ss dependency injection


what i sauthorisation

private constructor in laravel

singleton class means

can we inplement singleton class

how can we represent singledon design pattern using class

can php use multiple inheritance

trait use of

what is the differnce between estends , and implements

what is the usage of abstract

what is the usage o f interface or abstract

what is difference between abstract and interface

what is static method

what is dependency injection


whre we can use interface


what is composer json and what sis composer.lcok

loose couploing an dtight coupling

without composer.jsoon can applicaiton run

php fpm

after http request what happens

whati is nginx

at server will it go to nginx or php ist time

what is throttling

which error if throlttle happens

what i shttp code for eerorsm, success, errors

is ther anmy package requeired restup api

what is the autnetication mechanisms sfor rest api

why passpoprt and why not sanctum

how you are passing token in rest api

wihtout using with, hwo can we call relationshops

what is accessotre andmutatios

what is scope

what is the use of belongs to and belows to many


2024-05-15-15:06:18.mp3

webapp

explain work flow with some pacakges

which charts are u using

amcharts, apex charts

if we have so many roles, which method to compare is better ( string comparision, number s compariesion))

what is session and cookie

how the server differentiats between two requestss gernerated from two different browsers and bot h are unauthetnicated

and session is stored in server ( how if it is session based request, if it is stored in serverthen how it knwothis browser is requested)

session is store in server, request from frontend , then how server differetnate two requestes

if i logout of session, will it logout from all browsers

if i upload 100 gb file using laravel, is it possible , what is the best way for this

while uploading internet lost, will it restart from scratch, or will it contniue after get internet

do you know about file streaming

differnece between vue3 and vue2

what is the difference btweteen compositon and option api

what is the difference bwtween productiona dn development folder

package.json and pacakge.lock json differencet between


what is dfifferencve bwetween dependencies and dev dependicies

what is difference bweteen npm and yearn pacakge

what is mixins.js

communication between components

validate porps

what is ssr



database normalisation

relations ships in laravel

what is morph to

indexing in db

database normalisation

what is trigger

difference bwtween stored procedure and trigger


2024-05-15-16:02:59.mp3

consultpr.net

what i s composer

what is laravel

is it nrecessary composer.json, after installation

why preferred laravel

which type of security by laravel

how to put our app to production mode

can we enter command to jum our applicaiton to maintaience

which one i sbetter db queries and elqouent orm

where you implemented db:queries


any third party api integration

difference between sessionand cookie

is it possible to expire the cookie in some time

cooke store at browser with domainor ?

waht are the routes

folder in vlaravel

default files or folders in laravel

what is event

what is scheduler

how to got all route lists in laravel

what is php artisan

types of request in php

how to validate requests

how do u validate name,dob,phonenumber

what is csrf token ,

ho u off the cser f token to some routes

types of middlewares

can we go multiple route pages and merge to main rout page

what is ajax

form submit, get error, code modified laravel, will it sends error or new modified

by rest api with csrf token, no trefresh

what is fillable and what is guarderd, what is cast

what is hidden

some examples of middleware

how can we check it is actual daat or grababge data in laravel valdiations

types of relations shoip in laravel

how to get data from database

=

how to creat model, migration controller and resource controler what i s fcommand

custome table=> how to connect custom table

eloquent cursor method

php compact

wha tis scope in laravel , what is double colon

custom classes in laravel

how to cal;l antoher controiler functions

how to get api address

what is meant by facafdde

difernce between primary keyt and unique key

what is dfiffernce between whare adn having

truncate,empty ,delete ,drop diference in sql

how to define relation between

what is stored procedurea nd differnece bwteen functions and stored proccedure

what is tgrigger


what are joins,

eloquent cursor method



15/5/2024 5-6 pm


ojas

ss

vuejs

2024-05-17-16:05:07.mp3

infosys

what is scheduler

what is laravel queue

what is s3bucket, what need for this 

genterate pdf and execl , preceodure

in excel how to add logo at header

how to give page number in pdf

dynamic componetn in vuejs

what i sdependency injection in laravel

difference between authetnication and authorisation


value labs

2024-05-17-10:06:44.mp3

default routes in routes folder 

authetnication and authoirisation

unit test framweroks integrated ?

what is 502 error code

what is dependency injection adn their types

what i sdd function

what is active record pattern 

how u work on query builder

which command to use to check to know the composer is installed or not

what is throttling

what hurdles i faced while uising laravel



2024-05-16-23:02:40.mp3

consultpr.net

motivation for work

what is ur strengths

why would we hire you

where are you after 2 years

what 






No comments:

Post a Comment

AI Tools

 Midjourney oter.ai aiva googlegemin dall-e copilot jasper copilot openaiplayground