CIT341 Solutions

CIT341

1. Which of these describes an array?

Objects of mixed data types can be stored

Elements in an array cannot be sorted

Index of first element of an array is always 1

Easier to store elements of same data type

2. Which of the following is an abstract datatype?

List

Int

Boolean

Char

3. Which of the following is a linear datatype?

Stack

tree

graph

none of the options

4. Which of the following is not a primitive data type in Java?

Int

String

Double

Boolean

5. What is the output after executing the following code fragment: int [] x = {1,2,3,4,5}; System.out.println(x[0]);

\(0\)

1

2

Array Index Out Of Bounds Exception

6. Which of these best describes an array?

A Linear datatype

A collection of objects of similar types

A basic datatype

A collection of objects which may not necessarily be of same type

7. Which of the following is a best way of declaring x as a two-dimension array in java

int[][] x = new int[10][20];

int[10][20] x = new int[20][10];

int[2] x = new int[];

int[]x = new int[2];

8. Which of the following is a valid value in Boolean data type ?

AND

OR

NOT

9. Which of the following is a non-linear data structure?

list

stack

queue

Tree

10. The collection of values and operations allowed on those values is known as

Class

Data type

Object

Extended Class

JOIN OUR TELEGRAM ON VIP NOUN UPDATES – FOR FREE CIT341 PAST QUESTIONS AND EXAMS SUMMARIES

 

Leave a Reply

MEET OVER 2000 NOUN STUDENTS HERE. 

Join us for latest NOUN UPDATES and Free TMA answers posted by students on our Telegram. 

OUR ONLINE TUTORIAL CLASS IS NOW ON!!! JOIN US NOW. 
JOIN NOW!
close-link
%d bloggers like this: