Select the correct option to test your answer:
More Computer Questions
Which is the most appropriate data structure for reversing a word?
What will be the output of the following C# code snippet? class box { public int width; public int height; public int length; public int volume1; public void volume() { volume1 = width * height * length; } public void volume(int x) { volume1 = x; } } class Program { static void Main(string[] args) { box obj = new box(); obj.height = 1; obj.length = 5; obj.width = 5; obj.volume(5); Console.WriteLine(obj.volume1); Console.ReadLine(); } } a) 0
A 2000-character text file has to be transmitted by using a 1,200 baud modem. Can you tell how long will it take?
What is the output of the following code? #include<stdio.h> int recursive_binary_search(int *arr, int num, int lo, int hi) { if(lo > hi) return -1; int mid = (lo + hi)/2; if(arr[mid] == num) return mid; else if(arr[mid] < num) lo = mid + 1; else hi = mid - 1; return recursive_binary_search(arr, num, lo, hi); } int main() { int arr[8] = {0,0,0,0,3,5,6,7},num = 0,len = 8; int indx = recursive_binary_search(arr,num,0,len-1); printf("Index of %d is %d",num,indx); return 0; }
In the following MySQL query, "person_1" belongs to which category of table in MySQL? CREATE VIEW person_1 AS SELECT fname, lname, person_id FROM person;