Mr. Chidanand S. Kusur, Asst. Professor, Department of Computer Science and Engineering, BLDEAs V. P. Dr. P. G. H. College of Engineering and Technology, Vijayapur-03, Karnataka, India. ~ send your feedback to cs.kusur@gmail.com
About Me
Sunday, 31 March 2019
Thursday, 7 March 2019
Tuesday, 26 February 2019
Assignment-1 for II Sem. 'A' division students "C for Problem Solving"
What is computer?
Computer is an electronic computing device. It receives raw data as an input, process and generates desired result as an output. If necessary, input and output can be stored in computer's secondary memory for future use.
List and explain the features/characteristics of computers in brief.
Speed
Accuracy
Reliability
Versatility
Diligence and
Programmability
List the applications of computers in brief.
What are input devices? List the most commonly used input devices.
What are output devices? List the most commonly used output devices.
Draw the 'Block Diagram of a Computer' or 'Structure of a Computer' neatly and explain all its parts in brief.
List and explain in brief about 'Types of Computers'.
List and explain in brief about 'Generations of Computers'.
What is computer network? List its advantages.
List and explain the components used for computer network.
List and explain the types of computer networks. (LAN, MAN, WAN).
What is network topology? List and explain the advantages of each topology with neat diagram.
NOTE: Writing answers for following questions in Assignment Book is compulsory.
Write 'STRUCTURE OF C PROGRAM'. Explain all its components with programming example.
What are C-tokens? List and explain in brief.
What is variable? Discuss its declaration and initialization with syntax and examples.
What are formatted I/O functions?List and discuss with syntax and examples.
What is typecast (type conversion)?Discuss different types with examples.
Practice mathematical expression to C expressions.
List and discuss operators supported by C language.
Design and Develop C Programs for following.
To display Hello World message.
To display yours residential address.
To print the message "Press any three keys to know my name" to work accordingly.
To find Square and Cube of a number.
To find area and perimeter of rectangle.
To convert temperature reading from Fahrenheit to Celsius.
To find area and circumference of a circle.
To find area of triangle by reading its breadth and height.
To find area of triangle by reading its 3 sides.
To swap two values using temporary memory.
To swap two values without using temporary memory.
To extract last digit of entered number.
To find simple interest.
Computer is an electronic computing device. It receives raw data as an input, process and generates desired result as an output. If necessary, input and output can be stored in computer's secondary memory for future use.
List and explain the features/characteristics of computers in brief.
Speed
Accuracy
Reliability
Versatility
Diligence and
Programmability
List the applications of computers in brief.
What are input devices? List the most commonly used input devices.
What are output devices? List the most commonly used output devices.
Draw the 'Block Diagram of a Computer' or 'Structure of a Computer' neatly and explain all its parts in brief.
List and explain in brief about 'Types of Computers'.
List and explain in brief about 'Generations of Computers'.
What is computer network? List its advantages.
List and explain the components used for computer network.
List and explain the types of computer networks. (LAN, MAN, WAN).
What is network topology? List and explain the advantages of each topology with neat diagram.
NOTE: Writing answers for following questions in Assignment Book is compulsory.
Write 'STRUCTURE OF C PROGRAM'. Explain all its components with programming example.
What are C-tokens? List and explain in brief.
What is variable? Discuss its declaration and initialization with syntax and examples.
What are formatted I/O functions?List and discuss with syntax and examples.
What is typecast (type conversion)?Discuss different types with examples.
Practice mathematical expression to C expressions.
List and discuss operators supported by C language.
Design and Develop C Programs for following.
To display Hello World message.
To display yours residential address.
To print the message "Press any three keys to know my name" to work accordingly.
To find Square and Cube of a number.
To find area and perimeter of rectangle.
To convert temperature reading from Fahrenheit to Celsius.
To find area and circumference of a circle.
To find area of triangle by reading its breadth and height.
To find area of triangle by reading its 3 sides.
To swap two values using temporary memory.
To swap two values without using temporary memory.
To extract last digit of entered number.
To find simple interest.
Monday, 25 February 2019
Wit and Wisdom: Tenali Rama Story
Tenali Rama is well known a poet, scholar, thinker and a Special Adviser in the court of Sri Krishnadevaraya
Click on me
Click on me
Tuesday, 19 February 2019
How to pass examination without studying? ! Sadhguru
How to pass examination without studying?
Sadhguru answers a student's question on whether we can pass exams without studying, and explains what the whole point of pass and fail is in the first place.
Click on me to watch the video.
Sadhguru answers a student's question on whether we can pass exams without studying, and explains what the whole point of pass and fail is in the first place.
Click on me to watch the video.
Sunday, 17 February 2019
GUIDELINES FOR THE PREPARATION OF B.E./B. Tech. PROJECT REPORTS BY VTU, BELAGAVI
Project reports should be typed neatly only on one side of the paper with 1.5 or double line spacing on a A4 size bond paper (210 x 297 mm).
The margins should be: Left – 1.25″, Right – 1″, Top and Bottom – 0.75″.
The total number of reports to be prepared are
One copy to the department
One copy to the concerned guide(s)
Two copies to the sponsoring agency
One copy to the candidate.
One copy to the concerned guide(s)
Two copies to the sponsoring agency
One copy to the candidate.
3. Before taking the final printout, the approval of the concerned guide(s) is mandatory and suggested corrections, if any, must be incorporated.
4. For making copies dry tone Xerox is suggested.
5.Every copy of the report must contain
Inner title page (White)
Outer title page with a plastic cover
Certificate in the format enclosed both from the college and the organization where the project is carried out.
Certificate in the format enclosed both from the college and the organization where the project is carried out.
An abstract (synopsis) not exceeding 100 words, indicating salient features of the work.
(NB: four copies of the abstract are to be submitted to the Department on the date of submission separately)
6.The organization of the report should be as follows
Inner title page
Abstract or Synopsis
Acknowledgments
Table of Contents
List of table & figures (optional)
Usually numbered in roman
Chapters (to be numbered in Arabic) containing Introduction-, which usually specifies the scope of work and its importance and relation to previous work and the present developments, Main body of the report divided appropriately into chapters, sections and subsections.
The chapters, sections and subsections may be numbered in the decimal form for e.g. Chapter 2, sections as 2.1, 2.2 etc., and subsections as 2.2.3, 2.5.1 etc.
The chapter must be left or right justified (font size 16). Followed by the title of chapter centered (font size 18), section/subsection numbers along with their headings must be left justified with section number and its heading in font size 16 and subsection and its heading in font size 14. The body or the text of the report should have font size 12.
Inner title page
Abstract or Synopsis
Acknowledgments
Table of Contents
List of table & figures (optional)
Usually numbered in roman
Chapters (to be numbered in Arabic) containing Introduction-, which usually specifies the scope of work and its importance and relation to previous work and the present developments, Main body of the report divided appropriately into chapters, sections and subsections.
The chapters, sections and subsections may be numbered in the decimal form for e.g. Chapter 2, sections as 2.1, 2.2 etc., and subsections as 2.2.3, 2.5.1 etc.
The chapter must be left or right justified (font size 16). Followed by the title of chapter centered (font size 18), section/subsection numbers along with their headings must be left justified with section number and its heading in font size 16 and subsection and its heading in font size 14. The body or the text of the report should have font size 12.
The figures and tables must be numbered chapter wise for e.g.: Fig. 2.1 Block diagram of a serial binary adder, Table 3.1 Primitive flow table, etc.
The last chapter should contain the summary of the work carried, contributions if any, their utility along with the scope for further work.
Reference OR Bibliography: The references should be numbered serially in the order of their occurrence in the text and their numbers should be indicated within square brackets for e.g. [3]. The section on references should list them in serial order in the following format.
For textbooks – A.V. Oppenheim and R.W. Schafer, Digital Signal Processing, Englewood, N.J., Prentice Hall, 3 Edition, 1975.
For papers – Devid, Insulation design to combat pollution problem, Proc of IEEE, PAS, Vol 71, Aug 1981, pp 1901-1907.
Only SI units are to be used in the report. Important equations must be numbered in decimal form for e.g.
V = IZ ………. (3.2)
All equation numbers should be right justified.
The project report should be brief and include descriptions of work carried out by others only to the minimum extent necessary. Verbatim reproduction of material available elsewhere should be strictly avoided. Where short excerpts from published work are desired to be included, they should be within quotation marks appropriately referenced.
Proper attention is to be paid not only to the technical contents but also to the organization of the report and clarity of the expression. Due care should be taken to avoid spelling and typing errors. The student should note that report-write-up forms the important component in the overall evaluation of the project
Hardware projects must include: the component layout, complete circuit with the component list containing the name of the component, numbers used, etc. and the main component data sheets as Appendix. At the time of report submissions, the students must hand over a copy of these details to the project coordinator and see that they are entered in proper registers maintained in the department.
Software projects must include a virus free disc, containing the software developed by them along with the read me file. Read me file should contain the details of the variables used, salient features of the software and procedure of using them: compiling procedure, details of the computer hardware/software requirements to run the same, etc. If the developed software uses any public domain software downloaded from some site, then the address of the site along with the module name etc. must be included on a separate sheet. It must be properly acknowledged in the acknowledgments.
Sponsored Projects must also satisfy the above requirements along with statement of accounts, bills for the same dully attested by the concerned guides to process further, They must also produce NOC from the concerned guide before taking the internal viva examination.
The reports submitted to the department/guide(s) must be hard bounded, with a plastic covering.
Separator sheets, used if any, between chapters, should be of thin pape
Thursday, 14 February 2019
Two Soft Copies of "Design and Analysis of Algorithms" books in pdf format by Lavitin and Sahani
Click on below link to get soft of "Design and Analysis of Algorithms" by Lavitin
Design and Analysis of Algorithms by Lavitin
Click on below link to get soft of "Design and Analysis of Algorithms" by Sahani
Design and Analysis of Algorithms by Sahani
Design and Analysis of Algorithms by Lavitin
Click on below link to get soft of "Design and Analysis of Algorithms" by Sahani
Design and Analysis of Algorithms by Sahani
Wednesday, 13 February 2019
Design and Analysis of Algorithms: Assignment-1 on Module 1 and Module 2
Module 1:
What is an algorithm? List and explain in brief about its characteristics.
Discuss three techniques to find GCD of two integers in brief.
Discuss the steps involved in "Algorithm design and analysis process" with neat flowchart.
Discuss the "Basic Asymptotic Efficiency Classes".
(constant, logarithmic, linear, linearithmic, quadratic, cubic, exponential, factorial)
What are asymptotic notations? List and discuss with definition, graph and examples.
Write the general pan to find time complexity of non-recursive algorithms.
Write non recursive algorithm for the following problems to find their time complexity.
1. To find largest of 'n' numbers.
2. To check list of array elements for the element uniqueness.
3. To multiply two matrices.
4. To know the number of binary digits in n's binary representation.
Write the general pan to find time complexity of recursive algorithms.
Write recursive algorithm for the following problems to find their time complexity.
1. To find factorial of 'n'.
2. To solve Tower of Hanoi puzzle.
3. To know the number of binary digits in n's binary representation.
What is space complexity?Give example.
Module 2:
1. Discuss 'Divide and Conquer Algorithm Design Technique' with its general plan and example.
2. Write non-recursive algorithm to implement Binary Search technique and find its time complexity.
3. Write recursive algorithm to implement Binary Search technique.
4. Write recursive algorithm to find maximum and minimum from given list of array element A[1-n] and find its time complexity.
5. Discuss 'Merge Sort Technique' with example.
6. Write algorithm to implement 'Merge Sort' and Find its time complexity.
What is an algorithm? List and explain in brief about its characteristics.
Discuss three techniques to find GCD of two integers in brief.
Discuss the steps involved in "Algorithm design and analysis process" with neat flowchart.
Discuss the "Basic Asymptotic Efficiency Classes".
(constant, logarithmic, linear, linearithmic, quadratic, cubic, exponential, factorial)
What are asymptotic notations? List and discuss with definition, graph and examples.
Write the general pan to find time complexity of non-recursive algorithms.
Write non recursive algorithm for the following problems to find their time complexity.
1. To find largest of 'n' numbers.
2. To check list of array elements for the element uniqueness.
3. To multiply two matrices.
4. To know the number of binary digits in n's binary representation.
Write the general pan to find time complexity of recursive algorithms.
Write recursive algorithm for the following problems to find their time complexity.
1. To find factorial of 'n'.
2. To solve Tower of Hanoi puzzle.
3. To know the number of binary digits in n's binary representation.
What is space complexity?Give example.
Module 2:
1. Discuss 'Divide and Conquer Algorithm Design Technique' with its general plan and example.
2. Write non-recursive algorithm to implement Binary Search technique and find its time complexity.
3. Write recursive algorithm to implement Binary Search technique.
4. Write recursive algorithm to find maximum and minimum from given list of array element A[1-n] and find its time complexity.
5. Discuss 'Merge Sort Technique' with example.
6. Write algorithm to implement 'Merge Sort' and Find its time complexity.
Tuesday, 5 February 2019
Important C Programs to be practice for main examination of VTU
Write C programs for the following.
to calculate simple interest.
to find largest of three numbers.
to find area and perimeter of rectangle.
to find area of triangle by reading three sides of it.
to swap two values using temporary variable.
to swap two values without using temporary variable.
to check, whether the number NUM is palindrome or not.
to sort N values using bubble sort technique.
to implement linear search technique.
to implement binary search technique.
to find max and min of N numbers.
to find SUM and AVERAGE of N values.
Calculate area of circle, rectangle and triangle by providing menu options i.e. by using switch.
C program to simulate simple calculator using switch statement.
to find factorial of N
to print multiple table of N
to swap two values using pointers.
to find standard deviation using pointers.
to read and display N students information using arrays of structure.
to calculate simple interest.
to find largest of three numbers.
to find area and perimeter of rectangle.
to find area of triangle by reading three sides of it.
to swap two values using temporary variable.
to swap two values without using temporary variable.
to check, whether the number NUM is palindrome or not.
to sort N values using bubble sort technique.
to implement linear search technique.
to implement binary search technique.
to find max and min of N numbers.
to find SUM and AVERAGE of N values.
Calculate area of circle, rectangle and triangle by providing menu options i.e. by using switch.
C program to simulate simple calculator using switch statement.
to find factorial of N
to print multiple table of N
to swap two values using pointers.
to find standard deviation using pointers.
to read and display N students information using arrays of structure.
Module Wise Important Questions to be practice for main examination of VTU: C programming for Problem Solving
Module-1
Explain the “Structure of a
computer” with a neat block diagram.
List and discuss in brief about input devices.List and discuss in brief about output devices.
Discuss the “Generations of Computers”
List and discuss in brief about Types of Computers.
What is Computer Network? List its advantages.
Discuss different "Network Topology" with neat diagrams.
Discuss the structure of C program with programming example.
What are C tokens? List and discuss in brief.
What are data types? List and discuss with range of values supported by them.
What are identifiers? Write rules for defining identifiers with examples for valid and invalid identifiers.
What are formatted I/O functions? Discuss with syntax and examples.
What is an operator? List the different operators supported by C language.
Discuss the following operators with examples.
Arithmetical operators,
Relational operators,
Logical operators,
Increment and Decrement operators,
Assignment operators,
conditional operator,
bitwise operators and
special operators.
What is precedence and associativity of an operator? Discuss with examples.
What is typeconversion? Discuss the implicit and explicit type conversion with examples.
Module-2
What are conditional (decision making or selection) statements?List and discuss with syntax, flowchart and programming examples.
simple if
if else
nested if
else if ladder
switch
What are loop statements? List and discuss with syntax, flowchart and programming examples.
while
do while
for
What are jump statements? List and discuss with syntax, flowchart and programming examples.
break
continue
goto
return
exit
Module-3
What is one-dimensional array? Discuss its declaration and initialization with syntax and examples.
What is two-dimensional array? Discuss its declaration and initialization with syntax and examples.
What is string? Discuss its declaration and initialization with syntax and examples.
Discuss string handling(manipulation) functions with syntax and examples.
strlen
strcpy
strncpy
strcat
strncat
strcmp
strncmp
strlwr
strupr
strrev
Module-4
Discuss the three elements of user defined functions with syntax and examples.
What are actual and formal parameters? Give examples.
Discuss the different categories of functions with programming example for each category.
category 1: Functions with no arguments and no return value.
category 2: Functions with no arguments and return value.
category 3: Functions with arguments and no return value.
category 4: Functions with arguments and no return value.
Discuss the parameter passing techniques with programming examples.
call by value (pass by value)
call by reference(call/pass by address)
Write function to swap two values. (call by reference)
What is recursive function? Give programming example.
List and discuss storage classes used in C.
automatic or local,
global,
static,
register
Module-5
What is structure?Write syntax and examples for defining structures, defining structure variables and initializing structure variables.
Discuss different ways to define structure variables with examples.
What is array of structure?Give programming example.
What is nested structure? Give programming example.
What is typedef?Explain with syntax and examples.
Write C program to read and display N students information (RNo, Name, Total and Grade) using arrays of structure.
What is pointer?Discuss its declaration and initialization with syntax and examples.
What is dynamic memory allocation?Discuss the different memory allocation functions with syntax and examples.
What are preprocessors?List and discuss three types of pre processors with examples.
Macro substitution directives.
File inclusion directives.
Compiler control directives.
What is dynamic memory allocation?Discuss the different memory allocation functions with syntax and examples.
What are preprocessors?List and discuss three types of pre processors with examples.
Macro substitution directives.
File inclusion directives.
Compiler control directives.
Model Question Papers of C programming for Problem Solving by VTU
1. Click on below link to get First Model Question Paper given by VTU
CPS Model Question Paper1
2. Click on below link to get Second Model Question Paper given by VTU
CPS Model Question Paper2
CPS Model Question Paper1
2. Click on below link to get Second Model Question Paper given by VTU
CPS Model Question Paper2
Monday, 31 December 2018
Questions to be practice for Third I.A. CPS I Sem. G Division.
- Discuss elements of user defined functions with examples.
- Discuss the categories of functions with examples.
- What is recursive function? Write recursive function to generate first N fibonacci numbers.
- What are actual and formal parameters? Give Examples.
- Discuss the differences between call by value and call by reference with examples.
- Discuss the different ways to define structure and structure variables with examples.
- What is structure? Discuss the definition of structure, declaration and initialization of structure variable with syntax and examples.
- Discuss the nested structure and typedef with examples.
- What is pointer? Discuss its declaration and initialization with syntax and examples.
- Write C program to read and display N students information (Roll No, Name, USN and Marks) using array of structure.
- Write user defined function isprime(n) that read n and return 1 if it is prime number; otherwise 0.
- Write function to swap two variables using call by reference method.
- Write C program to find standard deviation of n floating point numbers using pointers.
- Write a C program to sort N values using user defined function.
Friday, 28 December 2018
Viva Voce Questions for CPL Lab. ( C langauage Lab.), VTU Belagavi. First year Engineering Course.
What is computer?
Name some input and output devices.
What is CPU?
Name types of memories.
Tell me about computer generations.
Can you name the types of computers.
What is computer network?
Can you name components used for computer network.
Name, the types of networks.
What is network topology? Name.
Who is the father of computer?
Who is the developer of C language?
List the types of computer languages.
What is algorithm?
What us flowchart?
What is pseudocode?
What is stdio.h?
What is void?
What are data types?
What is variable?
What is typecast?
What is computer program?
What are c tokens?
What are formatted I/O functions?
What are unformatted I/O functions?
Name the types of operators supported by C language.
What are bitwise operators?
Difference between increment and decrement operator.
Name decision making statements supported by c language.
Name loop statements supported by c language.
Difference between while and do while.
Difference between break and continue.
What is an array?
What are drawbacks of array?
Types of arrays.
What is bubble sort?
What is leap year?
What is function?
Types of functions.
Actual and formal parameters.
Categories of functions.
difference between call by value and call by reference.
What is recursive function?
What is structure?
Arrays of structures.
What is pointer?
What is dynamic memory allocation?
What are pre processors?
Name some input and output devices.
What is CPU?
Name types of memories.
Tell me about computer generations.
Can you name the types of computers.
What is computer network?
Can you name components used for computer network.
Name, the types of networks.
What is network topology? Name.
Who is the father of computer?
Who is the developer of C language?
List the types of computer languages.
What is algorithm?
What us flowchart?
What is pseudocode?
What is stdio.h?
What is void?
What are data types?
What is variable?
What is typecast?
What is computer program?
What are c tokens?
What are formatted I/O functions?
What are unformatted I/O functions?
Name the types of operators supported by C language.
What are bitwise operators?
Difference between increment and decrement operator.
Name decision making statements supported by c language.
Name loop statements supported by c language.
Difference between while and do while.
Difference between break and continue.
What is an array?
What are drawbacks of array?
Types of arrays.
What is bubble sort?
What is leap year?
What is function?
Types of functions.
Actual and formal parameters.
Categories of functions.
difference between call by value and call by reference.
What is recursive function?
What is structure?
Arrays of structures.
What is pointer?
What is dynamic memory allocation?
What are pre processors?
Sunday, 16 December 2018
Thursday, 13 December 2018
Tips to score more marks in VTU Examinations (Engineering)
Dear students,
You are clever and intelligent, do not loose your confidence. Yes, you can do well in exams.
Move towards examination hall with positive thoughts in such a way that, this time I do well.
Your's one positive thought helps you lot.
Be happier on examination day.
Be cool, try to feel weight less...be calm and cool in all situations...do not be over confident...
Move towards exam hall with all necessary things like Hall Ticket, 2 Dark Blank Ink Pens, Calculator.
Be independent; do not depend on others for asking pen, pencil, rubber, scale, etc.
Be well dressed i.e. formal.
Do prayer....before coming to exam; as well as before answering questions...in your peaceful soul....
Better; attempt that question first, in which you are perfect....
Very important is that, write question number correctly.
Underline important points in your answer.
Highlight the important word.
Give more examples.
Quality points are more important than quantity.
We need to have the habit of increasing quantity of quality; that comes by practice.
Wherever necessary, draw figure..
For every question; one page answer is compulsory.
For 10 marks minimum 2 to 3 pages (front and back)
Yours signature and supervisor signature on Answer booklet is compulsory...
Handwriting must be readable.....
Good luck....
All the best...
Chidanand S. Kusur
Asst. Prof., Dept. of CSE
BLDEA's CET, Vijayapur-03.
cs.kusur@gmail.com
9739762682
You are clever and intelligent, do not loose your confidence. Yes, you can do well in exams.
Move towards examination hall with positive thoughts in such a way that, this time I do well.
Your's one positive thought helps you lot.
Be happier on examination day.
Be cool, try to feel weight less...be calm and cool in all situations...do not be over confident...
Move towards exam hall with all necessary things like Hall Ticket, 2 Dark Blank Ink Pens, Calculator.
Be independent; do not depend on others for asking pen, pencil, rubber, scale, etc.
Be well dressed i.e. formal.
Do prayer....before coming to exam; as well as before answering questions...in your peaceful soul....
Better; attempt that question first, in which you are perfect....
Very important is that, write question number correctly.
Underline important points in your answer.
Highlight the important word.
Give more examples.
Quality points are more important than quantity.
We need to have the habit of increasing quantity of quality; that comes by practice.
Wherever necessary, draw figure..
For every question; one page answer is compulsory.
For 10 marks minimum 2 to 3 pages (front and back)
Yours signature and supervisor signature on Answer booklet is compulsory...
Handwriting must be readable.....
Good luck....
All the best...
Chidanand S. Kusur
Asst. Prof., Dept. of CSE
BLDEA's CET, Vijayapur-03.
cs.kusur@gmail.com
9739762682
Assignment 3: C Programming for Problem Solving (CPS) I Sem G Div.
Questions on Functions
1. What is function? write its advantages and give examples.
2.Discuss the elements of user defined functions with example.
3. Discuss the categories of functions.
4. What are actual and formal parameters? Give examples.
5. What are parameter passing mechanism? Discuss the types. (call by value and call by reference)
with examples.
6. What is recursive example? Write recursive function to find factorial of N.
7. Discuss storage classes used in C with examples. (auto,global,static,register)
Write functions for following.
1. Function to find square of a number.
2. Function to find factorial of 'n'.
4. Write function named isprime(n) that return 1 if number is prime; otherwise, 0
5. Function to find length of a string.
6. Function to find largest of two numbers.
7. Function to find largest of N numbers.
8. To sort N numbers is ascending order.
Monday, 19 November 2018
Assignment-3 : Unix and Shell Programming
1. Discuss ordinary and environment variables with examples.
2. Discuss .profile with example.
3. Discuss the here document (<<) and trap command with examples.
4. Explain set and shift commands used in Unix to manipulate positional parameters.
5. Discuss the following Unix commands (filters) with syntax and examples.
cut, paste, head, tail
6. Write differences between hard link and soft link.
7. Discuss the sort command with syntax, options and examples.
8. Discuss umask and default file permissions with examples.
9. Discuss two special files /dev/null and /dev/tty with examples.
.........................................................................
10. What is process? Discuss.
11. Explain the mechanism of process creation.
12. Explain the following commands.
at, cron, nice and nohup
13. Discuss kill command with examples.
14. Explain find command with it's syntax, options and examples.
15. Discuss bg and fg command with examples.
2. Discuss .profile with example.
3. Discuss the here document (<<) and trap command with examples.
4. Explain set and shift commands used in Unix to manipulate positional parameters.
5. Discuss the following Unix commands (filters) with syntax and examples.
cut, paste, head, tail
6. Write differences between hard link and soft link.
7. Discuss the sort command with syntax, options and examples.
8. Discuss umask and default file permissions with examples.
9. Discuss two special files /dev/null and /dev/tty with examples.
.........................................................................
10. What is process? Discuss.
11. Explain the mechanism of process creation.
12. Explain the following commands.
at, cron, nice and nohup
13. Discuss kill command with examples.
14. Explain find command with it's syntax, options and examples.
15. Discuss bg and fg command with examples.
Friday, 2 November 2018
Questions for Assignment Test-2 USP on 04-11-2018 (Sunday @12:15 to 1:15)
Assignment Test-2 USP on 04-11-2018 (Monday Time Table on Sunday @ 12:15 to 1:15.......
1. Explain the different modes of vi editor with neat block diagram.
2. Explain what wild-card patterns match:
1) [A-Z]????* 2) *[0-9]* 3) *[!0-9] 4) *.[!S][!h]
3. Write the output of following Unix commands.
1) ls *.c 2) mv * ../ise 3) cp foo foo* 4) cp ?????? progs 5) lp note[0-1] [0-9]
5) rm *.[!l][!0][!g] 6) cp /home/cse/{A,B,C} .
4. Discuss the three standard files supported by Unix. (Standard I/O or Redirections)
5. Discuss Escaping and Quoting with examples.
6. What is grep command? Discuss with syntax, options, and examples.
7. Explain the test and [ ] with examples.
8. Write shell scripts for the following.
-A shell script to read pattern to be search and filename from the users from the terminal to apply grep command.
- A shell script to read pattern and filename to apply grep command using command line arguments.
- A shell script to display the following with appropriate messages.
Display system date.
Display user name of current user.
Display a list of users who are currently logged into the computer.
Display details of process in use.
Print current working directory.
Display shell in use.
1. Explain the different modes of vi editor with neat block diagram.
2. Explain what wild-card patterns match:
1) [A-Z]????* 2) *[0-9]* 3) *[!0-9] 4) *.[!S][!h]
3. Write the output of following Unix commands.
1) ls *.c 2) mv * ../ise 3) cp foo foo* 4) cp ?????? progs 5) lp note[0-1] [0-9]
5) rm *.[!l][!0][!g] 6) cp /home/cse/{A,B,C} .
4. Discuss the three standard files supported by Unix. (Standard I/O or Redirections)
5. Discuss Escaping and Quoting with examples.
6. What is grep command? Discuss with syntax, options, and examples.
7. Explain the test and [ ] with examples.
8. Write shell scripts for the following.
-A shell script to read pattern to be search and filename from the users from the terminal to apply grep command.
- A shell script to read pattern and filename to apply grep command using command line arguments.
- A shell script to display the following with appropriate messages.
Display system date.
Display user name of current user.
Display a list of users who are currently logged into the computer.
Display details of process in use.
Print current working directory.
Display shell in use.
Monday, 29 October 2018
Assignment-II C Programming for Problem Solveing
Module 2
1. What are control statements? List.
2. What are conditional statement? List.
3. What is simple-if ? Discuss with explanation, syntax, flowchart and two programming examples.
4. What is if else statement? Discuss with explanation, syntax, flowchart and two programming examples.
1. What are control statements? List.
2. What are conditional statement? List.
3. What is simple-if ? Discuss with explanation, syntax, flowchart and two programming examples.
4. What is if else statement? Discuss with explanation, syntax, flowchart and two programming examples.
5. What is nested if statement? Discuss with explanation, syntax, flowchart and two programming examples.
6. What is else if ladder statement? Discuss with explanation, syntax, flowchart and two programming examples.
7. Discuss switch statement syntax, flowchart and two programming examples.
8. What are loop statements? List.
9. Write differences between while and do while loop.
10. Discuss for statement with syntax, flowchart and programming examples.
11. Write c programs for the following.
To check, whether the entered year is leap year or not leap year.
To find largest of three numbers using nested if statement.
Fo find largest three numbers using else if ladder.
To simulate simple calculator to perform arithmetical calculations like addition, subtraction, multiplication and division by using switch statement.
To provide the following menu option to work accordingly.
1. Area of circle
2. Area of rectangle
3. Area of triangle
Enter your choice:
Module 3
1. What is one dimensional array? Discuss its declaration and initialization with syntax and examples.
2. What is two dimensional array? Discuss its declaration and initialization with syntax and examples.
3. Write C programs for following
To find largest and lowest of N numbers using 1D array.
To implement linear search technique.
To implement binary search technique.
To find addition of two matrices by checking for their compatibility.
To find multiplication of two matrices by checking for their compatibility.
8. What are loop statements? List.
9. Write differences between while and do while loop.
10. Discuss for statement with syntax, flowchart and programming examples.
11. Write c programs for the following.
To check, whether the entered year is leap year or not leap year.
To find largest of three numbers using nested if statement.
Fo find largest three numbers using else if ladder.
To simulate simple calculator to perform arithmetical calculations like addition, subtraction, multiplication and division by using switch statement.
To provide the following menu option to work accordingly.
1. Area of circle
2. Area of rectangle
3. Area of triangle
Enter your choice:
Module 3
1. What is one dimensional array? Discuss its declaration and initialization with syntax and examples.
2. What is two dimensional array? Discuss its declaration and initialization with syntax and examples.
3. Write C programs for following
To find largest and lowest of N numbers using 1D array.
To implement linear search technique.
To implement binary search technique.
To find addition of two matrices by checking for their compatibility.
To find multiplication of two matrices by checking for their compatibility.
Friday, 26 October 2018
Algorithms
What is an algorithm?
Algorithm can be defined as step by step procedure to solve a given problem by using a computer system to get desired result. It includes finite number of steps in hierarchical order from start to stop.
Characteristics of algorithm:
1. It should be unambiguous (no doubts).
2. It should not have any uncertainty steps.
3. It should generate correct result.
Examples.
Algorithm to check for palindrome.
Step1: Start
Step2: Read a number i.e. num
Step3: dup=num
Step4: while (num!=0)
rem=num%10
rev=(rev*10)+rem
num=num/10
Step5: Print reversed number i.e. rev
Step6: if (rev==dup)
Display "Plaidrome"
else
Display "Not Palidrome"
Step7 : Stop
Algorithm to generate electricity bill
Step1: Start
Step2: Read user name and number of units consumed i.e. name, units
Step3: if (units<=200) goto next step; otherwise goto step 5
Step4: amt=units*0.80 and goto step
Step5: if (units<=300) then goto next step; otherwise goto step 7
Step6: amt=160+((units-200)*0.90) and goto step 8
Step7: amt=250+((units-300)+1) and goto next step
Step8: total_amt=amt+100
Step9: if (total_amt>400) goto next step; otherwise goto step 11
Step10: sur_charge=total_amt*0.15, total_amt=total_amt+sur_charge
Step11: Print name and total_amt
Step12: Stop
Algorithm can be defined as step by step procedure to solve a given problem by using a computer system to get desired result. It includes finite number of steps in hierarchical order from start to stop.
Characteristics of algorithm:
1. It should be unambiguous (no doubts).
2. It should not have any uncertainty steps.
3. It should generate correct result.
Examples.
Algorithm to check for palindrome.
Step1: Start
Step2: Read a number i.e. num
Step3: dup=num
Step4: while (num!=0)
rem=num%10
rev=(rev*10)+rem
num=num/10
Step5: Print reversed number i.e. rev
Step6: if (rev==dup)
Display "Plaidrome"
else
Display "Not Palidrome"
Step7 : Stop
Algorithm to generate electricity bill
Step1: Start
Step2: Read user name and number of units consumed i.e. name, units
Step3: if (units<=200) goto next step; otherwise goto step 5
Step4: amt=units*0.80 and goto step
Step5: if (units<=300) then goto next step; otherwise goto step 7
Step6: amt=160+((units-200)*0.90) and goto step 8
Step7: amt=250+((units-300)+1) and goto next step
Step8: total_amt=amt+100
Step9: if (total_amt>400) goto next step; otherwise goto step 11
Step10: sur_charge=total_amt*0.15, total_amt=total_amt+sur_charge
Step11: Print name and total_amt
Step12: Stop
Friday, 5 October 2018
Assignment-II Unix and Shell Programming
1. Explain the different modes of vi editor with neat block diagram. Jan 2017
Introduction to vi editor: 1m
Block diagram: 2m
Explanation of three modes with commands used: 2 x 3 =6m
Total=9 m
2. Discuss the navigation commands used in vi editor. Jan-2017
3. Explain Shell's interpretive life cycle. Jan.2017
4. Explain what wild-card patterns match:
1) [A-Z]????* 2) *[0-9]* 3) *[!0-9] 4) *.[!S][!h]
5. Write the output of following Unix commands.
1) ls *.c 2) mv * ../ise 3) cp foo foo* 4) cp ?????? progs 5) lp note[0-1] [0-9]
5) rm *.[!l][!0][!g] 6) cp /home/cse/{A,B,C} .
6. Discuss the three standard files supported by Unix. (Standard I/O or Redirections)
7. Discuss Escaping and Quoting with examples.
8. Explain the following with examples.
pipe, tee and command substitution
9. Discuss the commands used for configuring vi editor. i.e. set, ab, map
10. What is .exrc ? Give example.
11. What is grep command? Dicuss with syntax, options, and examples.
12. What is egrep command? Give examples.
13. Discuss sed with line and context addressing techniques.
14. Write short note on BRE and ERE with examples.
15. What is shell programming?Give any three examples.
16. What is conditional execution in UNIX?Give examples.
17. Write all the forms of if statement supported by shell script with syntax and examples.
18. Write short note on "Command Line Arguments" with examples.
19. Explain the test and [ ] with examples.
20. Write shell scripts for the following.
A shell script to read pattern to be search and filename from the users from the terminal to apply grep command.
A shell script to read pattern and filename to apply grep command using command line arguments.
A shell script to display the following with appropriate messages.
Display system date.
Display user name of current user.
Display a list of users who are currently logged into the computer.
Display details of process in use.
Print current working directory.
Display shell in use.
Introduction to vi editor: 1m
Block diagram: 2m
Explanation of three modes with commands used: 2 x 3 =6m
Total=9 m
2. Discuss the navigation commands used in vi editor. Jan-2017
3. Explain Shell's interpretive life cycle. Jan.2017
4. Explain what wild-card patterns match:
1) [A-Z]????* 2) *[0-9]* 3) *[!0-9] 4) *.[!S][!h]
5. Write the output of following Unix commands.
1) ls *.c 2) mv * ../ise 3) cp foo foo* 4) cp ?????? progs 5) lp note[0-1] [0-9]
5) rm *.[!l][!0][!g] 6) cp /home/cse/{A,B,C} .
6. Discuss the three standard files supported by Unix. (Standard I/O or Redirections)
7. Discuss Escaping and Quoting with examples.
8. Explain the following with examples.
pipe, tee and command substitution
9. Discuss the commands used for configuring vi editor. i.e. set, ab, map
10. What is .exrc ? Give example.
11. What is grep command? Dicuss with syntax, options, and examples.
12. What is egrep command? Give examples.
13. Discuss sed with line and context addressing techniques.
14. Write short note on BRE and ERE with examples.
15. What is shell programming?Give any three examples.
16. What is conditional execution in UNIX?Give examples.
17. Write all the forms of if statement supported by shell script with syntax and examples.
18. Write short note on "Command Line Arguments" with examples.
19. Explain the test and [ ] with examples.
20. Write shell scripts for the following.
A shell script to read pattern to be search and filename from the users from the terminal to apply grep command.
A shell script to read pattern and filename to apply grep command using command line arguments.
A shell script to display the following with appropriate messages.
Display system date.
Display user name of current user.
Display a list of users who are currently logged into the computer.
Display details of process in use.
Print current working directory.
Display shell in use.
Wednesday, 3 October 2018
Assignment-I (Part-II) C Programming for Problem Solving
Discuss in brief about "Structure of C Program" with programming example.
What are C-tokens? List and discuss in brief.
What are data types? List and discuss in brief.
What is variable?Discuss it's declaration and initialization with syntax and examples.
What are I/O functions? Discuss formatted I/O functions with syntax and examples.
List and Discuss any 5 types of operators supported by C language.
Write C programs for following.
What are C-tokens? List and discuss in brief.
What are data types? List and discuss in brief.
What is variable?Discuss it's declaration and initialization with syntax and examples.
What are I/O functions? Discuss formatted I/O functions with syntax and examples.
List and Discuss any 5 types of operators supported by C language.
Write C programs for following.
- To find largest of two numbers using if else statement.
- To find largest of three numbers using conditional operator.
- To check, whether the number is Even or Odd number.
- To check, whether the year is leap year or not leap year.
- To find sum of first and last digit of entered 3 digits number.
- To swap (interchange) the contents of two variables using temporary variable.
- To swap (interchange) the contents of two variables without using temporary variable.
Thursday, 6 September 2018
Assignment-1: C Programming for Problem Solving (18CPS13)
1. What is computer? List its features and applications in brief. (2+3+3=8m)
2. Define the following.
Computer Program
Programmer
User
Software
Assembler, Interpreter, Compiler
3. List the input and output devices.
4. Discuss in brief about Computer Languages like Machine Level Language, Assembly Level Language and High Level Language.
5. Discuss "Generations of Computers" in brief.
6. Discuss "Types of Computers" in brief.
7. Explain the "Structure of a Computer" with a neat block diagram.
8. Write simple C programs for following.
To display the message "Hello World!" on screen.
To display your's residential address.
To display the message "Press any two keys to know my name" to work accordingly.
To find addition, subtraction, multiplication and division of two numbers.
2. Define the following.
Computer Program
Programmer
User
Software
Assembler, Interpreter, Compiler
3. List the input and output devices.
4. Discuss in brief about Computer Languages like Machine Level Language, Assembly Level Language and High Level Language.
5. Discuss "Generations of Computers" in brief.
6. Discuss "Types of Computers" in brief.
7. Explain the "Structure of a Computer" with a neat block diagram.
8. Write simple C programs for following.
To display the message "Hello World!" on screen.
To display your's residential address.
To display the message "Press any two keys to know my name" to work accordingly.
To find addition, subtraction, multiplication and division of two numbers.
Assignment Test-I Unix and Shell Programming
Assignment Test-1 on 8th Sept. 2018, Saturday first hour i.e. 9:00 am to 10:00 am
Module-1
Discuss the salient features of UNIX O.S.
Explain the following commands with syntax.
echo ls who date tty printf
Write a note on man documentation and explain the keyword and what is options.
With a neat diagram explain architecture of UNIX.
Discuss the differences between internal and external commands of UNIX.
Explain the contents of /etc/passwd and /etc/shadow files.
Discuss the commands to create, modify and deletes users.
List and explain in brief about the functions of System Admin.
Unix Files and Types
Pathnames
Parent-Child relationship of UNIX files.
Working with directories and File
List and explain in brief about the functions of System Admin.
Module-2
Unix Files and Types
Pathnames
Parent-Child relationship of UNIX files.
Working with directories and File
Subscribe to:
Posts (Atom)
PARALLEL COMPUTING (BCS702) Program 6: Write a MPI program to demonstration of deadlock using point to point communication and avoidance of deadlock by altering the call sequence
Department of Computer Science & Engineering, BLDEACET, Vijayapura 13 Lab Manual : PARALLEL COMPUTING (BCS702) Program 6: Write a MPI ...
-
1. Introduction to Python https://docs.google.com/forms/d/e/1FAIpQLSc3LFrMaswLg6mltJ3NN5QGbALA9Uc53KWPp4oV5HN4SaM0Iw/viewform?usp=sharing...
-
Module wise most expected questions on " Unix and Shell Programming " Module-1 1. Explain in brief about " UNIX Arc...
-
Dear students, You are hereby informed to follow the following instructions to get good marks in Practical Examinations. Wear the formal and...
-
What is computer? Name some input and output devices. What is CPU? Name types of memories. Tell me about computer generations. Ca...
-
Module-1 Block diagram of a computer with explanation of each part in brief. List of input devices with explanation in brief about eac...