Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
do you think the following two expression are the same if yes write the output if not justify your answer X=int(22/7) X=(22.0/7)
Home
Education
do you think the following two expression are the...
asked
Dec 13, 2021
in
Education
by
JackTerrance
do you think the following two expression are the same if yes write the output if not justify your answer X=int(22/7) X=(22.0/7) Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 13, 2021
by
JackTerrance
Best answer
Answer: …………………………………………..
Related questions
0
votes
Q: Analyse the given program segment and answer the following questionsi) write the output of the program segment ii)how many times does the body of the loop gets executefor(int m=5 ; m<=20 ;m+=5){if (m%3= = 0)break;elseif (m%5= = 0) System.out.println(m) continue;}
Analyse the given program segment and answer the following questions i) write the output of the program segment ii)how many times ... body of the loop gets execute for(int m=5 ; m...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What would be the output of the following program segments? Give reasons to justify your answer.i) System.out.print(“Sum =”+6 + 2);ii) System.out.print(“Sum = ”+ ‘B’+ ‘2’);iii) System.out.print(“Sum = ”+ 6 + ‘B’);iv) System.out.print(“Sum = ”+ (‘B’ + ‘a’));
What would be the output of the following program segments? Give reasons to justify your answer. i) System.out.print( Sum ... + a ); Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: a,b,c and d are int type, however, the expression is slightly modified as (a+b*c-d)/7.0. What is the resultant data type of the following mathematical expression?
a,b,c and d are int type, however, the expression is slightly modified as (a+b*c-d)/7.0. ... of the following mathematical expression? Select the correct answer from above options...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: a,b,c and d are int type, however, the expression is slightly modified as (a+b*c-d)/7.0. What is the resultant data type of the following mathematical expression?
a,b,c and d are int type, however, the expression is slightly modified as (a+b*c-d)/7.0. ... of the following mathematical expression? Select the correct answer from above options...
asked
Dec 18, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What will be the output of the program? #include #include void fun(char *msg, …); int main() { fun(“indiabix”, 1, 4, 7, 11, 0); return 0; } void fun(char *msg, …) { va_list ptr; int num; va_start(ptr, msg); num = va_arg(ptr, int); num = va_arg(ptr, int); printf(“%d”, num); } indiabix 1 7 11 0 1 4 7?
What will be the output of the program? #include #include void fun(char *msg, ); int main() { fun( indiabix , 1, 4, ... 7 11 0 1 4 7? Select the correct answer from above options...
asked
Nov 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Complete the sequence of the following hexadecimal numbers. Justify your answer. 97, 98, 99, ______, _____, _______
Complete the sequence of the following hexadecimal numbers. Justify your answer. 97, 98, 99, ______, _____, _______ Select the correct answer from above options...
asked
Dec 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Complete the sequence of the following hexadecimal numbers. Justify your answer. (3)
Complete the sequence of the following hexadecimal numbers. Justify your answer. (3) 97, 98, 99, ______, _____, _______. Select the correct answer from above options...
asked
Dec 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: {int ar[] = { 3, 1, 4, 6, 5 };int ar_size = sizeof(ar) / sizeof(ar[0]);isTriplet(ar, ar_size) ? cout << “Yes” : cout << “No”;return 0;
{ int ar[] = { 3, 1, 4, 6, 5 }; int ar_size = sizeof(ar) / sizeof(ar[0]); isTriplet(ar, ar_size) ? cout...
asked
Dec 9, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: {int ar[] = { 3, 1, 4, 6, 5 };int ar_size = sizeof(ar) / sizeof(ar[0]);isTriplet(ar, ar_size) ? cout << “Yes” : cout << “No”;return 0;
{ int ar[] = { 3, 1, 4, 6, 5 }; int ar_size = sizeof(ar) / sizeof(ar[0]); isTriplet(ar, ar_size) ? cout...
asked
Dec 3, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: No spammers please do it clear (show your work also) and how the answer comes please…int m=2 and int n=15for(int i=1;i<5;i++)m++;–n;System.out.println(“m=”+m);
No spammers please do it clear (show your work also) and how the answer comes please… int m=2 and int n=15 for(int i=1;i...
asked
Dec 23, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: “Entrepreneurs are born, not made.” Do you agree with this statement? Justify your answer.
“Entrepreneurs are born, not made.” Do you agree with this statement? Justify your answer. Please answer the above question....
asked
Aug 23, 2022
in
Education
by
JackTerrance
artificial
intelligence
ai
latest
questions
and
answer
0
votes
Q: (ii) Assign the value represented by variable N to the variable N1.(iv) Assign the sum of the two variables X and Y to the variable Z.(V) Divide a number 33 with 7 and store its remainder into the variable(0) AssignWrite1.&(iii) Assign “INDIA” to a variable A$.
(ii) Assign the value represented by variable N to the variable N1. (iv) Assign the sum of the two variables ... . What is nrogramming? Select the correct answer from above options...
asked
Dec 1, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: /determiningstatic void sortint al){ int x = a.length;int m.p:for(int i=0; i<x-1; i++)( m alu:pofor(int j=i+1; }<x;j++){ if(alm)llassume ali i
/determining static void sortint al) { int x = a.length; int m.p: for(int i=0; i...
asked
Dec 25, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Choose the final value of c from the following code, when, int a=12, b=13, c=0; c=a+++++a/7+b++; *
Choose the final value of c from the following code, when, int a=12, b=13, c=0; c=a+++++a/7+b++; * Select the correct answer from above options...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: If P=1, Q=0 ,R=1 then what will be the output of following expression (P+Q)’+(P’+Q’)R’+(Q’+R’)
If P=1, Q=0 ,R=1 then what will be the output of following expression (P+Q)’+(P’+Q’)R’+(Q’+R’) Select the correct answer from above options...
asked
Dec 11, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...