CS 203 Sample Exam

Descrição

Sample
SITEAcads
Quiz por SITEAcads, atualizado more than 1 year ago
SITEAcads
Criado por SITEAcads aproximadamente 9 anos atrás
68
0

Resumo de Recurso

Questão 1

Questão
Data(s) are?
Responda
  • Pieces of information stored in a computer and manipulated by programs.
  • Organized representations that aim to show relationships among data items.
  • Organized list of data items where you can anytime take out and take in.
  • Data that contains a pointer to an instance of itself

Questão 2

Questão
When describing for (PSEUDOCODE) Process and Initialize, What keywords will you be needing?
Responda
  • DESCRIBE and INIT
  • PROMPT and SET
  • GET and CALCULATE
  • READ and SET

Questão 3

Questão
[blank_start]Data structures[blank_end] are organized representations that aim to show relationships among data items
Responda
  • Data structures

Questão 4

Questão
Which of the following statement is false?
Responda
  • Arrays are dense lists and static data structure
  • Pointers store the next data element of a list
  • data elements in linked list need not be stored in adjecent space in memory
  • linked lists are collection of the nodes that contain information part and next pointer

Questão 5

Questão
A variable P is called pointer if?
Responda
  • P contains the address of an element in DATA.
  • P points to the address of first element in DATA
  • P can store only memory addresses
  • P contain the DATA and the address of DATA

Questão 6

Questão
Two dimensional arrays are also called
Responda
  • tables arrays
  • matrix arrays
  • Both Tables Arrays and Matrix Arrays
  • none of above

Questão 7

Questão
_________ is a technique that solves a problem by solving a smaller problem of the same type
Responda
  • For Loop
  • Array
  • Recursion
  • Sorting

Questão 8

Questão
Recursive Data Structure: a?
Responda
  • Data structure that contains a pointer to an instance of itself
  • Procedure that calls itself
  • Technique that solves a problem by solving a smaller problem of the same type
  • Pieces of information stored in a computer and manipulated by programs.

Questão 9

Questão
Declaring Pointer : int _ Pointer; what should go before the word Pointer?
Responda
  • &
  • #
  • *
  • None of the above

Questão 10

Questão
[blank_start]Recursive call[blank_end] - must change at least one of the parameters and make progress towards the base case
Responda
  • Recursive call

Questão 11

Questão
What kind of Sorting is this?
Responda
  • Quick Sort
  • Merge Sort
  • Insertion Sort
  • Selection Sort
  • Bucket Sort
  • Bubble Sort

Questão 12

Questão
What kind of Sorting is this?
Responda
  • Selection Sort
  • Quick Sort
  • Merge Sort
  • Insertion Sort
  • Bucket Sort
  • Bubble Sort

Questão 13

Questão
What kind of Sorting is this?
Responda
  • Merge Sort
  • Selection Sort
  • Bucket Sort
  • Bubble Sort
  • Quick Sort
  • Insertion Sort

Questão 14

Questão
What kind of Sorting is this?
Responda
  • Bubble Sort
  • Insertion
  • Selection Sort
  • Bucket Sort
  • Quick Sort
  • Merge Sort

Questão 15

Questão
What kind of Sorting is this?
Responda
  • Selection Sort
  • Merge Sort
  • Insertion
  • Bucket Sort
  • Bubble Sort
  • Quick Sort

Questão 16

Questão
What kind of Sorting is this?
Responda
  • Selection Sort
  • Bucket Sort
  • Merge Sort
  • Insertion
  • Quick SOrt
  • Bubble Sort

Questão 17

Questão
A [blank_start]pointer variable[blank_end] is a variable whose value is a memory address. Since this address actually “points” to some memory location, it is referred to as a pointer.
Responda
  • pointer variable

Questão 18

Questão
First Circle : [blank_start]274[blank_end] Second Circle : [blank_start]NULL[blank_end]
Responda
  • 274
  • NULL

Questão 19

Questão
First Circle : [blank_start]274[blank_end] Second Circle : [blank_start]275[blank_end] Third Circle : [blank_start]323[blank_end] Fourth Circle : [blank_start]324[blank_end]
Responda
  • 274
  • 275
  • 323
  • 324

Questão 20

Questão
 [blank_start]Running time[blank_end] of an algorithm is usually a function of the input size
Responda
  • Running time

Questão 21

Questão
Computing the Running Time of an Algorithm o it is necessary to determine how many times a programming statement will be executed during the entire duration of the program’s execution. o This is what we will refer to as the frequency count. Then, we determine what type of primitive operation will be performed. o It can either be:  An [blank_start]assignment[blank_end] statement  A [blank_start]method[blank_end] call  A [blank_start]conditional[blank_end] statement  A [blank_start]iterative[blank_end] statement  A [blank_start]return[blank_end] from a method/procedure
Responda
  • assignment
  • method
  • iterative
  • return
  • conditional

Questão 22

Questão
The running time will be described using the [blank_start]Big-Oh notation[blank_end].
Responda
  • Big-Oh notation

Questão 23

Questão
There are various operations on pointers, like, [blank_start]deferencing[blank_end], [blank_start]assignment[blank_end], and [blank_start]comparison[blank_end].
Responda
  • deferencing
  • assignment
  • comparison

Questão 24

Questão
Properties shared in general by algorithms : o [blank_start]Input[blank_end] – instance values of problem to be solved o [blank_start]Output[blank_end] – values produced that solves problem o [blank_start]Definiteness[blank_end] – unambiguous - steps defined precisely o [blank_start]Effectiveness[blank_end] – Each step performed exactly in finite amount of time o [blank_start]Finiteness[blank_end] – output after finite number of steps – must terminate o [blank_start]Correctness[blank_end] – correct output from input o [blank_start]Generality[blank_end] – applicable to all instances of the problem
Responda
  • Input
  • Output
  • Definiteness
  • Effectiveness
  • Finiteness
  • Correctness
  • Generality

Questão 25

Questão
o When describing input, output, computations, etc, the following terms are often used:  [blank_start]Input[blank_end]: INPUT, READ, GET  [blank_start]Output[blank_end]: PRINT, DISPLAY, SHOW, PROMPT  [blank_start]Compute[blank_end]: COMPUTE, CALCULATE, DETERMINE  [blank_start]Initialize[blank_end]: SET, INIT  [blank_start]Add one[blank_end]: INCREMENT, BUMP  [blank_start]Decisions[blank_end]: TEST, IF/THEN/ELSE, WHILE/DO
Responda
  • Input
  • Output
  • Compute
  • Initialize
  • Add one
  • Decisions

Questão 26

Questão
First Circle :[blank_start]1471[blank_end] Second Circle :[blank_start]1471[blank_end] Third Circle : [blank_start]1641[blank_end] Fourth Circle : [blank_start]1642[blank_end]
Responda
  • 1471
  • 1471
  • 1641
  • 1642

Questão 27

Questão
[blank_start]Insertion sort[blank_end] arranges data in order by “inserting” elements in its proper position.
Responda
  • Insertion sort

Questão 28

Questão
[blank_start]Merge sort[blank_end] can work with nos. with of unlimited duplication and unspecified size.
Responda
  • Merge sort

Questão 29

Questão
[blank_start]Quick sort[blank_end] is the most efficient sorting algorithm. It starts with choosing a partitioning element called the pivot. The elements will be divided according to the pivot, one part contains elements that are less than or equal to the pivot, the other part contains elements that are greater than the pivot.
Responda
  • Quick sort

Semelhante

HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Historical Development of Computer Languages
Shannon Anderson-Rush
Useful String Methods
Shannon Anderson-Rush
Flvs foundations of programming dba 2
mariaha vassar
Python Quiz
karljmurphy
computer systems and programming quiz
Molly Batch
Think Python
tsilvo2001
C Programming
Miki Rana
Generations of Programming Languages
Balikkoftesi
Mapa Conceptual - Arreglos
ciroivan94