Company: Cisco_MCQ__...
Difficulty: medium
What is the output of the following program: public class test6 { public static void main(String[] args) { Rare rare = new Rare(); System.out.println(rare.callMethod(new Rare())); } } class Tiger { public String callMethod(Tiger obj) { return "Tiger"; } } class White extends Tiger { public String callMethod(White obj) { return "White"; } } class Rare extends White { public String callMethod(Object
What will be the output in a 32 bit platform for the C code: void foo ( char *p) { printf("[p= %d, *p= %d]", sizeof(p), sizeof(*p)); } main() { foo(0); }
Four jockeys (Alex, Ben, Chris, Dave) ride horses (Apple, Banana, Orange, Pear). Based on the race conditions provided, what is the order of the jockeys and their horses?
A router has entries for 192.168.1.0/24 and 192.168.1.0/25. Which route will it use for destination 192.168.1.50?
A linked list containing 1, 2, 3, 4, 5, 6, 7 is processed by a rearrange function that swaps adjacent values. What is the final list?
How many new words are possible from the letters of the word ENCHANTMENT?
A company has 3 lines with busy probabilities 80%, 50%, and 90%. What is the probability that a random call connects immediately?