Php developer Interview Questions | Glassdoor.co.in

Php developer Interview Questions

1,293

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(System.in); 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 60.at what time these three will ring together?

4 Answers

I was having 8 Yrs of experience but they asked me how to access array elements

3 Answers

Get the last thee max salaried person from table via sql.

3 Answers

1.hr interview-they check your verbal and written communication ability 2.written test consists of 10 questions with mix of javascript and php 3.technical test - here they ask you to install LAMP ,Wordpress, Virtualization and/or FTP

3 Answers

Core php level

2 Answers

About the learning curve - are you ready to lean & deliver

2 Answers

What is PHP

2 Answers

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

2 Answers

as per experience

2 Answers
110 of 1,293 Interview Questions