Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
e)What will be the output of the following code? (2)x,y=4,8z=x/y*y
Home
Education
e)What will be the output of the following code?...
asked
Dec 19, 2021
in
Education
by
JackTerrance
e)What will be the output of the following code? (2) x,y=4,8 z=x/y*y print(z) Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 19, 2021
by
JackTerrance
Best answer
Answer: 4 Explanation: x/y*y z=4/8*8 z=1/2*8 z=4
Related questions
0
votes
Q: In Java,what will be the output of the following code and how?double x=2.9,y=2.5;(SOP is abbreviated form of System.out.println)SOP(Math.min(Math.floor(x),y));SOP(Math.max(Math.ceil(x),y));
In Java, what will be the output of the following code and how? double x=2.9,y=2.5; (SOP is abbreviated form ... x),y)); Explain how Select the correct answer from above options...
asked
Nov 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Q.32 :-What will the SWAP macro in the following program beexpanded to on preprocessing? will the code compile?#include<stdio.h>#define SWAP(a, b, c)(ct; t=a, a=b, b=t)int maino{intx=10, y=20;SWAP(x, y, int);printf(“%d %d\n”, x, y);
Q.32 :-What will the SWAP macro in the following program be expanded to on preprocessing? will the code compile? ... y); return 0; 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: (i) x=5, y=6,2=20Q8) Consider the following statements and describe the output/statement required:(a) To retrieve the data type of the inputted string “Covid 19” stored inside the variable Disease.(b) x,y=”99″, “9”,Find the concatenated value of x and y and also retrieve the address of x and y.(c) Q= “Class XI” * 3
(i) x=5, y=6,2=20 Q8) Consider the following statements and describe the output/statement required: ... multiple assignment statements. 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: What will be the output of following python code?flowers =[‘rose’, ‘lotus’,”lily’ for x in flowers:print’flowers name:, x
What will be the output of following python code? flowers =[ rose', lotus', lily' for x in flowers: ... x plsss give write answer 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: if x=8 then the statement y=x<<2 will be result in?a)64b)32c)16
if x=8 then the statement y=x...
asked
Dec 15, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Q. 3 Answer the given questions (4 x 2 = 8 marks)Find the output for the following.a) x=4y=x-1x=2
Q. 3 Answer the given questions (4 x 2 = 8 marks) Find the output for the following. a) x=4 y=x-1 x=2 print(x, y) Select the correct answer from above options...
asked
Dec 23, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What will be the output of following code? (2)Value=”Simar”Age=17print(Value,”, your are “, 17, “now but”)
What will be the output of following code? (2) Value= Simar Age=17 print(Value, , your are , 17, now but ) ... ,Age+1, next year ) Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: 1. Predict the output of the following operations if x=5 and y=3.
1. Predict the output of the following operations if x=5 and y=3. x>=10&& y>=4 f. x>=1 || y>=4 Select the correct answer from above options...
asked
Dec 21, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: dues. Find the output of followingA.X = 3 .Y = x + 2x+ =yprint (x,y)a = 5b = 2xaa+ = a+bb* = a+bprint (a,b)
dues. Find the output of following A. X = 3 . Y = x + 2 x+ =y print (x,y) a = 5 b = 2xa a+ = a+b b* = a+b print (a,b) ) Select the correct answer from above options...
asked
Dec 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: dues. Find the output of followingA.X = 3 .Y = x + 2x+ =yprint (x,y)a = 5b = 2xaa+ = a+bb* = a+bprint (a,b)
dues. Find the output of following A. X = 3 . Y = x + 2 x+ =y print (x,y) a = 5 b = 2xa a+ = a+b b* = a+b print (a,b) ) Select the correct answer from above options...
asked
Dec 26, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: 4.is a key that isused to identify the colours,patterns, or symbols assignedto data series. *OData SeriesO X – AxisO Y – Axis
4. is a key that is used to identify the colours, patterns, or symbols assigned to data series. * OData Series O ... Y - Axis O Legend Select the correct answer from above options...
asked
Dec 25, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Convert the Boolean function, F(x, y, z) = ∏(0, 2, 6, 7) in sum of minterm form.
Convert the Boolean function, F(x, y, z) = ∏(0, 2, 6, 7) in sum of minterm form. Select the correct answer from above options...
asked
Dec 14, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write statements in QBASIC for each of the situations described below.(ii) Assign the value represented by variable N to the variable N1.(1) Assign a value 2 to the variable A.(iii) Assign “INDIA” to a variable A$.(iv) Assign the sum of the two variables X and Y to the variable z
Write statements in QBASIC for each of the situations described below. (ii) Assign the value represented by variable ... the variable A 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: what will be the output of following python code print(‘ab12’.isalnum())
what will be the output of following python code print(‘ab12’.isalnum()) Select the correct answer from above options...
asked
Dec 24, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: – What will be the output of the following C code? #include int main() { int i = 97, *p=&i; foo(&p);
- What will be the output of the following C code? #include int main() { int i = 97, *p=&i; foo( ... (D) Segmentation fault/code crash Select the correct answer from above options...
asked
Dec 24, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...