Junior Engineer Interview Questions | Glassdoor.co.in

# Junior Engineer Interview Questions

1,305

Junior engineer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

17 Apr 2018
hai

4 Oct 2017

### Junior Software Engineer at Pratian Technologies was asked...

15 Jun 2015
 write a program to print the given series (user need to enter the nth series number from keyboard) 2,3,5,11,23,29,41,53,83,89 .....n11 Answersimport java.util.Scanner; public class prg2 { public static void main(String[] args) { //2,3,5,11,23,29,41,53,83,89 .....n int i,count=0,n,j,flag,x=0; System.out.println("Enter number of term:"); Scanner sc=new Scanner(System.in); n=sc.nextInt(); for(i=2;true;i++){ flag=1; for(j=2;j<=i/2;j++){ if(i%j==0){ flag=0; break; } } if(flag==1){ ++count; if(count%4!=0){ System.out.println(i); ++x; } } if(x==n) break; } } }import java.util.Scanner; public class Series2 { static Boolean prime(int p) { for(int i=2; iwhat's the logic?Show more responses#include main() { int i,k,n,m,count=0; scanf("%d",&n); for(i=2;i<=n;i++) { for(k=0;k<=i;k++) { if((i%k==0)) count++; } if(count==2) m=2*i+1; count==0; for(k=0;(m!=0)&&(k<=m);k++) { if((m%k==0)) count++; } if(count==0) printf("%d",m); } }#include main() { int i,n,p,k,count=0,plus=0; printf(:enter the no\n"); scanf("%d",&n); for(i=2;i#include int prime(int num) { int i,c=0; for(i=2;iAnswer is in java :100% correct public class ProgramDemo { public static void main(String[] args) { System.out.println("Enter the value :"); Scanner read = new Scanner(System.in); int number = read.nextInt(); for(int i=2;i<=number;i++){ if(Prime(i)){ if(Prime(2*i+1)){ System.out.print(" "+i); } } } } static boolean Prime(int a) { int temp, c; for (c = 2; c <= a - 1; c++) { temp = a % c; if (temp == 0) { return false; } } if (c == a) { return true; } return false; } } I Hope its helpful for you :) Plese give me one like for it ....Excellent broimport java.util.Scanner; public class HelloJava { public static void main(String args[]) { int i,flag=0; for( int x = 2 ;x<100 ;x++) { flag=0; for(i=2;i<=x-1;i++) { if(x%i==0) { flag = 1; break; } } if(flag==0) { for( i = 2; iCan anyone please explain the logic?#include #include void main() { int i; printf("Enter no. of terms \n"); for(i=2; i<=50 ; i= 2*i+1) { printf("\n %d", i); } return 0; }

### Junior Engineer at Samvardhana Motherson Innovative Autosystems was asked...

19 Dec 2017
 What can handle the 1300ton injection moulding machine. ?5 AnswersYes i handle the machine in my best of my knowledgePlasticAn Operator.Show more responsesInjection moulding are basically used to manufacture the plastic but if we talk about what can handel the 1300 ton machine so its an operator.Yes sir

### Junior Software Engineer at Worksbot was asked...

17 May 2019
 what is your parents dream? how you are going achieve that dream?4 AnswersMy parents dream, i want to become a engineer and be settle in good company.Every parents dreams also same as my parent dream I got a good company with enough salaryTechnical questions are based on which topics?Show more responsesTechnical questions based on which topics?

### Junior Software Engineer at Pratian Technologies was asked...

26 Dec 2016
 write a program to print the given series (user need to enter the nth series number from keyboard) 2,3,5,11,23,29,41,53,83,89 .....4 Answers#include #include int isPrime(int n) { int k; for( k=2;k<=sqrt(n);k++) if(n%k==0) return 0; return 1; } int main() { int k; int n; scanf("%d",&n); for(k=2;k<500;k++) { if(n==0)break; if(isPrime(k) && isPrime(2*k+1)) { printf("%d ",k); n--; } } return 0; }import java.util.Scanner; /** * * @author AndroidFarook */ public class Writtenexample1 { public static void main(String args[]) { Scanner in=new Scanner(System.in); System.out.println("Enter limit:"); int n=in.nextInt(); int count; for(int i=1;i<=n;i++) { count=0; int k=2*i+1; for(int j=2;j<=i/2;j++) { if(i%j==0 || k%j==0) { count++; break; } } if(count==0) { System.out.println(i); } } } }I didn't understand the answer above..Show more responsesEasy logic.... Prime numbers are not divided by 2 right?... So generate a condition if (i%2!==0) then print i

26 Jun 2012

### Junior Software Engineer at People Tech Group was asked...

25 Sep 2014
 Describe yourself in three words.4 AnswersConfident Conscientious DiligentI am very interested in learningI am very interested in learningShow more responsesI am very interested in learning

9 Oct 2016