topic/Arrays
Start Test
Question No
Title
Type
Marks
442.
What will be the output of the following code snippet?numbers = [1, 2, 3, 4, 5] numbers[1] = 9 print(numbers)
MCQ
5
443.
What will be the output of the following code snippet?numbers = [1, 2, 3, 4, 5] sliced_numbers = numbers[1:4] print(sliced_numbers)
MCQ
5
444.
What will be the output of the following code snippet?fruits = ['apple', 'banana', 'cherry'] fruits.remove('banana') print(fruits)
MCQ
5
445.
In Python, which module is commonly used for array operations?
MCQ
5
446.
How do you create an array in Python using thearraymodule?
MCQ
5
552.
What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
MCQ
5
553.
What does the following declaration mean?int (*ptr)[10];
MCQ
5
554.
In C, if you pass an array as an argument to a function, what actually gets passed?
MCQ
5
658.
Which of the following statements are correct about the C#.NET code snippet given below?int[ , ] intMyArr = {{7, 1, 3}, {2, 9, 6}};intMyArrrepresents rectangular array of 2 rows and 3 columns.intMyArr.GetUpperBound(1)will yield 2.intMyArr.Lengthwill yield 24.intMyArrrepresents 1-D array of 5 integers.intMyArr.GetUpperBound(0)will yield 2.
MCQ
5
659.
Which of the following statements are correct about the C#.NET code snippet given below?int[] a = {11, 3, 5, 9, 4};The array elements are created on the stack.Refernce a is created on the stack.The array elements are created on the heap.On declaring the array a new array class is created which is derived fromSystem.ArrayClass.Whether the array elements are stored in the stack or heap depends upon the size of the array.
MCQ
5
Current Page: 1
Prev
1
2
Next