Home / MCQ Bank / Computer
Computer Performance Measures Difficulty: Medium

What is the maximum size of an IP packet for IPv4 or IPv6?

Select the correct option to test your answer:

More Computer Questions

What is the purpose of the 'static' keyword in a C++ function? What will be the output of the following C++ code? #include <iostream> using namespace std; void empty() throw() { cout << "In empty()"; } void with_type() throw(int) { cout << "Will throw an int"; throw(1); } int main() { try { empty(); with_type(); } catch (int) { cout << "Caught an int"; } } Which account is the odd one Which keyword is used to rescue specific types of exceptions in Ruby? What is the time complexity of the following dynamic programming implementation to find the longest palindromic subsequence where the length of the string is n? #include<stdio.h> #include<string.h> int max_num(int a, int b) { if(a > b) return a; return b; } int lps(char *str1) { int i,j,len; len = strlen(str1); char str2[len + 1]; strcpy(str2, str1); strrev(str2); int arr[len + 1][len + 1]; for(i = 0; i <= len; i++) arr[i][0] = 0; for(i = 0; i <= len; i++) arr[0][i] = 0; for(i = 1; i <= len; i++) { for(j = 1; j <= len; j++) { if(str1[i-1] == str2[j - 1]) arr[i][j] = 1 + arr[i - 1][j - 1]; else arr[i][j] = max_num(arr[i - 1][j], arr[i][j - 1]); } } return arr[len][len]; } int main() { char str1[] = "ababcdabba"; int ans = lps(str1); printf("%d",ans); return 0; }