Php developer Interview Questions in Noida |

Find jobs for php developer

Php developer Interview Questions in Noida


php developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Q1. Draw star pattern like. n=1. * n=2. ** * n=3. *** ** * n=4 **** *** ** * n=5. ***** **** *** ** *

16 Answers

#include int main() { int n=10,i,j,s,sum=1,l,k; for(k=1;k=1;i--){ l=sum-i; for(s=1;s<=l;s++){ printf(" "); } for(j=1;j<=i;j++){ printf("*"); } l=l+1; sum=l; printf("\n"); } return 0; }

#include int main() { int n,i,j,k,l=1; for(n=1;n=1;i--) { if(n==3) {for(k=i-1;k>=1;k--) printf(" "); } if(n==4) { if(i>2) {for (k=i-1;k>=l;k--) printf(" "); } l++; } if(n==5) { if(i>2) { for(k=i+2;k>=l-2;k--) { printf(" "); } l++; } } for(j=i; j>=1;j--) { printf("*"); } printf("\n"); } printf("\n"); } }

import java.util.Scanner; class New { public static void main(String ... args) { Scanner sc =new Scanner(; int n=sc.nextInt(); int p=n-2; for(int i=1;i<=n;i++) { for(int j=1;j<=(p*(p+1))/2;j++) System.out.print(" "); p--; for(int k=1;k<=n-i+1;k++) System.out.print("*"); System.out.println(""); } } }

One or more comments have been removed.
Please see our Community Guidelines or Terms of Service for more information.

12: one ring bells at 20 sec, second will 40 sec and third will what time these three will ring together?

4 Answers

all questions are of patterns and 1st question was lengthy and sort of tricky one.

2 Answers

What is PHP

2 Answers

What is Php?

2 Answers

Differnce between two dates

2 Answers

1. Group by VS order by main Difference ?

2 Answers

who is the father of php?

1 Answer

There are so many functions in php and no one can remember all syntax . usually everyone do google with name of function and use that function. But they have a list of function and like to listen exact function name and syntax. It was a little bit tough to recall exact name of function and its definition. In machine test they give a small form with file upload and ask to write a Object oriented code to submit this form. AS I worked only on MVC patter and never worked on core application so I couldn't clear machine test.

1 Answer

Form validation using jquery .

1 Answer
110 of 164 Interview Questions