0% found this document useful (0 votes)
9 views11 pages

Algorithm Building Blocks Explained

The document outlines the fundamental building blocks of algorithms, which include sequence, selection, and iteration. It also contains a series of questions related to the characteristics and properties of algorithms, such as finiteness and definiteness. Additionally, it discusses the importance of decision-making in programming through selection structures.

Uploaded by

Riya Shekhawat
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views11 pages

Algorithm Building Blocks Explained

The document outlines the fundamental building blocks of algorithms, which include sequence, selection, and iteration. It also contains a series of questions related to the characteristics and properties of algorithms, such as finiteness and definiteness. Additionally, it discusses the importance of decision-making in programming through selection structures.

Uploaded by

Riya Shekhawat
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

➢ Fundamental Building Blocks of an Algorithm / ,Yxksfjne ds ewyHkwr ?

kVd

▪ Sequence / vuqØe
▪ Selection / p;u
▪ Iteration/Repetition (Looping) / iqujko`fr
▪ Sequence / vuqØe

A series of steps executed in-order.

All the instructions are executed one after another is called sequential
execution.
lHkh funsZ’kksa dk ,d ds ckn ,d fu"iknu ¼execute½ gksuk vuqØfed fu"iknu
¼sequenctial execution½ dgykrk gSaA
▪ Selection / p;u

Making decision based on condition.


fdlh 'krZ ¼condition½ ds vk/kkj ij [Link]; ysukA
▪ Iteration/Repetition (Looping) / iqujko`fr

Repetition until a condition is met.

Certain statements are executed again and again based on some


condition.
dqN dFkuksa ¼statements½ dks condition ds vk/kkj ij ckj&ckj execute fd;k tkrk
gSaA
Q1. Which is not the characteristic of good algorithm ? / dkSu vPNs
,Yxksfjne dh fo'ks"krk ugÈ gS \
RSSB IA 2018
A. Finite / QkbukbV
B. Unambiguous / vu,fEcxqvl
C. Well defined / oSy fMQkbUM
D. Unordered / vuv‚MZMZ
Q2. Which structure allows the program to make a choice between two
alternate paths depending upon the condition ? / fLFkfr ds vuqlkj nks
oSdfYid ekxksZa esa ls fdlh ,d fodYi dks pquus ds fy, fdldk ç;ksx fd;k tkrk gS \
RSSB IA 2018
A. Sequence / vuqØe
B. Selection / flysD’ku
C. Iteration / bVjs’ku
D. Logic / y‚ftd
Q3. Which of the following property of an algorithm states that the
algorithm must terminate after a certain number of steps? / dyu fofèk dk
fuEufyf[kr esa ls dkSu lk xq.kèkeZ ;g crkrk gS fd dyu fofèk dks [Link] dh fuf'pr
la[;k ds ckn lekIr gksuk pkfg,\
PSPCL JE EE 2019 Shift 2
A. Effectiveness / çHkkodkfjrk
B. Input and Output / buiqV vkSj vkmViqV
C. Finiteness / lhfeÙkk
D. Definiteness / fuf'prrk
Q4. Which one of the following properties of an algorithm ensures that
each step of the algorithm is properly defined and the actions to be
performed are clearly specified? / ,Yxksfjne ds fuEufyf[kr [Link] esa ls dkSu lk
xq.k lqfuf'pr djrk gS fd ,Yxksfjne ds çR;sd pj.k dks Bhd ls ifjHkkf"kr fd;k x;k gS
vkSj fd, tkus okys dk;ksZa dks lqLi"V <ax ls fuÆn"V fd;k x;k gS\
UPPCL Assistant Accountant 29 Jan 2019
A. Finiteness / ifjferrk
B. Effectiveness / çHkko'khyrk
C. Input and Output / buiqV vkSj vkmViqV
D. Definiteness / fuf'prrk
CLIPBOARD_DATA_SPLITTER123,34,101,108,101,109,101,110,116,115,34,58,91,123,34,105,100,34,58,34,99,100,100,98,98,55,50,98,45,51,56,48,99,45,52,48,56,100,45,97,51,52,102,45,56,101,48,53,98,51,56,97,53,53,52,51,34,44,34,116,121,112,101,34,58,34,73,77,65,71,69,95,76,65,89,69,82,34,44,34,120,34,58,45,55,46,52,56,53,54,53,57,51,48,48,48,48,48,48,48,49,44,34,121,34,58,45,52,46,49,54,52,51,51,55,52,56,44,34,97,100,106,117,115,116,34,58,123,34,110,97,10
CLIPBOARD_DATA_SPLITTER123,34,101,108,101,109,101,110,116,115,34,58,91,123,34,105,100,34,58,34,99,100,100,98,98,55,50,98,45,51,56,48,99,45,52,48,56,100,45,97,51,52,102,45,56,101,48,53,98,51,56,97,53,53,52,51,34,44,34,116,121,112,101,34,58,34,73,77,65,71,69,95,76,65,89,69,82,34,44,34,120,34,58,45,55,46,52,56,53,54,53,57,51,48,48,48,48,48,48,48,49,44,34,121,34,58,45,52,46,49,54,52,51,51,55,52,56,44,34,97,100,106,117,115,116,34,58,123,34,110,97,1

Q5. In the diagram given below : / fn;s x, fp= esa

indicates ________ process. / ________ izfØ;k dks fu:fir djrk gSA


RSSB IA 2023
A. Output / vkmViqV
B. Input / buiqV
C. Repetetion / iqujko`fRr
D. Process / izfØ;k
Q6. What are the 3 algorithm constructs? / ,Yxksfjne ds 3 daLVªDV D;k gSa\
OR / ;k
What are the three building blocks of an algorithm? / ,Yxksfjne ds rhu
fcÇYMx Cy‚d D;k gSa\
A. Sequence, Selection, Repetition / lhDosal] flysD'ku] fjihfV’ku
B. Input, Output, Process / buiqV] vkmViqV] çkslsl
C. Input/Output, Decision, Terminator / buiqV@vkmViqV] fMlhtu] VÆeusVj
D. Loop, Input/Output, Process / ywi] buiqV@vkmViqV] çkslsl

You might also like