Data Type and Data Structures

Descrição

Quiz sobre Data Type and Data Structures, criado por Harry Guest em 24-03-2015.
Harry Guest
Quiz por Harry Guest, atualizado more than 1 year ago
Harry Guest
Criado por Harry Guest mais de 9 anos atrás
38
1

Resumo de Recurso

Questão 1

Questão
Which of these are the two Numeric Data types?
Responda
  • Integer and Real
  • Character and Integer
  • Real and Character
  • String and Character

Questão 2

Questão
What is Boolean data?
Responda
  • Data that can have up to two values
  • Data that can only have two values
  • Data that allows us to store more than one item of data
  • Data used store characters, digits and punctuation symbols

Questão 3

Questão
Which of these variables would use a String?
Responda
  • Variable: TotalPrice (The cost of the tickets booked by the customer)
  • Variable: SeatNumber (For example F7, meaning the seat is in row F, number 7)
  • Variable: SeatAvailable (Whether a seat can be booked)
  • Variable: NoTickets (The number of tickets wanted)

Questão 4

Questão
What is a serial file?
Responda
  • Files in which records are stored in the order in which they were entered
  • Files in which records have been placed in the file according to some math­ematical hash algorithm
  • Files in which records are stored according to some key field
  • Files in which records are stored according to some key field and where one or more indexes have been created to make searching even more efficient

Questão 5

Questão
How would we reference the value 18 from the image?
Responda
  • 24
  • 42
  • 18
  • 8

Questão 6

Questão
What are the four items which need to be stated when defining an array?
Responda
  • Name of array
  • Data type of contents
  • Dimensions
  • Maximum number of elements/size of array/bounds of array
  • Length of array
  • Number of values
  • Variable types
  • Location of array

Questão 7

Questão
What are three advantages of using an array rather than 100 separate variables?
Responda
  • Code is easier to manage
  • Can use iteration
  • Code will be more easily scaleable
  • Code will be more accurate
  • Can use more variables
  • Allow individual data items to be accessed

Questão 8

Questão
What does a record do?
Responda
  • Stores a series of similar data items together under one identifier
  • Stores several different related data items under one identifier
  • Stores a series of similar data items together under multiple identifiers
  • Stores several different related data items under multiple identifiers

Questão 9

Questão
What is an integer used to store?
Responda
  • Whole numbers
  • Numbers that may have a decimal point

Questão 10

Questão
Alphanumeric data types are used to store textual data
Responda
  • True
  • False

Questão 11

Questão
What does the first row of the table tells us?
Responda
  • The position of each item of the array
  • The position of each item of the record
  • The position of each variable of the array
  • The position of each variable of the record

Semelhante

Direito Constitucional - 1 - Princípios fundamentais
glenerdourado
PSICOLOGIA DO DESENVOLVIMENTO E DA APRENDIZAGEM
vanessasenez
Vocabulário Inglês Básico_1
Felipe Penha
Simulado Geral de contabilidade
Alessandra S.
Fórmulas de Física para Vestibular
GoConqr suporte .
Revisão
Vanessa Bolina
A Era Vargas (1930-45)
kl.a.b
O que estudar para a OAB
GoConqr suporte .
Oscilações, ondas, óptica e radiação
Sem Parar
Origem da Vida
Ariane Freitas