Test: Arrays - 1 - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test Question Bank for GATE Computer Science Engineering - Test: Arrays - 1

Test: Arrays - 1 for Computer Science Engineering (CSE) 2024 is part of Question Bank for GATE Computer Science Engineering preparation. The Test: Arrays - 1 questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Arrays - 1 MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Arrays - 1 below.
Solutions of Test: Arrays - 1 questions in English are available as part of our Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) & Test: Arrays - 1 solutions in Hindi for Question Bank for GATE Computer Science Engineering course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: Arrays - 1 | 10 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: Arrays - 1 - Question 1

Which of these best describes an array?

Detailed Solution for Test: Arrays - 1 - Question 1

Array contains elements only of the same type.

Test: Arrays - 1 - Question 2

How do you instantiate an array in Java?

Detailed Solution for Test: Arrays - 1 - Question 2

Note that int arr[]; is declaration whereas int arr[] = new int[3]; is to instantiate an array.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Arrays - 1 - Question 3

What are the advantages of arrays?

Detailed Solution for Test: Arrays - 1 - Question 3

Arrays store elements of the same data type and present in continuous memory locations.

Test: Arrays - 1 - Question 4

Assuming int is of 4bytes, what is the size of int arr[15];?

Detailed Solution for Test: Arrays - 1 - Question 4

Since there are 15 int elements and each int is of 4bytes, we get 15*4 = 60bytes.

Test: Arrays - 1 - Question 5

Elements in an array are accessed _____________

Detailed Solution for Test: Arrays - 1 - Question 5

Elements in an array are accessed randomly. In Linked lists, elements are accessed sequentially.

Test: Arrays - 1 - Question 6

How do you initialize an array in C?

Detailed Solution for Test: Arrays - 1 - Question 6

This is the syntax to initialize an array in C.

Test: Arrays - 1 - Question 7

Which of the following is the correct way to declare a multidimensional array in Java?

Detailed Solution for Test: Arrays - 1 - Question 7

The syntax to declare multidimensional array in java is either int[][] arr; or int arr[][];

Test: Arrays - 1 - Question 8

Which of the following concepts make extensive use of arrays?

Detailed Solution for Test: Arrays - 1 - Question 8

Whenever a particular memory location is referred to, it is likely that the locations nearby are also referred, arrays are stored as contiguous blocks in memory, so if you want to access array elements, spatial locality makes it to access quickly.

Test: Arrays - 1 - Question 9

What are the disadvantages of arrays?

Detailed Solution for Test: Arrays - 1 - Question 9

Arrays are of fixed size. If we insert elements less than the allocated size, unoccupied positions can’t be used again. Wastage will occur in memory.

Test: Arrays - 1 - Question 10

In general, the index of the first element in an array is __________

Detailed Solution for Test: Arrays - 1 - Question 10

In general, Array Indexing starts from 0. Thus, the index of the first element in an array is 0.

63 videos|8 docs|165 tests
Information about Test: Arrays - 1 Page
In this test you can find the Exam questions for Test: Arrays - 1 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Arrays - 1, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)