Junior programmer Interview Questions
- 0of 0 votes
AnswersSYNONYM: LYNCH
- si.connect2mba January 21, 2018 in India for Java
A. Hang B. Madden C. Kill D. Shoot| Report Duplicate | Flag | PURGE
Surya Informatics Solutions Pvt. Ltd. Junior programmer - 0of 0 votes
AnswerToday is Monday. After 61 days, it will be:
- si.connect2mba January 21, 2018 in India for Java
A. Wednesday B. Saturday C. Tuesday D. Thursday| Report Duplicate | Flag | PURGE
Surya Informatics Solutions Pvt. Ltd. Junior programmer - 0of 0 votes
AnswersIf x and y are the two digits of the number 653xy such that this number is divisible by 80, then x + y =?
- si.connect2mba January 21, 2018 in India for Java
A. 2 or 6 B. 4 C. 4 or 8 D. 8| Report Duplicate | Flag | PURGE
Surya Informatics Solutions Pvt. Ltd. Junior programmer - 0of 0 votes
AnswersThe least number of complete years in which a sum of money put out at 20% compound interest will be more than doubled is:
- si.connect2mba January 21, 2018 in India for Java
A. 3 B. 4 C. 5 D. 6| Report Duplicate | Flag | PURGE
Surya Informatics Solutions Pvt. Ltd. Junior programmer - 0of 0 votes
AnswersThe cost price of 20 articles is the same as the selling price of x articles. If the profit is 25%, then the value of x is:
- si.connect2mba January 21, 2018 in India for Java
A. 15 B. 16 C. 18 D. 25| Report Duplicate | Flag | PURGE
Surya Informatics Solutions Pvt. Ltd. Junior programmer - 0of 0 votes
AnswersWhich one of the following is a static member of thread?
- si.connect2mba January 21, 2018 in India for Java
A. current thread()
B. getName()
C. join()
D. interrupt| Report Duplicate | Flag | PURGE
Surya Informatics Solutions Pvt. Ltd. Junior programmer - 0of 0 votes
AnswersThe order of the top three level elements of the java source file is
- si.connect2mba January 21, 2018 in India for Java
A. import, package, class B. class,import,package C. package, order, class D. random order| Report Duplicate | Flag | PURGE
Surya Informatics Solutions Pvt. Ltd. Junior programmer - 0of 0 votes
AnswersWhat will be the result of compiling following code?
- si.connect2mba January 21, 2018 in India for Java
public class MyClass{
public static void main(String args[]){
System.out.println("In first main()");
}
public static void main(char args[]){
System.out.println('a');
}
}
A. Code will not compile and will give "Duplicate main() method declaration" error
B. Code will compile correctly but will give a runtime exception
C. Code will compile correctly and will print "In first main()" (without quotes) when it is run
D. Code will compile correctly and will print "a" (without quotes) when it is run| Report Duplicate | Flag | PURGE
Surya Informatics Solutions Pvt. Ltd. Junior programmer unix system programmin - 0of 0 votes
AnswersThe value obtained in the function is given back to main by using ________ keyword?
- si.connect2mba January 21, 2018 in India for Java
A. return B. Static C. new D. Volatile| Report Duplicate | Flag | PURGE
Surya Informatics Solutions Pvt. Ltd. Junior programmer Arrays - 0of 0 votes
AnswersIf two strings are identical Stringcmp() returns
- si.connect2mba January 21, 2018 in India for Java
A. -1 B. 1 C. 0 D. Yes| Report Duplicate | Flag | PURGE
Surya Informatics Solutions Pvt. Ltd. Junior programmer .Net/C - 0of 0 votes
Answerswrite a function to check if a given number is super-prime.
- Ladym October 10, 2017 in Israel
you are given a function that checks if a number is prime.
super-prime is a number that both it's prefix AND suffix are prime number.
The solution has only one loop.| Report Duplicate | Flag | PURGE
Microsoft Junior programmer - 0of 0 votes
AnswersGiven a root to a binary tree, find the level of the tree with the minimum sum.
- Ladym October 10, 2017 in Israel
for example:
50
/ \
6 2
/ \ /
30 80 7
the answer is: level 2| Report Duplicate | Flag | PURGE
Microsoft Junior programmer Trees and Graphs - 0of 0 votes
AnswerCopy the following program into ptr3.c.
- stimulation101 March 04, 2017 in England
#include <stdio.h>
int main()
{
int i, j;
int * p, * q;
int ** x;
i = 100;
j = 200;
p = &i;
q = &j;
x = &p;
*p = *p + *q;
*q = **x / 2;
**x = *p + j;
printf(" i = %d\n", i);
printf("&i = %p\n", &i);
printf(" j = %d\n", j);
printf("&j = %p\n", &j);
printf(" p = %p\n", p);
printf("&p = %p\n", &p);
printf("*p = %d\n", *p);
printf(" q = %p\n", q);
printf("&q = %p\n", &q);
printf("*q = %d\n", *q);
printf(" x = %p\n", x);
printf("&x = %p\n", &x);
printf("*x = %p\n", *x);
printf("**x= %d\n", **x);
return 0;
}
Study this code carefully and make sure you understand how the program works. Then modify the program by adding a new variable that stores the address of x. Then use your variable to update (indirectly) the value of i and then print out the new value to demonstrate that your modification has worked.| Report Duplicate | Flag | PURGE
Philips Junior programmer - 0of 0 votes
AnswersCreate a text file called calc.c that contains the following C program:
- stimulation101 March 04, 2017 in England
#include <stdio.h>
float add (float x, float y)
{
return x + y;
}
int main()
{
float a, b, r;
char op;
do {
printf("number op number? ");
scanf(" %f %c %f", &a, &op, &b);
switch (op)
{
case '+' : r = add(a,b);
break;
case 'q' : break;
default : op='?';
}
if (op=='?')
printf("Unknown operator\n");
else if (op=='q')
printf("Bye\n");
else
printf("%f %c %f = %f\n", a, op, b, r);
}
while (op != 'q');
return 0;
}
The program behaves like a calculator asking the user to type in binary expressions (like 2.5 + 3.7) and printing out the results. If the user enters 'q' for the operator (e.g. 0 q 0) then this is taken as a signal to stop the program.
Add a new function to the program that multiplies its two arguments together and returns their product. Then modify the switch statement so that the operator '*' causes this new product function to be called. Test the program by using a mixture of '+' and '*' calculations.
Add operators for subtraction ('-') and division ('/') and test your program again.
We introduce some special operators. Write functions to implement each of these (adding one at a time and testing after each new operator is incorporated into your calculator).
Symbol Description Example
m Minimum 2.3 m 1.7 = 1.7
M Maximum 2.3 M 1.7 = 2.3| Report Duplicate | Flag | PURGE
Philips Junior programmer Programmin in c