Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
{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;
Home
Education
{int ar[] = { 3, 1, 4, 6, 5 };int ar_size =...
asked
Dec 3, 2021
in
Education
by
JackTerrance
{ 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; } Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 3, 2021
by
JackTerrance
Best answer
Pythagorean Triplet
Related 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: Question No.1: What do you understand about container tag and empty tag, give example?Question No.2: What do you understand about attributes of tag, give example?Question No.3: What do you mean about face attribute of font tag?Question No.4: Write syntax of Body tag along with all the attributes?Question No.5: What do you understand about a list in HTML?Question No.6: How many type of lists can be created in HTML? Explain them.Question No.7: Write small program in HTML to generate two different types of list.
Question No.1: What do you understand about container tag and empty tag, give example? Question No.2: What do ... all the attributes? 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: >>> list(range(0, -9,-1)) will print[-1, -2, -3, -4,-5, -6, -7, -8)[0,-1, -2, -3, -4,-5, -6, -7, -8][0,-1, -2, -3, -4, -5, -6, -7, -8,-9)
>>> list(range(0, -9,-1)) will print [-1, -2, -3, -4,-5, -6, -7, -8) [0,-1, -2, -3, -4,-5, -6, -7, -8 ... [0,-1, -2, -3, -4,-5, -6, -7] 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: 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: 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)
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...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What is the output of the below program? Answer: #include<stdio.h> int main() { printf("%u",sizeof(NULL)); return 0; }
What is the output of the below program? #include
int main() { printf("%u",sizeof(NULL)); return 0; }...
asked
Jan 23, 2021
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
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: 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: 1. SAARC 2. ASEAN 3. OPEC 4. NIEO 5. NAFTA 6. OAS 7. WTO
Expand the abbreviations. 1. SAARC 2. ASEAN 3. OPEC 4. NIEO 5. NAFTA 6. OAS 7. WTO Select the correct answer from above options...
asked
Aug 3, 2022
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: re arrange these words: (1)INFRMAAME, (2)ACINTOSHM,(3)AVIGATIONN(4),HDIE (5)YOUTLA, (6)ianm tcuneodm.
re arrange these words: (1)INFRMAAME, (2)ACINTOSHM,(3)AVIGATIONN(4),HDIE (5)YOUTLA, (6)ianm tcuneodm. Select the correct answer from above options...
asked
Dec 10, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: re arrange these words: (1)INFRMAAME, (2)ACINTOSHM,(3)AVIGATIONN(4),HDIE (5)YOUTLA, (6)ianm tcuneodm.
re arrange these words: (1)INFRMAAME, (2)ACINTOSHM,(3)AVIGATIONN(4),HDIE (5)YOUTLA, (6)ianm tcuneodm. 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: 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: m1)Int a=0.b=20;for (int i=20;i>=4;i=i-3){if(i%21=0a=a+2;)b=b+a:
m 1) Int a=0.b=20; for (int i=20;i>=4;i=i-3) { if(i%21=0 a=a+2; ) b=b+a: predict the value of b after execution 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: Int a=0.b=20:for (int i=20:i>=4:i=i-3){if(i%2!=0)a=a+2:3b=b+a:
Int a=0.b=20: for (int i=20:i>=4:i=i-3) { if(i%2!=0) a=a+2: 3 b=b+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: For a loaded die, the probabilities of outcomes are given as under: P(1) = P(2) = 0.2, P(3) = P(5) = P(6) = 0.1 and P(4) = 0.3.
For a loaded die, the probabilities of outcomes are given as under: P(1) = P(2) = 0.2, P(3) = P(5) ... or not A and B are independent. Select the correct answer from above options...
asked
Nov 20, 2021
in
Education
by
JackTerrance
probability-interview-questions
probability-interview-questions-answers
probability-multiple-choice-questions
probability-mcq-with-answers
probability-mcq
probability-questions
cbse-class-10
...