CS 203 Sample Exam

Description

Sample
SITEAcads
Quiz by SITEAcads, updated more than 1 year ago
SITEAcads
Created by SITEAcads about 9 years ago
67
0

Resource summary

Question 1

Question
Data(s) are?
Answer
  • 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

Question 2

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

Question 3

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

Question 4

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

Question 5

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

Question 6

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

Question 7

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

Question 8

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

Question 9

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

Question 10

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

Question 11

Question
What kind of Sorting is this?
Answer
  • Quick Sort
  • Merge Sort
  • Insertion Sort
  • Selection Sort
  • Bucket Sort
  • Bubble Sort

Question 12

Question
What kind of Sorting is this?
Answer
  • Selection Sort
  • Quick Sort
  • Merge Sort
  • Insertion Sort
  • Bucket Sort
  • Bubble Sort

Question 13

Question
What kind of Sorting is this?
Answer
  • Merge Sort
  • Selection Sort
  • Bucket Sort
  • Bubble Sort
  • Quick Sort
  • Insertion Sort

Question 14

Question
What kind of Sorting is this?
Answer
  • Bubble Sort
  • Insertion
  • Selection Sort
  • Bucket Sort
  • Quick Sort
  • Merge Sort

Question 15

Question
What kind of Sorting is this?
Answer
  • Selection Sort
  • Merge Sort
  • Insertion
  • Bucket Sort
  • Bubble Sort
  • Quick Sort

Question 16

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

Question 17

Question
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.
Answer
  • pointer variable

Question 18

Question
First Circle : [blank_start]274[blank_end] Second Circle : [blank_start]NULL[blank_end]
Answer
  • 274
  • NULL

Question 19

Question
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]
Answer
  • 274
  • 275
  • 323
  • 324

Question 20

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

Question 21

Question
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
Answer
  • assignment
  • method
  • iterative
  • return
  • conditional

Question 22

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

Question 23

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

Question 24

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

Question 25

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

Question 26

Question
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]
Answer
  • 1471
  • 1471
  • 1641
  • 1642

Question 27

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

Question 28

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

Question 29

Question
[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.
Answer
  • Quick sort
Show full summary Hide full summary

Similar

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