Code Window

Infytq Python Solve

Which of the following functions call will execute successfully?Choose two correct optionsa. display_cat_details(“Black”,”Roger”,”Snow”)b. display_cat_details(“white”)c. display_cat_details(“Grey”, pet_name=”Grey)d. display_cat_details(“Brown”,”Nelly”) Answer a, d Explanation In this function, there are three parameters among them the last parameter is optional. In option b only one parameter is passed so it will not be a proper call. And in option c …

Infytq Python Solve Read More »

Wipro Coding Question Solve

BUCKET ID C C #include<stdio.h> int main() { long int n; scanf(“%ld”,&n); int m; m=n%10; while(n) { if(m>n%10) m=n%10; n=n/10; } printf(“%d”,m); return 0; } ODD EVEN ONLINE GAME C C #include<stdio.h> int main() { int n; scanf(“%d”, &n); int i,a[n]; for(i=0;i<n;i++) { scanf(“%d”,&a[i]); } for(i=0;i<n;i++) { if(a[i]%2==0) printf(“%d “,a[i]); } for(i=0;i<n;i++) { if(a[i]%2!=0) printf(“%d “,a[i]); …

Wipro Coding Question Solve Read More »

Page 1 of 8
1 2 3 8