public class sookshmas1{ public static void main(string args[]){ test(null); } public static void test(Object o){ System.out.println("object"); } public static void test(String s){ System.out.println("string");
} public static void test(Integer i){ System.out.println("integer"); } }
while True:what will be the output if the input given in line 3 is secr3t'1?print('Select a new password (letters and numbers only):')password = input()if password.isalnum():print('Passwords can only have letters and numbers.')breakelse:print('password set successfully')
#includestdio.hvoid main(){if(!printf(""))printf("Okk");elseprintf("Hii");}
int main(){int a[3]={15,20,25}if (a==15)printf("a[0]");else if(a==20)printf("a[1]");elseprintf("a[2]");}
import java.util.*;class Collection_iterators{public static void main(String args[]){LinkedList list = new LinkedList();list.add(new Integer(6));list.add(new Integer(10));list.add(new Integer(5));list.add(new Integer(2));Iterator i = list.iterator();Collections.reverse(list);Collections.sort(list);while(i.hasNext())System.out.print(i.next() + " ");}}
Predict the output #includestdio.hint main (){int x=1,y=0,z=5;int a=x&&y || z++;printf ("%d",z);return 0;}