Sep I Sem Bca General Question Bank
Sep I Sem Bca General Question Bank
QUESTION BANK
FOR
I SEMESTER BCA
GENERAL
Question Bank
FUNDAMENTALS OF COMPUTERS
UNIT I
Questions carrying 2 Marks
1. What is Computer?
2. What do you meanby generations of Computers?
3. Expand UNIVAC, ENIAC, EDVAC, EDSAC, BIOS, EPROM (1 Mark Each)
4. Define Artificial Intelligence.
5. List different technologies related to AI.
6. What is an Expert System?
7. What is parallel processing?
8. What is a Microcomputer?
9. What is a Supercomputer?
10.List out sub systems of CPU.
11.What are Registers?
12.What is a Bus?
13.What is System Bus? Name its functional groups
14.What is the main memory? Name two types.
15.Differential RAM and ROM.
16.What is Cache memory?
17.What are input devices? Give Example.
18.What are pointing devices? Give example.
19.What is Trackball? Why it is used?
20.What is Joystick? Mention its use.
21.What are output devices? List different forms of output devices.
22.What is a hard copy? What is a soft copy?
23.Write different purposes of the light pen.
24.What is a plotter? List different types of plotters.
25.Define resolution and refresh rate of monitors.
26.What is Control unit?
27.Differentiate Program counter and Instruction Register.
28.What is speech Recognition.
29.What is scanner?Mention its types.
30.What is Dot Pitch and Refresh Rate.
31.What is Raster Scan Display.
32.What is Random Sacn Display.
33.What is Beam Penetration.
34.What is Shadow Masking.
35.What is Plasma Display.
36.What is Drum Plotter.
37.What is Flatbed Plotter.
38.Differentiate Laser and Inkjet Printer.
39.What is Dot-Matrix Printer.
40.What is Color Depth.
3-6 marks questions
1. List and explain characteristics of Computers. (6)
2. List and explain in brief the characteristics of First-Generation Computers. (6)
3. List and explain in brief the characteristics of Second-Generation Computers. (6)
4. List and explain in brief the characteristics of Third-Generation Computers. (6)
5. List and explain in brief the characteristics of Fourth-Generation Computers. (6)
6. List and explain in brief the characteristics of Fifth-Generation Computers. (6)
7. Explain different types of Microcomputers. (6)
8. Write a note on
a. Mainframes b. Supercomputers. (6)
9. Draw the block diagram of a Computer System and explain the components of a Computer
System. (6)
10.List and explain the applications of Computers in different fields (6)
11.List out any four registers available in CPUalong withits function. (4)
12.Explain System Bus and its functional groups. (6)
13.Briefly explain any two pointing devices. (5)
14.Write a note on
a. Keyboard (3)
b. Touch Screen (3)
c. Trackpad (3)
d. Digital Camera (3)
e. Flatbed Scanners (4)
f. Dot Matrix Printers (3)
g. Laser Printer (3)
15.Write a note on Ink-jet printers. (4)
16.Write a note on Plotters. (4)
17.Differentiate LCD and CRT monitors (5)
18.With neat Diagram Explain Cathode Ray Tube Monitors.
19.Explain Displaying Graphics on a CRT.
20.Explain Liquid Crystal Display Monitors.
UNIT II
Questions carrying 2 Marks
1. Define Software.
2. Define System Software. Give example.
3. Define Application Software. Give example.
4. Define Utility Software? List any two System Utility functions.
5. Differentiate compilers and interpreters.
6. What is Machine Language?
7. What is Assembly Language?
8. What is Loader?
9. List basic tasks of a loader.
10.Define Algorithm.
11.Define flowcharts.
12.List any 4 symbols used in flow charts along with their purpose.
13.What is pseudocode?
14.List any two limitations of pseudocode.
15.What is Word Processor? Give example for Word Processors.
16.What is Spreadsheet Software? Give example for Spreadsheet Software.
17.What are image editors? Give example.
18.What is Database Management System? Give example for Database Management System.
19.What is Presentation Software? Give example for Presentation Software.
20.What is Desktop Publishing? Give example for Desktop Publishing Software.
21.What is Device Drivers.
22.What is Disk Management and Disk Cleanup.
23.What is Language Translators.
24.What is Operating System. Mention any two its Basic Functions.
25.What are the Disadvantages of Machine Languages.
26.What is Assembler.
27.Differentiate Absolute Loader and Relocating Loader.
28.Mention Any Four Advantages of High-level Languages.
29.Mention Any Four Featurs of Good Programming Language.
30.What is Linker. Differentiate Linker and Loader.
3-6 Marks Questions
1. Define Operating System. List and explain basic functions of an Operating System (6)
2. Write a note on
a. Device Drivers b. Language Translators (6)
3. What is System Utility? Explain any five functions of System Utility (6)
4. What is Application Software? Explain any two commonly used application software. (6)
5. List and explain functions of System Utilities. (6)
6. Write a note on
a. Word Processors (3)
b. Image Editors (3)
c. Presentation Software (3)
d. Desktop Publishing Software (3)
7. What are assemblers? List and explain different functions of Assemblers. (6)
8. List and explain the disadvantages machine level languages? (4)
9. List and explain the advantages high level languages? (6)
10.Briefly explain different phases of the Program Development Cycle (6)
11.Discuss flowcharts. List and explain the benefits of flowcharts (6)
12.Write an algorithm to display maximum of three numbers (4)
13.Write an algorithm to calculate the factorial of a number (4)
14.Discuss flowcharts. List and explain the limitations of flowcharts (6)
15.Discuss pseudocode. List and explain the advantages and limitations of pseudocode (6)
16.Explain the purpose of Pseudocode. List and explain keywords commonly used in pseudocode
(6)
17.Briefly explain general problem-solving strategies followed in problem solving aspects.(6)
18.List and Explain Features of Good Programming Language.
19.List and explain the disadvantages Assembly level languages?
20.Explain Fourth Generation Languages.
UNIT III
2 Marks Questions
1. Convert (153.513)8 to Binary
2. (BCA)16=()2=()10
3. Obtain the 1’s and 2’s Complements of the following binary numbers
a. 1010101
b. 000001
4. Obtain the 9’s and 10’s Complements of the following decimal numbers
a. 678
b. 896
5. Obtain the 9’s and 10’s Complements of the following decimal numbers
a. 341.23
b. 0.234
6. Obtain the 1’s and 2’s Complements of the following binary numbers
a. 1110.101
b. 101.001
7. Obtain the 9’s and 10’s Complements of the following decimal numbers
a. 1234
b. 7890
8. Convert (76.20)8 to binary and decimal.
9. Convert (11011011)2 to octal and Hexa decimal.
10.Convert (345)10 to octal and Hexa decimal.
11.Write Excess-3 and binary equivalent of (45)10
12.Write BCD and binary equivalent of (45)10
13.Write BCD and 2421 code of (345)10
37.4. Write the BCD and Excess-3 Codes for the following Decimal Numbers:
i) 74 ii) 257 iii) 3243 iv) 83.5 v) 234.12
UNIT-II
2 marks questions
17. What is meant by principle of duality? Write the dual of the given expression
F=(X+Y)(X+Y’)(X+Y+Z)
18. Write the truth table of OR gate and draw the logical diagram
19. Write the truth table and logic diagram of OR gate
20. What are Universal Gates?
21. Draw the logic circuit for F(X,Y,Z)=XY+X’Z’ using basic gate.
22. Draw the logic circuit for F(X,Y,Z)=(X+Y)’ using basic gate.
23. Define Sum term and Product term.
24. Write the general structure of 2 variables K-Map.
25. Write the general structure of 3 variables K-Map
26. Write the general structure of 4 variables K-Map
27. Define Pair,QUAD,OCTET in K-Map
29. Write the truth table of AND gate and draw the logical diagram.
30. Write the truth table and logic expression of NAND gate
Simplify the following using K-map and draw the logic Diagram for the simplified expression:
i) F(A, B, C) = Σ(1, 2, 5, 7) + Σ(0, 4, 6)
ii) F(A, B, C) = Σ(0, 1, 6, 7) + Σ(3, 4, 5)
iii) F(A, B, C, D) = Σ(1, 3, 4, 6, 8, 9, 11, 13, 15) + Σd(0, 2, 14)
PROGRAMMING IN C
UNIT –I
2MARKS
1) List any two important features of C
2) What are tokens? Give any two examples.
3) Give the structure of C program.
4) List steps involved in executing a C program
5) What are keywords? List any four keywords.
6) What are identifiers? Give example for a valid and invalid identifier name.
7) Differentiate keywords and identifiers.
8) List the rules to be followed for naming an identifier/variable.
9) What are constants? Give examples for integer constants.
10) Differentiate constants and variables.
11) Differentiate integer and real constants. Give example
12) Differentiate character and string constants.
13) List and specify the meaning of any four backslash character constants.
14) Provide the syntax for declaring a variable. Give an example.
15) What is initialization? Give an example.
16) What do you mean by symbolic constants? How to define them?
17) Provide the syntax of printf(). Give an example.
18) Provide the syntax of scanf(). Give an example.
19) List any four unformatted I/O functions available in C
20) List with use any four format codes used with scanf()/printf()
21) Specify the value of x after evaluating following
expression x=3+4-7*8/5%10;
22) Specify the value of x after evaluating following
expression
float x =1.5;
y=3
x=y/2+y*8/y-y+x/3;
1) List and explain arithmetic, logical and relational operators available in C (6)
2) List and explain a) conditional operator, b) short-hand assignment and c)
increment & decrement operators available in C (6)
3) Write a note on bitwise operators available in C (6)
4) Explain with example evaluation of arithmetic expression in C (6)
5) Explain precedence of arithmetic operators with the help of an example expression
(6)
6) Explain the concept of type conversion in C, Give examples (6)
7) Explain in brief implicit and explicit type conversion with example (6).
8) Explain different forms of if statement (6)
9) Explain nested if statement with the help of a program example (6)
10) Explain else..if ladder with the help of a program example (6)
11) Explain switch statement with syntax and a program example [6]
12) Explain while statement with syntax and example (6)
13) Explain do..while statement with syntax and example (6)
14) Explain for statement with syntax and example (6)
15) Explain the following: (6)
i. Nested loops
ii. Infinite loops
16) Explain the following mathematical function
a) floor() b) ceil() c)sqrt( ) d) abs( ) e) pow( ) f)log( )
17) What is meant by looping? Briefly describe the different forms of looping?
18) Explain ‘continue’ and ‘break’ statement with syntax and example.
19) Distinguish between
a. break and goto
b. continue and goto
20) Evaluate the following C expressions.[6]
Unit-III
2Marks
1) What is an array? List its types.
2) List any four advantages of arrays.
3) Differentiate one-dimensional and two-dimensional arrays
4) Write a statement that declares an integer array of 10 element size and
initializes it with values.
5) How to initialize a one-dimensional array in C. Give an example.
6) How to initialize a two-dimensional array in C. Give an example.
7) What is a string? How to declare a variable to hold string value in C?
8) What is the difference between reading string value using scanf(“%s”)
and gets() functions?
9) List any four-string handling functions available in C
10) List any four-character handling functions.
11) How to declare and initialize string variable?
12) What are the possible values that the function strcmp( ) can return?
What do they mean?
13) How to initialize a string array in C. Give an example.
14) Mention suitable string functions to do the following:
1. To find length of the string
2. To copy one string to another string
3. To add two strings
4. To reverse given string
15) What is the purpose of the following functions: Explain with syntax and example.
a) isalnum( ) b) isalpha( ) c) isupper( )
d)toupper( )
16) What is the purpose of the following functions: Explain with syntax and example.
i. a) strcat( ) b) strrev( )
ii. e) strcpy( ) f) strlen( )
17) What do you mean by an array of strings?
18) What are the different categories of functions?
19) What are library functions? Name any two library functions supported by C language
20) What is a function prototype? Give one reason when a function prototype is not
necessary
21) How a recursive function is different from an ordinary function?
22) What are actual and formal parameters?
23) List any two advantages of using functions?
24) Give the syntax used for declaring a function in C
25) Give the syntax used for defining a function in C
26) What are the actual and formal arguments?
27) How function returns value? Give example.
28) Differentiate function declaration and function definition.
29) List different categories of functions available in C
30) Give syntax and example of calling a function C.
31) What do you mean by nesting of functions? Give example.
32) What is a recursive function?
33) Write recursive function to calculate factorial of a given number.
4 to 6 marks questions
1) Explain one-dimensional array with the help of suitable code example [6].
2) Explain two-dimensional array with the help of suitable code example [6].
3) Explain the different ways available for the initialization of string variable [6].
4) Write a program to sort elements of an integer array [6].
5) Write a program to search for an element in an integer array [6].
6) Explain with example how to declare, initialize and use strings in C [6].
7) List and explain any five-string handling functions available in C [6]
8) List and explain any five-character handling functions available in C [6]
9) Explain with the help of a code example declaring, defining and calling a function in C
[6]
10) Explain with example function with no arguments and no return values [6]
11) Explain with example function with arguments and no return value [6]
12) Explain with example function with no arguments but a return value [6]
13) Explain with example functions with arguments and a return value [6)]
14) Write a note on a) nesting of functions b) recursive functions [6]
15) Differentiate:
a. automatic and static variables
b. formal and actual parameters
c. local and global variables
d. scope and visibility of variables
16) Explain any four character manipulating functions in C with syntax and example.
17) What are the different methods of inputting strings? Give examples.
18) What are the different methods of outputting strings? Give examples.
19) What is the purpose of the following functions: Explain with syntax and example.
a) isalnum( ) b) isdigit( )
c) isalpha( ) d) isupper( )
e) toupper( ) f) tolower( )
g) islower( ) h) isspace( )
20) Explain Elements of user defined functions with example.
UNIT – IV
2 Marks Question
1) What is pointer? Specify its use.
2) List any four advantages of pointers
3) Specify how to declare a pointer variable and initialization of it?
4) List any four rules to be followed when performing operations on pointer variable
5) What do you mean by scale factor in pointer increment?
6) List any two advantages of using functions?
7) Give the syntax used for declaring a function in C
8) Give the syntax used for defining a function in C
9) What are the actual and formal arguments?
10) How function returns value ? Give example.
11) Differentiate function declaration and function definition.
12) List different categories of functions available in C
13) Give syntax and example of calling a function C.
14) What do you mean by nesting of functions? Give example.
15) What is a recursive function?
16) Write recursive function to calculate factorial of a given number.
17) What is structure? Why it is required?
18) Give the general format used for defining a structure
19) Give the general format used for defining a union
20) How to Access individual members of structure? Give example.
21) What is union? How it is declared?
22) How does an append mode differ from a write mode?
23) What is a file? Name any two file processing activities.
23) How is a file declared?
How a file can be closed?
24)
Explain any 4 file related functions used in C.
25)
What are the different modes of opening a file in C?
26)
When a program is terminated, all the files used by it are automatically closed? Why
27)
is it then necessary to close a file during execution of the program?
28) List any four preprocessor directives.
29) What is Macro Substitution? Give example.
4 to 6 marks questions
1. Write which of these is a tautology or a fallacy with the help of truth table.
i) p˅ (ךp˄q) ii) (p˄q)˄ (ךp˄q)
2. Using truth table, show that (p˄q) => p and p => (p˅q) are both tautologies, where p
and q are any two statements.
3. Write the following statements in symbolic form and give their negations.
i) If he works hard, he will pass the examination.
ii) If it rains, he will not go for a walk.
4. Prove by means of truth table that, (p˄q) => (p˅q) is a tautology but (p˅q) => (p˄q) is
not.
5. With the help of truth table, prove that p => (q˄r) ≡ (p=>q) ˄ (p=>r)
6. Prove by means of truth table that, p q = (p→ q) ˄ (q→ p)
7. Show the following implications:
i. (p˄q) => (p→q)
ii. p => (q→p)
8. Show the following equivalences:
i. p→(q→p) ךp→ (p→q)
ii. p →(q˅r) (p→q) ˅(p→r)
9. Prove by means of truth table that, (ךp→q) = p˄ ךq
10. A={1,2,3} B={1,2,5,7,9} Write A-B, B-A, A+B, A∪B, A∩B.
11. A={1} B={a,b} C={2,3} write AXB, BXA, A2, B2, A2XB B2XA, AXBXC, C2XA
12. A={x/ x is an integer and 0 ≤ 𝑥 ≤ 5 }, B={3,4,5,17} and C={1,2,3} Find
i. A∪B ii. A∩B iii. A-B iv. A-C iv. A∩C
13. A={α, β } and B={1, 2, 3} Find A2, B2, A2 X B, A X B and B X A
14. A={3,4,5,17} B={1,2,3} C={x/X is an integer and 0 ≤ 𝑥 ≤ 5} write
A∪B, A∪C, B∪C, B-C, A-C, B∩C.
15. Let X = {1,2,3,4} and R = {(x,y) | x>y} Draw the graph of R and give its matrix.
16. R={<1,1> <1,2>, <1,4>, <2,1>, <2,2>, <2,3>, <3,2>, <3,3>, <4,2>, <4,4>} Construct
relation matrix of R and draw digraph of R
17. R={(1,1), (1,2), (1,4), (2,1), (2,2), (2,3), (3,2), (3,3), (4,2), (4,4)} Construct relation
matrix of R and draw digraph of R
18. Let X={1,2,3,….,7} and R={<x,y>|x-y is divisible by 3}, Show that R is an equivalence
relation.
19. Let X={ball,bed,dog,let,egg} & R={<x,y>|x,y∈X ∧ xRyis x and y contain some common
letter}. Prove that R is a compatibility relation
20. R={(1,2), (3,4), (2, 2)} S={(4,2), (2,5), (3,1), (1,3)} Write R ⃘ S, R ⃘ R , S ⃘ S, S ⃘R and R
⃘(S ⃘R)
21. Let X={1,2,3,….,7} and R={<x,y>|x-y is divisible by 3}, Draw the graph of the relation.
22. . Given the relation matrices
Unit-II
24. How many ways are there to select five players from a 10-member tennis team
to make a trip to a match at another college?
25. Let S = {1, 2, 3, 4, 5}. List all the 3-permutations of S.
26. Let S = {1, 2, 3, 4, 5}. List all the 3-combinations of S.
Questions Carrying 4 or more marks.
1. Draw the Hasse diagram of the set A, under the partial ordering relation “divides”
and indicate those which are totally ordered.
A = {1,2,3,6,12}
2. Let X = {2,3,6,12,24,36} and the relation <= be such that x ≤ y, if x divides y. Draw
the Hasse diagram of (X, ≤)
3. Let f(x)=x+2, g(x)=x-2 and h(x)=3x for x∈R, R is a set of real numbers. Find
f ⃘ g, f ⃘ f, g ⃘ g, g ⃘ f and f ⃘(h ⃘g)
4. Define Surjective, injective and Bijective functions with example.
5. Let x={1,2,3} f, g, h and s are the functions from X to X given by
f={(1,2), (2,3),(3,1)} h={(1,1), (2,2), (3,1)}
g={(1,2), (2,1) , (3,3)} s={(1,1), (2,2), (3,3)} Find f ⃘ g, g ⃘ f, s ⃘ s,
f ⃘ h ⃘ g, s ⃘ g and f ⃘ s
6. Draw the Hasse diagram of the set A, under the partial ordering relation “divides”
and indicate those which are totally ordered.
A = {1,2,3,6,12}
7. Let X = {2,3,6,12,24,36} and the relation <= be such that x ≤ y, if x divides y. Draw
the Hasse diagram of (X, ≤)
8. Let f(x)=x+2, g(x)=x-2 and h(x)=3x for x∈R, R is a set of real numbers. Find
f ⃘ g, f ⃘ f, g ⃘ g, g ⃘ f and f ⃘(h ⃘g)
9. Define Surjective, injective and Bijective functions with example.
10. Let x={1,2,3} f, g, h and s are the functions from X to X given by
f={(1,2), (2,3),(3,1)} h={(1,1), (2,2), (3,1)}
g={(1,2), (2,1) , (3,3)} s={(1,1), (2,2), (3,3)} Find f ⃘ g, g ⃘ f, s ⃘ s,
f ⃘ h ⃘ g, s ⃘ g and f ⃘ s
1
11. Show that functions f(x)=x3 and g(x)=𝑥 3 for x𝜀 R are inverse of one another.
12. How many different license plates can be made if each plate contains a sequence of
three uppercase English letters followed by three digits (and no sequences of letters are
prohibited, even if they are obscene)?
13. Draw the Hasse diagram of the set A, under the partial ordering relation “divides”
and indicate those which are totally ordered.
A = {1,2,3,6,12}
14. Let X = {2,3,6,12,24,36} and the relation <= be such that x ≤ y, if x divides y. Draw
the Hasse diagram of (X, ≤)
15. Let f(x)=x+2, g(x)=x-2 and h(x)=3x for x∈R, R is a set of real numbers. Find
f ⃘ g, f ⃘ f, g ⃘ g, g ⃘ f and f ⃘(h ⃘g)
16. Define Surjective, injective and Bijective functions with example.
17. Let x={1,2,3} f, g, h and s are the functions from X to X given by
f={(1,2), (2,3),(3,1)} h={(1,1), (2,2), (3,1)}
g={(1,2), (2,1) , (3,3)} s={(1,1), (2,2), (3,3)} Find f ⃘ g, g ⃘ f, s ⃘ s,
f ⃘ h ⃘ g, s ⃘ g and f ⃘ s
1
18. Show that functions f(x)=x3 and g(x)=𝑥 3 for x𝜀 R are inverse of one another.
19. How many different license plates can be made if each plate contains a sequence of
three uppercase English letters followed by three digits (and no sequences of letters are
prohibited, even if they are obscene)?
20. Suppose that either a member of the mathematics faculty or a student who is a
mathematics major is chosen as a representative to a university committee. How many
different choices are there for this representative if there are 37 members of the
mathematics faculty and 83 mathematics majors and no one is both a faculty member
and a student?
21. How many bit strings of length eight either start with a 1 bit or end with the two bits
00?
22. A computer company receives 350 applications from computer graduates for a job
planning a line of new Web servers. Suppose that 220 of these applicants majored in
computer science, 147 majored in business, and 51 majored both in computer science
and in business. How many of these applicants majored neither in computer science nor
in business?
23. There are 18 mathematics majors and 325 computer science majors at a college. In how
many ways can two representatives be picked so that one is a mathematics major and
the other is a computer science major?
24. How many ways are there to select a first-prize winner, a second-prize winner, and a
third-prize winner from 100 different people who have entered a contest?
25. A group of 30 people have been trained as astronauts to go on the first mission to Mars.
How many ways are there to select a crew of six people to go on this mission (assuming
that all crew members have the same job)?
26. A multiple-choice test contains 10 questions. There are four possible answers for each
question. A) In how many ways can a student answer the questions on the test if the
student answers every question? B) In how many ways can a student answer the
questions on the test if the student can leave answers blank?
27. Let S = {1, 2, 3, 4, 5}. List all the 3-permutations and 3-combinations of S.
Unit-III
Questions carrying 2 marks
13. Find the number of vertices, the number of edges, and the degree of each vertex in
the given undirected graph.
15. When do you say the graphs are isomorphic? Give an example.
16. Define an adjacency matrix.
17. Define an incidence matrix.
18. Define connected graph with an example.
19. Define disconnected graph with an example.
20. Define strongly and weakly connected graph.
21. What is a Euler circuit? Give an example
22. Define Euler path with an example.
23. Define a Hamilton path. Give an example
24. Define the chromatic number of a graph
25. What is meant by colouring a graph?
26. Find the chromatic number of the given graph
2. What are the degrees and neighbourhood of the vertices in graph displayed?
3. Find the in-degree and out degree of each vertex in the graph G with directed edges
as shown in the figure?
6. Write adjacency list and adjacency matrix to describe the simple graph given in the
figure (6 marks)
7. Represent the directed graph shown in the figure by listing all the vertices that are
the terminal vertices of edges starting at each vertex of the graph.
17. Represent the graph shown in the figure with an incidence matrix
18. Represent the pseudograph shown in the figure using an incidence matrix.
19. Show that the graphs G = (V , E) and H = (W, F ), displayed in the given figure, are
isomorphic.
20. Are the graphs shown in the figure G1 and G2 connected? Verify
21. Does each of these lists of vertices form a path in the following graph? Which paths
are simple? Which are circuits? What are the lengths of those that are paths?
(a) a, e, b, c, b (b) a, e, a, d, b, c, a
(c) e, b, a, d, b, e (d) c, b, d, a, e, c
22. Are the directed graphs G and H shown in Figure strongly connected? Are they
weakly connected?
23. Which of the undirected graphs in Figure have an Euler circuit? Of those that do
not, which have an Euler path? (any one figure)
24. Which of the directed graphs in Figure have an Euler circuit? Of those that do
not, which have an Euler path? (any one figure)
25. Which of the simple graphs in Figure have a Hamilton circuit or, if not, a Hamilton
path? (any one figure)
26. What are the chromatic numbers of the graph G and H in the figure?
29. Construct the dual graph for the map. Then find the number of colors needed to
color the map so that no two adjacent regions have the same color.
15. Construct the dual graph for the map. Then find the number of colors needed to
color the map so that no two adjacent regions have the same color.
16. How do you convert a directed tree into a binary tree? Explain with a diagram.
17. Convert the following trees into a binary tree.
1 7
2 3 8 9 10
4 5 6 11 12 13
2 3 4 5
6 7 8 9 10 11 12
2 3 4 5
6 7 8 9 10 11
20. Discuss the significance of Russell’s Paradox in the context of set theory and logic.
21. How is an ordered pair different from set of two objects?
22. Define and provide an example of an ordered set. Explain how it differs
from anunordered set.
23. Give the formal definition of language. Give some languages over the alphabet
A, ifA = {a, b, c}.
24. Grammar for the language L needs to be constructed. If L = {aaaa, aabb, bbaa,
bbbb} and T = {a, b}, give the set of productions, when set of non-terminals N is
(i) N = {S}and (ii) N = {S, A}.
25. Give a real-world example, where finite automata can be used.
26. Describe the basic concept of a finite state machine with an example.
27. Illustrate with an example how finite state machines can be used as
languagerecognizers.
28. Provide an example of two FSMs that are equivalent and explain the reasoning
behindtheir equivalence.
29. Differentiate between Type-0 and Type-3 grammars, with examples.
30. Give the state diagram of the finite state automata of a device that compares
two binary numbers to determine whether they are equal, or which of the
two is larger.Consider the input alphabet as {00, 01, 10, 11} and output
alphabet as {EQUAL, LARGER, SMALLER}.
31. Design an NFA that accepts strings over the alphabet {0,1} that end with three
consecutive zeros, contain at least one occurrence of the substring 10, and
have aneven number of 1s. Provide a state diagram and provide examples of
accepted andrejected strings.
32. Design a simple NFA that recognizes passwords consisting of at least one digit
andone letter. Describe how the NFA functions.
33. Explain the importance of language hierarchies (e.g., Chomsky
hierarchy) indesigning compilers and interpreters.
34. Consider the language L = {anbn | n ≥ 1}, where strings consist of equal numbers
of'a's followed by 'b's. Explain a multi-phase approach that ensures you can
verify thisbalance without backtracking or using additional storage. How would
the system know when to stop reading 'a's and start reading 'b's?
35. Represent the following finite state machine diagrammatically, with the
help ofdirected graph.