How many cycle in Bubble Sort if there is 20 data

Algorithm & Programming - Review 2

Quiz
•
Other
•
University
•
Hard
Rita Ly
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many comparison in Bubble Sort if there is 4 data.
3
4
5
6
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following is an advantage of modular programming, except
Top-down design with sub goal, huge program divided into smaller modules
Can be done by more than one developer/ programmer
Modification can not be done without affecting overall codes
Easier to debug, as logical flow is easy to follow and easier to pin point errors
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Data type with predefined number of data is called
Typedef
Enumeration
Union
Bit Field
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which statement is false about fcloseall() function
Syntax: int fcloseall (void);
Close all active stream, include: stdin, stdout, stdprn, stderr, and stdaux.
Will return the number of stream closed if successful, and return EOF instead.
Header file <stdio.h>
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Using quick sort, which number will swap first. Data: 32 75 69 58 21 40
75 and 21
58 and 21
32 and 21
69 and 40
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Using binary and interpolation search, what is the value of mid (first round) if search key is 70. Data: 12 24 39 57 66 68 75 90 98
Binary = 3 ; Interpolaion = 3
Binary = 3 ; Interpolaion = 4
Binary = 3 ; Interpolaion = 5
Binary = 3 ; Interpolaion = 6
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Christmas Quiz KS3

Quiz
•
6th Grade - University
10 questions
Aaruth Quiz

Quiz
•
University
18 questions
OSG202_Chapter4

Quiz
•
University
15 questions
DATABASE MANAGEEMENT SYSTEM

Quiz
•
University
11 questions
Junk Genius

Quiz
•
University
15 questions
AlgoWhiz Quiz

Quiz
•
University
10 questions
Quiz Analisis Data

Quiz
•
10th Grade - University
20 questions
Konsep dasar Struktur Data

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade