Home / MCQ Bank / Computer
Computer Classes And Modules Difficulty: Medium

Which are usually variables that are used internally in object methods and also are globally visible variables?

Select the correct option to test your answer:

More Computer Questions

What form the data must be entered for the given C code? scanf(ā€œ%d / %dā€, &n1,&n2); What will be the output of the following C function? #include <stdio.h> enum birds {SPARROW, PEACOCK, PARROT}; enum animals {TIGER = 8, LION, RABBIT, ZEBRA}; int main() { enum birds m = TIGER; int k; k = m; printf("%d\n", k); return 0; } What is meant by vector in the container library contains? What will be the output of the following C# code snippet? static void Main(string[] args) { int[] nums = { 5, 4, 6, 3, 14, 9, 8, 17, 1, 24, -1, 0 }; Array.Sort(nums); int idx = Array.BinarySearch(nums, 14); if (idx == 9) { Console.WriteLine(Convert.ToBoolean(1)); } else { Console.WriteLine(Convert.ToBoolean(0)); } Console.WriteLine("Index of 14 is " + idx); Console.ReadLine(); } Which of the following Python statements will result in the output: 6? A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]