CS 203 Sample Exam

Beschreibung

Sample
SITEAcads
Quiz von SITEAcads, aktualisiert more than 1 year ago
SITEAcads
Erstellt von SITEAcads vor etwa 9 Jahre
68
0

Zusammenfassung der Ressource

Frage 1

Frage
Data(s) are?
Antworten
  • 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

Frage 2

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

Frage 3

Frage
[blank_start]Data structures[blank_end] are organized representations that aim to show relationships among data items
Antworten
  • Data structures

Frage 4

Frage
Which of the following statement is false?
Antworten
  • 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

Frage 5

Frage
A variable P is called pointer if?
Antworten
  • 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

Frage 6

Frage
Two dimensional arrays are also called
Antworten
  • tables arrays
  • matrix arrays
  • Both Tables Arrays and Matrix Arrays
  • none of above

Frage 7

Frage
_________ is a technique that solves a problem by solving a smaller problem of the same type
Antworten
  • For Loop
  • Array
  • Recursion
  • Sorting

Frage 8

Frage
Recursive Data Structure: a?
Antworten
  • 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.

Frage 9

Frage
Declaring Pointer : int _ Pointer; what should go before the word Pointer?
Antworten
  • &
  • #
  • *
  • None of the above

Frage 10

Frage
[blank_start]Recursive call[blank_end] - must change at least one of the parameters and make progress towards the base case
Antworten
  • Recursive call

Frage 11

Frage
What kind of Sorting is this?
Antworten
  • Quick Sort
  • Merge Sort
  • Insertion Sort
  • Selection Sort
  • Bucket Sort
  • Bubble Sort

Frage 12

Frage
What kind of Sorting is this?
Antworten
  • Selection Sort
  • Quick Sort
  • Merge Sort
  • Insertion Sort
  • Bucket Sort
  • Bubble Sort

Frage 13

Frage
What kind of Sorting is this?
Antworten
  • Merge Sort
  • Selection Sort
  • Bucket Sort
  • Bubble Sort
  • Quick Sort
  • Insertion Sort

Frage 14

Frage
What kind of Sorting is this?
Antworten
  • Bubble Sort
  • Insertion
  • Selection Sort
  • Bucket Sort
  • Quick Sort
  • Merge Sort

Frage 15

Frage
What kind of Sorting is this?
Antworten
  • Selection Sort
  • Merge Sort
  • Insertion
  • Bucket Sort
  • Bubble Sort
  • Quick Sort

Frage 16

Frage
What kind of Sorting is this?
Antworten
  • Selection Sort
  • Bucket Sort
  • Merge Sort
  • Insertion
  • Quick SOrt
  • Bubble Sort

Frage 17

Frage
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.
Antworten
  • pointer variable

Frage 18

Frage
First Circle : [blank_start]274[blank_end] Second Circle : [blank_start]NULL[blank_end]
Antworten
  • 274
  • NULL

Frage 19

Frage
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]
Antworten
  • 274
  • 275
  • 323
  • 324

Frage 20

Frage
 [blank_start]Running time[blank_end] of an algorithm is usually a function of the input size
Antworten
  • Running time

Frage 21

Frage
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
Antworten
  • assignment
  • method
  • iterative
  • return
  • conditional

Frage 22

Frage
The running time will be described using the [blank_start]Big-Oh notation[blank_end].
Antworten
  • Big-Oh notation

Frage 23

Frage
There are various operations on pointers, like, [blank_start]deferencing[blank_end], [blank_start]assignment[blank_end], and [blank_start]comparison[blank_end].
Antworten
  • deferencing
  • assignment
  • comparison

Frage 24

Frage
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
Antworten
  • Input
  • Output
  • Definiteness
  • Effectiveness
  • Finiteness
  • Correctness
  • Generality

Frage 25

Frage
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
Antworten
  • Input
  • Output
  • Compute
  • Initialize
  • Add one
  • Decisions

Frage 26

Frage
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]
Antworten
  • 1471
  • 1471
  • 1641
  • 1642

Frage 27

Frage
[blank_start]Insertion sort[blank_end] arranges data in order by “inserting” elements in its proper position.
Antworten
  • Insertion sort

Frage 28

Frage
[blank_start]Merge sort[blank_end] can work with nos. with of unlimited duplication and unspecified size.
Antworten
  • Merge sort

Frage 29

Frage
[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.
Antworten
  • Quick sort
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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