Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
2;int iint n92;while(i <= n) {printf(i+” “);i = i + j;j = 1 + 2;
Home
Education
2;int iint n92;while(i <= n) {printf(i+” “);i...
asked
Dec 12, 2021
in
Education
by
JackTerrance
2; int i int n 92; while(i <= n) { printf(i+” “); i = i + j; j = 1 + 2; } Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 12, 2021
by
JackTerrance
Best answer
Answer: jffussudjfvgiuckkcydcutsjfohofydjkgidu
Related questions
0
votes
Q: converting for loop into while loop:for(i=1;i<n;i++){for(j=1;j<=i;j++)printf(“%d”j);printf(“\n”);
converting for loop into while loop: for(i=1;i...
asked
Nov 26, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: int fun(int n){if(n!=0) {return n – fun(n-5);}else {return n;}}int main(){int n = 20, z;z = fun(n);printf(“%d”, z);
int fun(int n) { if(n!=0) { return n – fun(n-5); } else { return n; } } int main(){ int n = 20, z; z = fun(n); printf(“%d”, z); } Select the correct answer from above options...
asked
Dec 31, 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: int find(int i) {if(>1)j=find(j/10)+(j%10)elsej=0;return j;void main()int i=1000int kk=find(i):
int find(int i) { if(>1) j=find(j/10)+(j%10) else j=0; return j; void main() int i=1000 int k k=find(i): printf(“%d”, K) 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: /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: 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: 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: (j) State the type of errors if any in the following statements:(i) switch ( n > 2 )
(j) State the type of errors if any in the following statements: (i) switch ( n > 2 ) (ii) System.out.println(100/0); Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: int find(int j) {if(>1Xj=find(j/ 10)+(%10);}else {j=0;return j;void main()int i=1000,int k;k=find(i);
int find(int j) { if(>1X j=find(j/ 10)+(%10); } else { j=0; return j; void main() int i=1000, int k; k=find(i); printf(“%d”, k); 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: #includeint main(){void fib(int f1,int f2, int n){static int i = 1;int f3;if(i <= n){
#include int main() { void fib(int f1,int f2, int n) { static int i = 1; int f3; if(i...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: #includeint main(){void fib(int f1,int f2, int n){static int i = 1;int f3;if(i <= n){
#include int main() { void fib(int f1,int f2, int n) { static int i = 1; int f3; if(i...
asked
Dec 18, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Rewrite the following loop using for loop:int i=0;while (i<10){System.out.print(“*”);System.out.print(i++);
Rewrite the following loop using for loop: int i=0; while (i...
asked
Dec 22, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What is the value of m after evaluating the following expression:m -= 9%++n + ++n/2; when int m=10,n=6.
What is the value of m after evaluating the following expression:m -= 9%++n + ++n/2; when int m=10,n=6. Pls Answer Now.. Select the correct answer from above options...
asked
Dec 15, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Suppose we run the multistage algorithm on the data of exercise 6.3.1, with the same support threshold of 4. The first pass is the same as in that exercise, and for the second pass, we hash pairs to nine buckets, using the hash function that hashes {i, j} to bucket i + j mod 9. Determine the counts of the buckets on the second pass. Does the second pass reduce the set of candidate pairs
Suppose we run the multistage algorithm on the data of exercise 6.3.1, with the same support threshold of 4. ... set of candidate pairs 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: b. Write a java statement to accomplish each of the following tasks:i. Declare a variable, sum and a to be of type int.ii. Assign 1 to variable a.iii. Assign 0 to variable sum.iv. Add variable a to variable sum and assign the result to variable sum.
b. Write a java statement to accomplish each of the following tasks: i. Declare a variable, sum and a to be ... value of variable sum. Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...