About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Saturday 26 August 2017

Assignment 1: Programming in C and Data Structures

Dear student,
  You are hereby informed to answer the following questions by reading recommended books and given notes. Write the answers in your own technical sentences. You answers must contain some additional points rather than given points in my notes. (Read--Understand--Re write)

1. Define algorithm. Give one examples.(3m)
Definition=1 m, Explanation=1m Two Examples=1m

2. Define flowchart. Give one example.(3m)
Definition=1 m, Explanation=1m Two Examples=1m

3. Write algorithm and draw flowchart to find simple interest.(2+2=4m)

4. Write algorithm and draw flowchart to find area and circumference of a circle.(2+2=4m)

5. What is pseudocode? Give any three examples. (5m)
Definition=1 m, Explanation=1m Three Examples=3m

6. Discuss "Structure of C Program" with programming example.(10m)
Definition=1m Structure=2m Explanation of all elements=5X1=5m Programming exmaple=2m

7. What are C-tokens? List and explain in brief.(8m)
Definition=1m List=1m Explanation=6 x 1=6m

8. What are datatypes? List and discuss in brief with range of values supported by them.(8m)

Definition=1m List=1m Explanation with range of values =1x5
9. Write c program to find largest of two numbers using conditional operator (?:) (5m)

10. Write c program to find largest of three numbers using conditional operator (?:) (5m)

11. Write c program to find roots of a quadratic equation. (10 m)

12. Write c program to check, whether the year is leap year or not leap year. (5m)

13. Write c program to check whether the number N is PALINDROME or not.

14. Write c program to swap two values using temporary variable.(3m)

15. Write c program to swap two values without using temporary variable.(3m)

16. Solve questions from Question Papers. (10m)

17. What are formatted I/O functions? Explain with syntax and examples.
Definition=1m
Definition of scanf()=1m Syntax=1m Examples=1m
Definition of printf()=1m Syntax=1m Examples=1m

18. What is precedence and associativity of operator? Give example. (5m)
Definition=1+1 2m
Examples=2m

19. Discuss the following operators with examples. (15m)
Arithmetic, Relational, Logical, Assignment, Increment/decrement, bitwise and special operators.

20. What is type conversion?Discuss different types with examples.









Tuesday 22 August 2017

Assignment 1 on Unix and Shell Programming (Updated)

Dear student,

Read recommended text books and given notes to understand and re-write the answers for following questions in assignment booklet in your own technical sentences to get good marks.


1. Discuss 'UNIX" operating system. (4m)
    Definition=1m  Discussion=3m

2.  List and explain the features of Unix o.s. (8m)
    List=1m Explanation= (7x1 =7m)
 
3. Discuss 'Unix Architecture' with neat diagram. (8m)
    Diagram with labeling =2m
    Explanation of Kernel, System calls, Shell, Utilities, Applications and Users carry (6x1)

4. Discuss the three Computing Environments of Unix with free hand sketch. (7m)
    List of environments=1m Free hand sketch=2m Explanation=3x1=3m

5. Discuss POSIX and Single Unix Specification. (6m)
    POSIX explanation=3m
    SUS explanation=3m

6. List and explain in brief about 'types of Unix commands'. (3m)

7. What is ls command? Discuss with options and examples.(6m)

Definition of ls command :1m
Minimum 5 options explanation with examples= 5m


8. Discuss the following Unix commands with examples in brief.
   echo, printf, cal, date, man, more, bc, ps, wc,tput clear,  who, whoami, passwd, exit,
Definition=1m Minimum 3 examples for each, If options are their, you need to explain.


9. Discuss 'system variable PATH' with example.

10. Explain the following commands with examples in brief.
      bc, man, more, tput clear, ps, wc

11. Who is superuser and discuss the functions of superuser.

12.  Discuss memory managements functions like df and du (imp)

13. Discuss "User Management" by system admin. (groupdadd, useradd, usermod and userdel) (imp)

14. Discuss "/etc/passwd and /etc/shadow" files. (imp)


Note: Submit the assignments before 30th August 2017.




C++ program to find GCD two numbers a and b using user defined function. i.e. GCD(a,b) using Euclids algorithm

Write C++ program to find GCD two numbers a and b using  user defined function. i.e. GCD(a,b) using Euclids algorithm.   #include <iostre...