
ALGORITHM AND C PROGRAMMING QUIZ
Authored by Gagana M
Computers
University
Used 53+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is incorrect?
Algorithms can be represented:
as pseudo codes
as syntax
as programs
as flowcharts
Answer explanation
Explanation: Representation of algorithms:
-As programs
-As flowcharts
-As pseudo codes.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Algorithm must be :
CORRECT
EFFICIENT
BOTH A AND B
NONE
Answer explanation
OPTION C
Algorithm must be :
correct: for each input produce an appropriate output
efficient: run as quickly as possible, and use as little memory as possible
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
TO ANALYSE ALGORITHMS THE IMPORTANT ASYMPTOTIC NOTATIONS USE ARE :
BIG-OH-NOTATION[Ο]
OMEGA-NOTATION[Ω]
THETA-NOTATION[θ]
ALL THE ABOVE
Answer explanation
OPTION D
There are three different notations: big O, big Theta (Θ), and big Omega (Ω).
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
WHILE ANALYZING ALGORITHM
EFFICIENCY OF AN ALGORITHM CAN BE ANALYZED BY:
PRIORI ANALYSIS
POSTERIOR ANALYSIS
BOTH A AND B
NONE
Answer explanation
OPTION C
While a priori analysis helps us make initial decisions and choose the most promising algorithm
A posteriori analysis provides a practical evaluation of the algorithm's performance
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
TESTING A PROGRAM CONSISTS OF TWO MAJOR PHASES WHICH ARE
AVERAGE CASE AND WORST CASE
TIME COMPLEXITY AND SPACE COMPLEXITY
VALIDATION AND CHECKING ERRORS
DEBUGGING AND PROFILING
Answer explanation
OPTION D
DEBUGGING- IT IS THE PROCESS OF EXECUTING PROGRAMS ON SAMPLE DATA SETS THAT DETERMINE WHETHER WE GET PROPER RESULTS
PROFILING- IT IS THE PROCESS OF EXECUTING A CORRECT PROGRAM ON ACTUAL DATA SETS AND MEASURING THE SPACE AND TIME IT TAKES TO COMPUTE THE RESULTS DURING THE EXECUTION
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
FULL FORM OF ASCII
AMERICAN STABLE CODE FOR INTERNATIONAL INTERCHANGE
AMERICAN STANDARD CASE FOR INSTITUTIONAL INTERCHANGE
AMERICAN STANDARD CODE FOR INTERCHANGE INFORMATION
AMERICAN STANDARD CODE FOR INFORMATION INTERCHANGE
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
THE ASCII VALUE OF DIGITS [0 TO 9] RANGES FROM?
65 TO 90
0 TO 255
48 TO 57
65 TO 90
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?