Question 71
Question 72
Question 73
Question 74
Question 75
Question 76
Consider the code fragment written in JAVA below :
void f (int n)
{
if (n <=1) {
System.out.print(n);
}
else {
f (n/2);
System.out.print(n%2);
}
}
What does f(173) print?
Question 77
Consider the code fragment written in C below :
void f (int n)
{
if (n <= 1) {
printf (\"%d\", n);
}
else {
f (n/2);
printf (\"%d\", n%2);
}
}
Which of the following implementations will produce the same output for f(173) as the above code? P1
void f (int n)
{
if (n/2) {
f(n/2);
}
printf (\"%d\", n%2);
}
P2
void f (int n)
{
if (n <=1) {
printf (\"%d\", n);
}
else {
printf (\"%d\", n%2);
f (n/2);
}
}
Question 78
Host X has IP address 192.168.1.97 and is connected through two routers R1 and R2 to another host Y with IP address 192.168.1.80. Router R1 has IP addresses 192.168.1.135 and 192.168.1.110. R2 has IP addresses 192.168.1.67 and 192.168.1.155. The netmask used in the network is 255.255.255.224.
Given the information above, how many distinct subnets are guaranteed to already exist in the network?
Question 79
There are 82 questions to complete.