SILVER OAK COLLEGE OF ENGINEERING & TECHNOLOGY AHMEDABAD

Size: px
Start display at page:

Download "SILVER OAK COLLEGE OF ENGINEERING & TECHNOLOGY AHMEDABAD"

Transcription

1 SILVER OAK COLLEGE OF ENGINEERING & TECHNOLOGY AHMEDABAD Computer Programming and Utilization (20003) BOOKLET CPU (20003) Page

2 INDEX Sr. No Topic Page No. Syllabus 3 2 Lesson Planning 5 3 Assignments 7 5 Practical List 4 Question Bank 4 5 Find Output/ Write Programme 22 6 Objective Type Question 27 CPU (20003) Page 2

3 Syllabus Sr. No. Topics Teaching Hrs. Module Weightage Introduction to computer and programming: Introduction,Basic block diagram and functions of various components of computer,concepts of Hardware and software,types of softwares,compiler and interpreter, Concepts of Machine level, Assembly level and high level programming,flow charts and Algorithms. 05 0% 2 Fundamentals of C Features of C language, structure of C Program, comments, header files,data types, constants and variables, operators, expressions, evaluation of expressions, type conversion, precedence and associativity, I/O functions 05 5% 3 Control structure in C Simple statements, Decision making statements, Looping statements, Nesting of control structures, break and continue, goto statement 06 5% 4 Array & String Concepts of array, one and two dimensional arrays,declaration and initialization of arrays,string, string storage, Built-in-string functions 05 5% 5 Functions Concepts of user defined functions, prototypes, definition of function, prarameters, parameter passing, calling a function, recursive function,macros, Pre-processing 05 5% 6 Pointers Basics of pointers, pointer to pointer, pointer and array, pointer to array, array of pointers, functions returning a pointer 03 0% CPU (20003) Page 3

4 7 Structure Basics of structure, structure members, accessing structure members,nested structures, array of structures, structure and functions, structures and pointers 02 0% 8 Dynamic memory allocation Introduction to Dynamic memory allocation, malloac, Calloc 02 05% 9 File management Introduction to file management and its functions 03 05% Total 36 NOTE: MID semester Examination syllabus: Unit:,2,3,4,5 (As per GTU Syllabus) TextBook :. COMPUTER PROGRAMMING AND UTILIZATION, E. Balagurusamy, TMH 2.Programming in ANSI C, Forth Edition, E Balagurusamy, TMH 3. Programming in C Ansi standard, by Yashwant Kanetkar CPU (20003) Page 4

5 Lesson Planning Branch Lect. No. Topics To Be Covered Remarks UNIT : Introduction to computer and programming:. Introduction,Basic block diagram and functions of various components of computer 2. Concepts of Hardware and software, Types of softwares 3. Compiler and interpreter, Concepts of Machine level, Assembly level and high level programming 4. Flow charts and Algorithms. UNIT 2 : Fundamentals of C 5. Features of C language, structure of C Program, comments, 6. header files, data types 7. Constants and variables, operators, expressions, evaluation of expressions, 8. Type conversion, precedence and associativity 9. I/O functions UNIT 3 : Control structure in C 0. Simple statements, Decision making statements. Looping statements 2. Nesting of control structures 3. Break and continue, goto statement UNIT 4 : Array & String 4. Concepts of array, one dimensional arrays, 5. Two dimensional arrays 6. declaration and initialization of arrays 7. String, string storage, Built-in-string functions UNIT 5: Functions 8. Concepts of user defined functions 9. Prototypes, definition of function 20. parameters, parameter passing 2. Calling a function 22. recursive function CPU (20003) Page 5

6 23. Macros, Pre-processing UNIT 6: Pointers 24. Basics of pointers, pointer to pointer 25. Pointer and array, pointer to array, 26. Array of pointers, functions returning a pointer UNIT 7: Structure 27. Basics of structure, structure members, 28. Accessing structure members,nested structures 29. Array of structures, structure and functions 30. Structures and pointers Unit 8 : Dynamic memory allocation 3. Introduction to Dynamic memory allocation 32. malloac, Calloc UNIT 9: File management 33. Introduction to file management 34. Its functions Mid Sem Exam Starts From: 26 th Oct, 205. Mid Sem Exam Syllabus: Unit, 2, 3, 4, 5 Ms. Snehi Patel A/Prof. Satvik V. Khara Mr. Nayan I. Patel Subject Coordinator H.O.D. (CE/IT) H.O.D. (Gen. Dept.) CPU (20003) Page 6

7 ASSIGNMENT ( Unit,2 ) Q. Draw block diagram of computer system. Explain each part of it. Q.2 Define following : ) Operating System 2) Compiler 3) Interpreter 4) Assembler 5) Loader 6) Linker 7) Preprocessor Q.3 What is Software and Hardware? Explain different types of Software. Q.4 Define algorithm and explain different symbols used in flowchart. Q.5 List and explain types of computer languages.explain fundamental data types of C language. Q.6 Explain different type of operators used in C language with their precedence and associativity. Q.7 What is difference between keywords and identifiers? Explain rules for naming an identifier. Q.8 What is Type conversion and Type casting? State difference between them. Q.9 Explain implicit type conversion andexplicit type conversion with example. Why type conversion is necessary? CPU (20003) Page 7

8 ASSIGNMENT 2 ( Unit 3,4 ) Q. Explain if-else-if ladder with appropriate flow chart and C syntax Q.2 State the syntax of Switch-case statement. Explain it with appropriate example. Q.3 What do you understand by looping? Explain different types of loops in C with example. Q.4 What is array? Explain single and multidimensional with examples. Q.5 Explain break and continue with example. Q.6 What is String? How are they declared and also define the null character. Q.7 Describe following string functions in C-Language. () strcpy( ) (2) strcat( ) (3) strlan( ) (4) strcmp( ) Q.8 Explain the difference between entry control loop and exit control loop. CPU (20003) Page 8

9 ASSIGNMENT 3 ( Unit 5,6 ) Q. What is user-defined function? Explain actual argument and formal arguments? Q.2 What do you mean by recursive function? Write a program in c to find factorial of a number using recursive function. Q.3 Explain the difference between call by reference and call by value with proper example Q.4 Write short note on category of function. Q.5 What is pointer? Explain how pointers are declared and initialized. How it is differentfrom Array? Q.6 Explain arrays of pointer using suitable sample program. Q.7 What are the benefits of the Pointer? Write a program to do swapping of two elements using function with two pointers as arguments? CPU (20003) Page 9

10 ASSIGNMENT 4 ( Unit 7,8,9 ) Q. Illustrate the concept of structure? Explain how can we access structure members? Q.2 What is structure? Explain nested structure and array of structure with example Q.3 Write the difference between structure and union. Q.4 Give comparison of Static Memory Allocation and Dynamic MemoryAllocation with a code snippet. Q.5 What is dynamic memory allocation? What is difference between malloc and calloc? Q.6 Write Short Note on File Operations in C. Q.7 What is file management? List the different file management functions and explain the various file modes. Practical List Note: Programs followed by * symbol are of same category in Unit and for self-implementation in Assignment work. CPU (20003) Page 0

11 PRACTICAL : Basic Programs. Write a Program to display WELCOME TO ADITYA SILVER OAK INSTITUTE OF TECHNOLOGY on the screen..2* Write a Program to which accepts a character from keyboard & display its ASCII code..3 Write a program that reads two nos. from key board and gives their addition, subtraction, multiplication, division and modulo..4* Write a program to convert days into months and days. The distance between two cities (In KM) is input through key.5* board. Write a program to convert and print this distance in meters, feet, inches & centimeters..6 Write a program to swap (interchange) values of two variables with and without using third variable. PRACTICAL 2 : Basic Calculations 2.* Write a Program to convert the Celsius to Fahrenheit. F=(C*.8) Write a Program to find out simple interest. I=(P*R*N)/ Write a program to solve Quadratic Equation. Remark PRACTICAL 3 : Control Structure * * 3.8* Write a program to reverse sequence of digit. Write a program to print first N prime numbers.( no factor other than & itself) Write a program to print Armstrong number ( or Narcissistic no) between 0 to 999.( Armstrong no= addition of cube of every digit of a no, e.g. 53 is Armstrong due to =53) Write a program to find out whether a number is odd / even by using different if..else statements. Write a program to find minimum no out of three numbers by using Conditional Operator(nested..if ). Write a program to make simple calculator using switch..case statement. Write a program to find sum of all integers greater than 00 & less than 200 and are divisible by 5. Write a program to find whether a number is palindrome or not. PRACTICAL 4 : Pattern Programs:(WAP to print pattern like below) 4. * * * * * * * * * * CPU (20003) Page

12 * 4.4* 4.5* A B C D E F PRACTICAL 5 : Series Programs 5. Write a program for following Series: n 5.2 Write a program for following Series: n Write a Program to print Fibonacci series.( ) 5.4* Write a program to print +/2+/3+/4+ +/N series. PRACTICAL 6 : Array Programs 6. Write a program to display Sum and average of any 0 no. using - D Array. 6.2 Write a Program to Find largest odd number from given -D Array. 6.3* Write a program to read array of integers and print it in reverse order 6.4* Write a program to Sort given Array in Descending Order. 6.5 Write a program to Add two Matrices. i.e. C= A + B 6.6* Write a program to Multiply two 3X3 Matrices. i.e. C= A * B PRACTICAL 7 : String Programs 7. Write a program to Find String Length without using inbuilt function. 7.2 Write a program to Count no. of Vowels in given String. 7.3 Write a program to append one string to another String. 7.4 Write a program to check whether given String is Palindrome or not. 7.5* Write a program to copy one string to another string 7.6* Write a program to count no of words in a sentence. 7.7* Write a program convert character into TOggLe character. PRACTICAL 8 : Programs using Functions CPU (20003) Page 2

13 8. 8.2* * 8.5* PRACTICAL 9 :Pointer Write a Program using function to Add st n numbers and also Find out Average of st n numbers. (Where n is enter through Keyboard.) Write a Program using function to Find out Cube of any given number N. Write a Program using function to Find out Factorial of given number with and without recursion. Write a calculator program(add,subtract,multiply,divide). Prepare user defined function for each functionality. Write a function prime that return if it s argument is prime and return 0 otherwise. 9. Write a program to print an address of a variable. 9.2 Write a program to change the value of a variable using pointer. 9.3 Write a program using pointer to compare two strings. 9.4* Write a program using pointer to read an array of integer and print elements in reverse order. 9.5* Write a program using pointer to copy one string to another string. PRACTICAL 0 : Structure * Define a structure called cricket that will describe the following information: a. Player name b. Team name c. Batting average Write a function to enter Roll no, marks of the three subject for 3 student and find total obtained by each student. PRACTICAL : Dynamic Memory Management..2* PRACTICAL 2 : File Management Write a program that uses a table of integers whose size will be specified interactively at run time. Write a program to store a character string in block of memory space created by malloc and then modify the same to store a large string. 2. Write a program to create a file and perform basic I/O operations on the same. 2.2* Write a program to illustrate the use of fputc(), fputs(), and fgets() Question Bank CPU (20003) Page 3

14 UNIT - INTRODUCTION TO COMPUTER AND PROGRAMMING SR NO. QUESTIONS PAPER MARKS Define following terms: ) Operating System 2) Compiler 3) Interpreter 4) Assembler 5) Loader 6) Linker 7) Preprocessor. June Draw a flow chart to do the sum of 0 elements read from the user. June Describe various types of computer languages and mention March its advantages and disadvantages. 4 What is Algorithm and flowchart? Explain both with some March 07 suitable example. 2009,June Draw block diagram of computer and explain each block. March 2009, 07 June 2009, Sept 2009, Dec 20, Jan 203,Jan Draw flowchart to solve following series! + 2! + 3! + June n! 7 Define following June I. Operating System II. Compiler III. Application software IV. System Software 8 Explain Various Symbol used in Flowchart and Draw the Sept Flowchart for finding largest Number out of three given Numbers. 9 What is Algorithm? Dec Explain various symbols used in Flowchart and draw the Dec flowchart for finding Smallest number out of three given numbers. Define: Software, Hardware, Higher level Language, Dec 20, 06 Operating System. June What is flowchart? Draw a flowchart to print first N June 202, 07 Fibonacci numbers. JAN What is software? List the various categories of software June and their use. 4 Differentiate between compiler and interpreter. June Explain the following terms in brief: Operating System, Compiler Jan Explain various symbols used in Flowchart and draw the flowchart for finding Factorial of a number given by user. Jan 203,Mar/Apr 07 CPU (20003) Page 4

15 200 7 Explain if else if..ladder with flowchart. Mar/Apr Write an algorithm and draw the flowchart to accept N Apr numbers and count how many of them where odd and also compute sum of all these odd. 9 Draw a flow chart to find the smallest number out of three Nov/Dec given numbers 20 Comparision between flow chart and algorithm Jan What is Software and Hardware? Explain different types of Software. JUNE- 205,DEC- 20,JUNE Explain various symbols used in Flowchart and draw the flowchart for finding Factorial of a number given by user. JAN-203 APRIL-200 JUNE SR NO. UNIT 2 FUNDAMENTALS OF C QUESTIONS PAPER MARKS Explain primary data types used in C. June Define () Token (2) Identifier (3) Constant (4) Type March casting (5) Storage class (6) Scope and life time of variable 3 Explain various types of operator available in C. JAN /JUNE- 205,June 2009, Sept 2009, Dec 20,Mar/Apr What is type conversion? Explain implicit type conversion and explicit type conversion with example. June 2009, Mar/Apr 200, JUNE Explain operator precedence and associativity. June 2009, 05 Mar/Apr Explain scanf( ) and printf( ) with syntax. Sept 2009, 03 CPU (20003) Page 5

16 Dec 20 7 Explain local variable Vs Global Variable using example. Sept Explain different datatypes used in C Language. Sept Write Short Note on Data types in C. Dec Write Short Note on Scope and Lifetime of Variable. Dec Explain the?: (ternary) and sizeof operators with proper June 202, 04 examples. June What are the logical operators in C? List and explain June them. 3 What do you mean by local and global variables? Give June their scope and life time and compare them. 4 Explain in brief the features of C language. Nov/Dec Explain logical operator and relational operator used in C Nov/Dec 04 language Explain the different data types of C language Nov/Dec 200, JAN What is difference between keywords and identifiers? Explain rules for naming an identifier. JUNE Explain different type of operators used in c language with their precedence and associativity. JUNE-205 JUNE-2009 APRIL UNIT 3 CONTROL STRUCTURES IN C S R N O. QUESTIONS PAPER MARKS Which of following loop is executed at least once? a) do-while b) for c) if d) while June Which among the following is a unconditional control structure. a) goto b) for c) do-while d) if-else June Write a program to select and print the largest of the three nos. using nested-if-else statement. June CPU (20003) Page 6

17 4 Explain various types of loop available in C with example. June Write a program to perform addition, multiplication, subtraction and division with switch statement. June Write a program to print the following pattern. 6 * * * * * * * * * * June Explain various types of loop available in C with example. June Explain break and continue with example. June Give name of loop statements. Explain any one loop Sept statement with example. 0 Explain if..else and switch case statement with example. Sept Explain switch case statement. Write a program using switch case statement. 2 Explain the multiple (ladder) if-else with syntax and proper example. OR Explain if else if ladder of C with neat diagram and a brief program code. Dec 20, Nov/Dec 200 June 202, Nov/Dec 200,June 20 3 Explain the use of break statement with example. June Explain switch case statement with brief example. Jan Explain the difference between while and do..while Jan statement. 6 Write Short note on Jan ) Nested if..else statement. 2) Use of break and continue statement. 7 Explain for loop. Differentiate use of continue, break and Mar/Apr go to statement. 8 What is infinite loop in C? How can you create it? Give an June example of situation where you need to use infinite loop? 9 Compare for loop and while loop with illustration. Nov/Dec What is looping? Explain different types of loops in C and compare them. Show how to sum to 0 using each of these loops. June 20, JUNE-205, JAN How can you define infinite loop using while? June 20 0 CPU (20003) Page 7

18 22 Write a C Program to check whether the given number is prime or not. JAN-205 JAN-203 DEC-200 UNIT 4 ARRAY & STRING SR NO. QUESTIONS PAPER MARKS What is an Array? Explain multidimensional array with March 07 suitable sample program in C Describe various string handling operation using sample Jan C codes. Jan What is array? What are the advantages to use array? Sept Explain single and multi-dimensional array with example. 4 Describe following string functions in C-Language. Sept 2009, 04 () strcpy( ) (2) strcat( ) (3) strlan( ) (4) strcmp( ) Mar/Apr Nov/Dec 200, JAN Explain how string is defined in C. Write user defined Dec functions for the following: (i) strlen() : to find length of string. (ii) strcat() : to concate two strings. 6 List the various in-built string functions. June Explain the following with proper examples. Initialization of one and two dimensional arrays in C June What is a string? How string is stored in C? Give the various functions with their use for string processing. June 200, JAN UNIT 5 FUNCTIONS SR NO. QUESTIONS PAPER MARKS Recursion is a process in which a function calls a) itself b) another function c) main() function d) none June of the above 2 Explain different type of functions used in c language. Write a program using function to find maximum of two numbers. (JUNE- 205) JAN-205 CPU (20003) Page 8

19 JUNE-204 JAN-203 DEC Define () Call by value (2) Call by reference JUNE- 205,March 2009, June Define syntax of Functions in C, Write a sample program in to and demonstrate usage of Function with arguments and return values. 5 What do you mean by recursive function? Explain with example. March 2009 JUNE- 205, JAN-205, June 2009, Dec 20, Nov/Dec What is user-defined function? Explain Actual argument June and formal argument. 7 What is function? Explain Pass by value and Pass by Sept reference. Give one-one example of User Defined Function and Library Function. 8 What is recursion? Explain it with factorial(4). Write C Sept 2009, 04 program to find factorial (N) using recursive Function? June What is used defined function? Explain types of functions Dec with example. 0 What is function? Explain the function definition, function June prototype and function call with example. What is call by value? Clear it with example. June Write short note on Categories of Functions. Jan 203, 04 Mar/Apr, Nov/Dec 200, Explain inline function with example. JAN-205 UNIT 6 POINTERS DEC-200 SR NO. QUESTIONS PAPER MARKS CPU (20003) Page 9

20 A pointer value refers to a) A float value b) An integer constant c) Any valid June address in memory d) None 2 Define () Pointer March 2009, June How to initialize Pointer? Explain arrays of pointer using suitable sample program. March 2009, JUNE What is pointer? Explain Array of pointer with example. June What is pointer? How Pointer is initialized? How it is Sept different to array? 6 Write short note on Pointer. Dec What is pointer? Clear it with examples and give its use. June 202, 04 Nov/Dec What is Pointer in C? Explain its advantages. Also write a function to do swapping of two elements using pointer. Call this function in main(). Jan 203, JAN What is Pointer? How to initialize the pointer and how it Jan is different from Array? 0 Define an array of 0 integer pointers. June 20 0 Write a program using pointer and function to determine the length of string (JUNE- 205) 07 UNIT 7 STRUCTURE AND UNION SR NO. QUESTIONS PAPER MARKS Describe nested Structures and demonstrate using C March 07 program Explain difference between unions and structures. March , Mar/Apr 200, Nov/Dec 200,June 20 3 Explain nested structure with example. June CPU (20003) Page 20

21 4 What is structure? How it is different from union? Explain nested structure and array of structure with example. 5 What is structure? Explain with example how to declare a structure and how to initialize it. Sept 2009, JUNE-205 Dec 20, June 200, Nov/Dec Define the union. June What is structure? Define the structure and explain how to access the structure members. 8 What is structure in C? Define a structure named Student with roll_no, name and percentage as members. Read data of 5 students from user and display them in proper format. 9 Give one example for Array of structure explain the meaning. Define an array of structure with integer, string and float as members. Size of array is 0. JAN ,June 202,June 20 Jan June Write a program in c using structure to enter rollno, marks of the three subject for 3 student and find total obtained by each student (JUNE- 205) JAN UNIT 8,9: Dynamic Memory Allocation & FILE MANAGEMENT SR NO. QUESTIONS PAPER MARKS What is a file? Write Short Note on File Operations in C. Dec 20, 05 JUNE Show the use of the malloc() function. June What is file management? List the different file management functions and explain the various file modes. June 202, JAN Write Short Note on File Operations in C. Jan What is dynamic memory alllocation? What is difference Mar/Apr 04 CPU (20003) Page 2

22 betweenmalloc and calloc? 6 How can you allocate memory dynamically for 0 floating point numbers? ans:-flaot *array =malloc(0*sizeof(float)); Explain the use of malloac and calloc function with their syntax. 200,JAN 205 June 20 0 (JUNE- 205) FIND THE OUTPUT / WRITE A PROGRAM. Unit 2: Fundamentals of C SR NO. QUESTIONS PAPER MARKS What will be the output of following code. int x = 0; void main() { int x = 5,y; y = x++; printf( %d %d,++y, x++); } What will be the output of following code. void main() { int ix=7,iy=8,iz=9; printf( \n %d %d %d,++ix,ix,ix++); printf( \n %d %d %d, iz,++iz,iz++); } 3 What will be the output of following code. { int x = 0, y=5; x = x++; y = ++y; printf( %d, %d \n, x, y); } (A) 0, 5 (B) 0, 6 (C), 6 (D), 5 4 Write a program to convert temperature entered by user from Fahrenhit into Celcius 2009 Dec- 203 April Unit 3: Control structure in C CPU (20003) Page 22

23 SR NO. QUESTIONS PAPER MARKS What will be the output of following code x =,2,3; a = (b = 4, c = 5, b+c); if( x = 5) printf( x is even\ ); else printf( x is odd\n ); 2 What will be the output of following code. int i; for(i=5;i<5;i++) { printf( %d\n,i); i = i ; } 3 Give output of following. main() { int n=6, t=; for(;n<0;n=n+2) printf( %d %d\n,n,++ t); } 20 April Write a program to select and print the largest of the three nos. using nested-if-else statement Write a program to perform addition, multiplication, Junesubtraction and division with switch statement Write a program in C to generate Fibonacci series like Decfollowing: 20,,, 2, 3, 5, 8, 3. Dec- Generate 20 such numbers Write a program to find the sum of first N odd numbers. Dec Write a C Program to check whether the given number is Jan-205 prime or not Jan Write a program to print the following pattern. * * * * * * * * * * 0 Write a program to display following pattern using nested for loops. * * * * * * * * * * * * * * * Write a program to print following pattern Dec CPU (20003) Page 23

24 Write a program to print the following pattern Write a program to print the following pattern Write a program to display following pattern using nested for loops For n lines. 5 Write a C program to display the following triangle for N lines. A B 2 3 A B C D Write a C program to display the following triangle for N lines. A B C D E F Dec Jan Jan- 203, April Write a C program to print multiple of N from given range of unsigned integers. For example, if N=5 and range is [7, 45] it prints20,25,30,35,40,45 20 Write a function program to find whether the string is palindrome or not. 7 Write a program to reverse the number. (e.g > 654) Write a C program to find out Armstrong Numbers between 0 and 999. Example : 53 is an Armstrong number because =53 Jan Dec Unit 4: Array & String CPU (20003) Page 24

25 SR NO. QUESTIONS PAPER MARKS What will be the output of following code. #include main() { int x,y = 0; x = y * NULL; printf(\"%d\",x); } a) error c) 0 b) 0 d) garbage value Write a C- program read in an array of integers and print its 5 elements in reverse order Write a program in c for multiplication of two matrix Write a C program to count ODD and EVEN numbers from 7 given 0 numbers Write a C function to exchange two numbers and use it to 7 reverse an arrayof 0 integers accepted from user. 6 Write a C program to accept array of N integers and find the largest oddnumber as well as largest even number and display them Write a C program to Add two 3 X 3 Matrix. Dec Write a program to find maximum element from 3 3 metrics April Write a C program to count number of words in a given Junestring Write a C program to accept a string and print every third Junecharacter fromstring only if it is lower case. 20 Write a C function to reverse a word. Use it to reverse each Juneword of a stringgiven by user Write a C program to reverse a string given from keyboard. Don t use libraryfunction to reverse it Write a program to that read two string and compare them Juneusing thefunction strcmp( ) and print the message that first 2009 string is equal, less, greater than the second one. 4 Write a C program to read 0 numbers from user and store them in an Array.Display Sum, Minimum and Average of the numbers Jan Unit 5: Functions SR NO. QUESTIONS PAPER MARKS Write a function which receives number as argument and April- 6 return sum ofdigit of that number. 200 Unit 6: Pointers SR NO. QUESTIONS PAPER MARKS Write a program using pointer and function to determine the 4 CPU (20003) Page 25

26 length of string What will be the output of following code. void main() { int x[] = {,2,3,4,5}; printf( %d,fun(&x[2])); } int fun(int *a) { int i=0,sum=0; for(i=0;i<2;i++,a++) sum += *a; return(sum); } 20 3 What will be the output of following code. void main() { int ia = 6, ib = 6; int *P = &ia, *P2 = &ib; printf( \n %d,(*p)++); printf( \n %d,--(*p2)); printf( \n %d, ++(*P2)-*P); } 4 What will be the output of following code. main() { int a=3 b=5,c,*p,*q; p=&b; a=&a; c=*p % *q; ++(*p); } printf ( %d %d,*p,*q); printf ( \n %d %d, c,b); } 5 Write a function (using a pointer parameter) that calculate maximumelement from given array of integer numbers. 6 Write a program to do swapping of two elements using function with two pointers as arguments. Unit 7: Structure SR NO. QUESTIONS PAPER MARKS Write a program in c using structure to enter rollno, marks of 7 the three subject for 3 student and find total obtained by each student Define a structure named Student with roll_no, name and percentage as members. Read data of 5 students from user anddisplay them in proper format. Jan Objective Type Questions 2009 April Jan CPU (20003) Page 26

27 Unit- Introduction to computer and programming: Sr.No. Multiple Choice Question Paper Marks Which of the following is a part of primary memory of computer 205 a) PROM b) CD-ROM c) Pen-drive d) Floppy Disk 2 Which protocol is used to transfer files on internet 205 a) HTTP b) SMPT c)ftp d)telnet 3 Microprocessor of computer system is a part of :- 205 a) Memory c)output Device b) Input Device d) Processing Unit 4 Which is not a font style in MS-Word 205 a) Bold c) italic b) Superscript d) Regular 5 With which of the following all formulas in excel starts? 205 a) / c) $ b) * d) = 6 Which of the following is not one of PowerPoint view? a) Slide show view c) Presentation view b) Slide view d) Outline view In the evaluation of a computer language, all of the following 205 characteristics should be considered except? a) application oriented features c) readability b) efficiency d) hardware maintenance costs 8 Keyboard is the type of device 205 A. Input B. Pointing C. Output D. Sound 9 A document or image can be scanned in to digital form by using 205 A. Marker B. Printer C. Light pen D. Scanner 0 ALU is 205 A. Array Logic Unit B. Application Logic Unit C. Arithmetic Logic Unit D. None of these HTML stands for A. Hyper Text Makeup Language B. Hyper Text Markup Language C. Hyper Tech Markup Language D. None of these 205 Operating system is installed on A. Hard Disk B. Cache memory 2 C. Mother Board D. None of these Recycle bin is used for A. To store backup file 205 B. To restore deleted file / folder CPU (20003) Page 27

28 C. To store most frequently D. All the above 4 The process a user goes through to begin a computer system. A. Log out B. Log in C. Log off D. None of these 5 Which among following is not necessary for working of a standalone computer? A. RAM B. Hard Drive C. Operating System D. LAN card 6 What is algorithm? a)application code b)type of programming language c) None of above d) Step by step procedure for calculations 7 To Learn Computer, without going to classroom what will be other way a) Distance Learning b) I-Learning c) Digital Learning d) E-Learning 8 How to write E_mail Address? a) xyz@website.info b) xyz@website@info c)xyz.website.info d)xyzwebsite.info 9 What will be a meaning of KB of memory a) Kit Bit b) Kilo Byte c) Kernel Boot d) Key Block 20 Full Form of RAM? a) Random Access Memory b) Ready Application Module c) Remote Access Machine d) Read Access Memory 2 What is Computer Virus? a) Software b) Hardware c) a and b d) None of above 22 Full form of IP? a) Internet Principle b) Intercom Protocol c) Intranet Protocol d) Internet Protocol 23 What will be extension of Web Page s file? a).xls b).3gp c).html d).ppt 24 Software required to run the hardware is known as (a) Task Manager (b) Task Bar (c) Program Manager (d) Device Driver 25 Which the following is application software? (a) Compiler (b) Power Point (c) Debugger (d) None of the above 26 Which of the programming language is said to be machine independent language? , Jan , Jan Jan-205 Jan-205 Jan-205 CPU (20003) Page 28

29 (a) High Level Language (b) Machine Language (c) Assembly Language (d) All the Above 27 Which of the following is smallest Network? (a) MAN (b) LAN (c) WAN 28 FTP stands for (a) File Transport Protocol (b) File Transfer Protocol (c) Folder Transfer Protocol 29 When a key is pressed on keyboard, which standard is used for converting the keystroke into the corresponding bits (a) ANSI (b) ASCII (c) EBCDIC (d) ISO 30 Which one is input device? A) Monitor C) Keyboard B) CPU D) Printer 3 Which part of CPU perform calculations and make decision A) Alternate Logic Unit B) Arithmetic Logic Unit C) Arithmetic Local Unit D) Alternate Local Unit 32 The memory capacity of a computer is represented in A) Kilobits C) Kilobytes B) Memory chips D) None of the above 33 HTML is used to design A) Webpage C) Website B) Multimedia Objects D) Tables and frames 34 What type of memory is volatile? A) Cache C) RAM B) ROM D) Hard Drive 35 With regards to Addresses: A) They must always contain symbol B) They are case sensitive C) They can never contain space D) All of above Jan-205 Jan-205 Jan-205 Jan-205 Jan-205 Jan-205 Jan-205 Jan-205 Jan Which of the following will you find on an inkjet printer? (A) It has an ink ribbon. Dec-203 (B) It has an ink cartridge. (C) It has high voltage power supply. (D) It uses toner powder 37 Why is it important to keep Windows updated using the Dec-203 Windows update website or automatic updates? (A)To keep your system secure and to install critical updates. (B)To keep your system fast. (C)To keep your system optimized for the new game. (D)To keep your system from overheating. 38 Which protocol used to display web pages? Dec-203 (A) SNMP (B) SMPT (C) Telnet (D) HTTP 39 In Microsoft Excel you can use the horizontal and vertical Dec-203 CPU (20003) Page 29

30 scroll bar to (A) Split a worksheet to two panes (B) Edit the contents of a cell (C)View different rows and columns (D) View different worksheet 40 The system unit of a personal Computers typically contains all of the following except: (A) Microprocessors (B)Disk controller (C) Serial interface (D) Modem 4 Which of the following is a read only memory storage device? (A) Floppy Disc (B) CD-ROM (C) Hard Disk (D)None of these 42 BIOS is an abbreviation of (A) Basic Input Output System (B) Best Input Output System (C)Basic Input Output Symbol (D) Base Input Output System 43 A Pointer is? (A) A keyword used to create variables. (B) A variable that stores address of an instruction. (C) A variable that stores address of other variable. (D) All of above. 44 What do you call the translator which takes assembly language program as inputand produce machine language code as output? (A) Compiler (B) Interpreter (C) Debugger (D) Assembler Dec-203 Dec-203 Dec-203 Dec-203 Dec-203 Unit- 2 Fundamentals of C 45 printf() belongs to which library of c a) stdlib.h c) stdout.h b) stdio.h d) stdoutput.h What will be printed if we type the statement printf( %d\n, d ); a) 0 b) 00 c) error d) d 47 C is a language. a) High level b) Middle level c) Machine level d) Low level 48 Which header file is essential for using printf() function? a) text.h b) strings.h c) stdio.h d) strcmp.h 49 A declaration float a,b; occupies of memory? (a) bytes (b) 4bytes (c) 8byte (d) 6 bytes 50 What are the different types of real data types in C? (A) float, double. (B) short int, double, long int. (C) double, long int, float Jan Jan- 205 Dec- 203 CPU (20003) Page 30

31 (D) float, double, long double 5 Which of the following is a symbol for AND operator? (A) (B) &(C) &&(D) $$ 52 Which of the following is a correct statement? (A) Variable name must start with underscore (B) Variable name must have digit (C) Variable name must have white space character (D) Keyword cannot be a variable name Dec- 203 Dec- 203 Unit- 3 Control structure in C 54 The first expression in a for loop is a) Step value of loop b) Value of the counter variable c) Condition statement d) None of the above 55 Continue statement used for a) To continue to the next line of code b) To stop the current iteration and begin the next iteration from the beginning c) To handle run time error d) None of above 56 Which of following loop is executed at least once? a) do-while b) for c) if d) while Which among the following is a unconditional control 57 structure. a) goto b) for c) do-while d) if-else Unit- 4 Array & String 58 Which of the following is used as a string termination character? (a) 0 (b) \0 (c) /0 (d) None of these 59 Which of the following function is more appropriate for reading in a multiwordstring? (A) printf(); (B) scanf(); (C) gets(); (D) puts(); Jan- 205 Dec- 203 Unit- 5 Functions 60 Recursion is a process in which a function calls CPU (20003) Page 3

32 a) itself b) another function c) main() function d) none of the above 204 Unit- 6 Pointers 6 A pointer value refers to a) A float value b) An integer constant c) Any valid address in memory d) None 204 Unit- 7 Structure 62 Structure can contain elements of the same data type (a) true (b) false 63 Which of the following operator is used to select a member of a structure variable (a).(dot) (b),(comma) (c) : (colon) (d) ;(semicolon) Jan- 205 Jan- 205 Unit- 8 Dynamic Memory Allocation 64 Difference between calloc() and malloc() a) calloc() takes a single argument while malloc() needs two arguments b) malloc() takes a single argument while calloc() needs two arguments c) malloc() initializes the allocated memory to ZERO d) calloc() initializes the allocated memory to NULL 65 Which function reallocates memory? (a) realloc (b) calloc (c) malloc (d) None of these 205 Jan- 205 Unit- 9 File management 66 File manipulation functions in C are available in which header file? (a) streams.h (b) stdio.h (c) stdlib.h (d) files.h Jan- 205 CPU (20003) Page 32

SILVER OAK COLLEGE OF ENGINEERING & TECHNOLOGY AHMEDABAD

SILVER OAK COLLEGE OF ENGINEERING & TECHNOLOGY AHMEDABAD SILVER OAK COLLEGE OF ENGINEERING & TECHNOLOGY AHMEDABAD Computer Programming and Utilization (20003) BOOKLET 205-206 CPU (20003) Page INDEX Sr. No Topic Page No. Syllabus 3 2 Lesson Planning 5 3 Practical

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY GUJARAT TECHNOLOGICAL UNIVERSITY COMPUTER PROGRAMMING AND UTILIZATION (Modified on 4 th Feb 2014) SUBJECT CODE: 2110003 B.E. 1 st YEAR Type of course: Basic Prerequisite: N.A. Rationale: N.A. Teaching

More information

Questions Bank. 14) State any four advantages of using flow-chart

Questions Bank. 14) State any four advantages of using flow-chart Questions Bank Sub:PIC(22228) Course Code:-EJ-2I ----------------------------------------------------------------------------------------------- Chapter:-1 (Overview of C Programming)(10 Marks) 1) State

More information

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING SIDDARTHA INSTITUTE OF SCIENCE AND TECHNOLOGY:: PUTTUR Siddharth Nagar, Narayanavanam Road 517583 QUESTION BANK (DESCRIPTIVE) Subject with Code : PROGRAMMING FOR PROBLEM SOLVING (18CS0501) Course & Branch

More information

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR 603 203 FIRST SEMESTER B.E / B.Tech., (Common to all Branches) QUESTION BANK - GE 6151 COMPUTER PROGRAMMING UNIT I - INTRODUCTION Generation and

More information

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University Unit 1 Programming Language and Overview of C 1. State whether the following statements are true or false. a. Every line in a C program should end with a semicolon. b. In C language lowercase letters are

More information

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9 Fundamental of C Programming Unit I: Q1. What will be the value of the following expression? (2017) A + 9 Q2. Write down the C statement to calculate percentage where three subjects English, hindi, maths

More information

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100 Code: DC-05 Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100 NOTE: There are 11 Questions in all. Question 1 is compulsory and carries 16 marks. Answer to Q. 1. must be written in the space

More information

(i) Describe in detail about the classification of computers with their features and limitations(10)

(i) Describe in detail about the classification of computers with their features and limitations(10) UNIT I - INTRODUCTION Generation and Classification of Computers- Basic Organization of a Computer Number System Binary Decimal Conversion Problems. Need for logical analysis and thinking Algorithm Pseudo

More information

Kadi Sarva Vishwavidyalaya, Gandhinagar

Kadi Sarva Vishwavidyalaya, Gandhinagar Kadi Sarva Vishwavidyalaya, Gandhinagar MASTERS OF COMPUTER APPLICATION (MCA) Semester I (First Year) Subject: MCA-101 Programming for Logic Building (LDPL) SUB Teaching scheme Examination scheme Total

More information

Multiple Choice Questions ( 1 mark)

Multiple Choice Questions ( 1 mark) Multiple Choice Questions ( 1 mark) Unit-1 1. is a step by step approach to solve any problem.. a) Process b) Programming Language c) Algorithm d) Compiler 2. The process of walking through a program s

More information

PROGRAMMING IN C AND C++:

PROGRAMMING IN C AND C++: PROGRAMMING IN C AND C++: Week 1 1. Introductions 2. Using Dos commands, make a directory: C:\users\YearOfJoining\Sectionx\USERNAME\CS101 3. Getting started with Visual C++. 4. Write a program to print

More information

Important Questions for Viva CPU

Important Questions for Viva CPU Important Questions for Viva CPU 1. List various components of a computer system. i. Input Unit ii. Output Unit iii. Central processing unit (Control Unit + Arithmetic and Logical Unit) iv. Storage Unit

More information

Programming for Problem Solving 105A L T P Credit Major Minor Total Time

Programming for Problem Solving 105A L T P Credit Major Minor Total Time ES- Programming for Problem Solving 105A L T P Credit Major Minor Total Time Test Test 3 - - 3 75 25 100 3h Purpose To familiarize the students with the basics of Computer System and C Programming Course

More information

DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW. Evaluation Scheme & Syllabus. For. B.Tech. First Year (Programming for Problem Solving)

DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW. Evaluation Scheme & Syllabus. For. B.Tech. First Year (Programming for Problem Solving) DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW Evaluation Scheme & Syllabus For B.Tech. First Year (Programming for Problem Solving) On Choice Based Credit System (Effective from the Session: 2018-19)

More information

Gujarat University M. Sc. Computer Science [S. F.] Semester-1 Syllabus Gujarat Arts & Science College, Ahmedabad.

Gujarat University M. Sc. Computer Science [S. F.] Semester-1 Syllabus Gujarat Arts & Science College, Ahmedabad. B. Sc. Computer Science SEM-II EFFECTIVE FROM ACADEMIC YEAR - 2016-2017 CODE Titles Th. Pr. COM-103 ProgramminginC (Theory) 4 COM-104 ProgramminginC(Practical) 4 Teaching Scheme Unit Computer Theory COM

More information

Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks

Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks Subject Code: CC103-N Subject Title: FUNDAMENTALS OF PROGRAMMING Teaching scheme Total L T P Total Theory Credit Evaluation Scheme Mid Sem Exam CIA Pract. Total Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks

More information

M1-R4: Programing and Problem Solving using C (JAN 2019)

M1-R4: Programing and Problem Solving using C (JAN 2019) M1-R4: Programing and Problem Solving using C (JAN 2019) Max Marks: 100 M1-R4-07-18 DURATION: 03 Hrs 1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter

More information

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013 Information Technology, UTU 203 030000 Fundamentals of Programming Problems to be solved in laboratory Note: Journal should contain followings for all problems given below:. Problem Statement 2. Algorithm

More information

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit http://victory4sure.weebly.com/ For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit http://victory4sure.weebly.com/

More information

About Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals

More information

Course Title: C Programming Full Marks: Course no: CSC110 Pass Marks: Nature of course: Theory + Lab Credit hours: 3

Course Title: C Programming Full Marks: Course no: CSC110 Pass Marks: Nature of course: Theory + Lab Credit hours: 3 Detailed Syllabus : Course Title: C Programming Full Marks: 60+20+20 Course no: CSC110 Pass Marks: 24+8+8 Nature of course: Theory + Lab Credit hours: 3 Course Description: This course covers the concepts

More information

C-LANGUAGE CURRICULAM

C-LANGUAGE CURRICULAM C-LANGUAGE CURRICULAM Duration: 2 Months. 1. Introducing C 1.1 History of C Origin Standardization C-Based Languages 1.2 Strengths and Weaknesses Of C Strengths Weaknesses Effective Use of C 2. C Fundamentals

More information

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002 Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002 2 Practicals per week External marks :80 Internal Marks : 40 Total Marks :120 University

More information

CS6202 - PROGRAMMING & DATA STRUCTURES UNIT I Part - A 1. W hat are Keywords? Keywords are certain reserved words that have standard and pre-defined meaning in C. These keywords can be used only for their

More information

Syllabus of Diploma Engineering. Computer Engineering. Semester: II. Subject Name: Computer Programming. Subject Code: 09CE1104

Syllabus of Diploma Engineering. Computer Engineering. Semester: II. Subject Name: Computer Programming. Subject Code: 09CE1104 Semester: II Subject Name: Computer Programming Subject Code: 09CE1104 Objective: This Course will help to develop programming skills in the students, using a structured programming language `C'. Students

More information

CSCI 171 Chapter Outlines

CSCI 171 Chapter Outlines Contents CSCI 171 Chapter 1 Overview... 2 CSCI 171 Chapter 2 Programming Components... 3 CSCI 171 Chapter 3 (Sections 1 4) Selection Structures... 5 CSCI 171 Chapter 3 (Sections 5 & 6) Iteration Structures

More information

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C Sample Test Paper-I Marks : 25 Time:1 Hrs. Q1. Attempt any THREE 09 Marks a) State four relational operators with meaning. b) State the use of break statement. c) What is constant? Give any two examples.

More information

Reg. No. : Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, JANUARY First Semester GE 6151 COMPUTER PROGRAMMING

Reg. No. : Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, JANUARY First Semester GE 6151 COMPUTER PROGRAMMING wss Reg. No. : Question Paper Code : 37007 B.E./B.Tech. DEGREE EXAMINATION, JANUARY 2014. First Semester Civil Engineering GE 6151 COMPUTER PROGRAMMING (Common to all branches) (Regulation 2013) Time :

More information

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be

More information

Chapter1 Overview of computers

Chapter1 Overview of computers 1 Chapter1 Overview of computers 1. What is a computer? 2. Which is the earliest computing machine? 3. Who invented the pascaline? 4. What is Charles babbage known as? 5. What is the machine proposed by

More information

Split up Syllabus (Session )

Split up Syllabus (Session ) Split up Syllabus (Session- -17) COMPUTER SCIENCE (083) CLASS XI Unit No. Unit Name Marks 1 COMPUTER FUNDAMENTALS 10 2 PROGRAMMING METHODOLOGY 12 3 INTRODUCTION TO C++ 14 4 PROGRAMMING IN C++ 34 Total

More information

C & Data Structures syllabus

C & Data Structures syllabus syllabus Overview: C language which is considered the mother of all languages, is and will be the most sought after programming language for any beginner to jump start his career in software development.

More information

(Following Paper ID and Roll No. to be filled by the student in the Answer Book)

(Following Paper ID and Roll No. to be filled by the student in the Answer Book) F:/Academic/27 Refer/WI/ACAD/10 SHRI RAMSWAROOP MEMORIAL COLLEGE OF ENGG. & MANAGEMENT PAPER ID: 1602 (Following Paper ID and Roll No. to be filled by the student in the Answer Book) Roll No. B.Tech. SEM

More information

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam-613 403 Thanjavur 01. Define program? 02. What is program development cycle? 03. What is a programming language? 04. Define algorithm? 05. What

More information

Model Viva Questions for Programming in C lab

Model Viva Questions for Programming in C lab Model Viva Questions for Programming in C lab Title of the Practical: Assignment to prepare general algorithms and flow chart. Q1: What is a flowchart? A1: A flowchart is a diagram that shows a continuous

More information

Proposed Syllabus for F.Y.B.Sc.( Computer Science) North Maharashtra University, Jalgaon. F.Y.B.Sc.( Computer Science) (w.e.f.

Proposed Syllabus for F.Y.B.Sc.( Computer Science) North Maharashtra University, Jalgaon. F.Y.B.Sc.( Computer Science) (w.e.f. Proposed Syllabus for F.Y.B.Sc.( Computer Science) North Maharashtra University, Jalgaon F.Y.B.Sc.( Computer Science) (w.e.f. June-2015) Scheme Details Examination Pattern : 40 Internal : 60 External Periods

More information

COMPUTER APPLICATION

COMPUTER APPLICATION Total No. of Printed Pages 16 HS/XII/A.Sc.Com/CAP/14 2 0 1 4 COMPUTER APPLICATION ( Science / Arts / Commerce ) ( Theory ) Full Marks : 70 Time : 3 hours The figures in the margin indicate full marks for

More information

Question Bank (SPA SEM II)

Question Bank (SPA SEM II) Question Bank (SPA SEM II) 1. Storage classes in C (Refer notes Page No 52) 2. Difference between function declaration and function definition (This question is solved in the note book). But solution is

More information

Long Questions. 7. How does union help in storing the values? How it differs from structure?

Long Questions. 7. How does union help in storing the values? How it differs from structure? Long Questions April/May - 2010 Marks 1. Explain arithmetic operators and their precedence in C. 2. Explain the term structured programming with help of example 3. Write a program to read 10 numbers and

More information

KLiC C Programming. (KLiC Certificate in C Programming)

KLiC C Programming. (KLiC Certificate in C Programming) KLiC C Programming (KLiC Certificate in C Programming) Turbo C Skills: The C Character Set, Constants, Variables and Keywords, Types of C Constants, Types of C Variables, C Keywords, Receiving Input, Integer

More information

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites:

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites: C Programming Code: MBD101 Duration: 10 Hours Prerequisites: You are a computer science Professional/ graduate student You can execute Linux/UNIX commands You know how to use a text-editing tool You should

More information

C Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS

C Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS C Programming C SYLLABUS COVERAGE Introduction to Programming Fundamentals in C Operators and Expressions Data types Input-Output Library Functions Control statements Function Storage class Pointer Pointer

More information

NORTH MAHARASHTRA UNIVERSITY, JALGAON. SYLLABUS FOR F.Y.B.Sc. COMPUTER SCIENCE (With effect from June 2012)

NORTH MAHARASHTRA UNIVERSITY, JALGAON. SYLLABUS FOR F.Y.B.Sc. COMPUTER SCIENCE (With effect from June 2012) NORTH MAHARASHTRA UNIVERSITY, JALGAON SYLLABUS FOR F.Y.B.Sc. COMPUTER SCIENCE (With effect from June 2012) Sem I Sem II Course Code Title Course Code Title UG CS111 Basics Of UG CS112 Basics Of DBMS Computer

More information

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI 2017-2018 Worksheet No. 1 Topic : Getting Started With C++ 1. Write a program to generate the following output: Year Profit% 2011 18 2012 27 2013 32

More information

C programming basics T3-1 -

C programming basics T3-1 - C programming basics T3-1 - Outline 1. Introduction 2. Basic concepts 3. Functions 4. Data types 5. Control structures 6. Arrays and pointers 7. File management T3-2 - 3.1: Introduction T3-3 - Review of

More information

UNIT- 3 Introduction to C++

UNIT- 3 Introduction to C++ UNIT- 3 Introduction to C++ C++ Character Sets: Letters A-Z, a-z Digits 0-9 Special Symbols Space + - * / ^ \ ( ) [ ] =!= . $, ; : %! &? _ # = @ White Spaces Blank spaces, horizontal tab, carriage

More information

AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session ) Contents

AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session ) Contents AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session- 2017-18) Month July Contents UNIT 1: COMPUTER FUNDAMENTALS Evolution of computers; Basics of computer and its operation;

More information

Academic Programme: B.Sc. I Year. Computer Science (Optional) Hours. Fundamentals of Computer Hours.

Academic Programme: B.Sc. I Year. Computer Science (Optional) Hours. Fundamentals of Computer Hours. Swami Ramanand Teerth Marathwada University, Nanded B.Sc First Year Semester Pattern Computer Science (Optional) With Effect from 2009-10 Aims and Objectives: 1. To provide a professional level of competence

More information

C Programming Multiple. Choice

C Programming Multiple. Choice C Programming Multiple Choice Questions 1.) Developer of C language is. a.) Dennis Richie c.) Bill Gates b.) Ken Thompson d.) Peter Norton 2.) C language developed in. a.) 1970 c.) 1976 b.) 1972 d.) 1980

More information

Swami Ramanand Teerth Marathwada University, Nanded

Swami Ramanand Teerth Marathwada University, Nanded Swami Ramanand Teerth Marathwada University, Nanded Syllabus B. Sc. First Year COMPUTER SCIENCE Semester System (MCQ Pattern) (To Be Implemented From Academic Year 2013-2014) Theory/ Practical Semester

More information

Introduction to C Language (M3-R )

Introduction to C Language (M3-R ) Introduction to C Language (M3-R4-01-18) 1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in OMR answer sheet supplied with the question paper, following

More information

Pace University. Fundamental Concepts of CS121 1

Pace University. Fundamental Concepts of CS121 1 Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction

More information

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23. Subject code - CCP01 Chapt Chapter 1 INTRODUCTION TO C 1. A group of software developed for certain purpose are referred as ---- a. Program b. Variable c. Software d. Data 2. Software is classified into

More information

Tribhuvan University Institute of Science and Technology 2065

Tribhuvan University Institute of Science and Technology 2065 1CSc.102-2065 2065 Candidates are required to give their answers in their own words as for as practicable. 1. Draw the flow chart for finding largest of three numbers and write an algorithm and explain

More information

Contents. Preface. Introduction. Introduction to C Programming

Contents. Preface. Introduction. Introduction to C Programming c11fptoc.fm Page vii Saturday, March 23, 2013 4:15 PM Preface xv 1 Introduction 1 1.1 1.2 1.3 1.4 1.5 Introduction The C Programming Language C Standard Library C++ and Other C-Based Languages Typical

More information

Downloaded From :

Downloaded From : 04-012-2011 Test V Computer Knowledge 201. The operation of combining two cells into a single cell in Excel is referred to as (1) Join Cells (2) Merge Cells (3) Merge Table (4) Join Table 202. Which of

More information

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE CLASS XI

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE CLASS XI KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE 2015-2016 CLASS XI Month Portion to be covered Th Prac July 2015 Computer Fundamentals 25 8 Classification of computers:

More information

Reg. No. : Question Paper Code : 27157

Reg. No. : Question Paper Code : 27157 WK 3 Reg. No. : Question Paper Code : 27157 B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2015. Time : Three hours Second Semester Computer Science and Engineering CS 6202 PROGRAMMING AND DATA STRUCTURES

More information

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be

More information

Dept. of Computer Sc., SDP College for Women, Ludhiana

Dept. of Computer Sc., SDP College for Women, Ludhiana Dept. of Computer Sc., SDP College for Women, Ludhiana QUESTION BANK PROBLEM SOLVING THROUGH "C" BCA 1 st semester (2018-19) 1. Structured programming has been called a revolution in programming & is considered

More information

'C' Programming Language

'C' Programming Language F.Y. Diploma : Sem. II [DE/EJ/ET/EN/EX] 'C' Programming Language Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 70 Q.1 Attempt any FIVE of the following : [10] Q.1(a) Define pointer. Write syntax

More information

MEHRAN UNIVERSITY OF ENGINEERING AND TECHNOLOGY, JAMSHORO. FIRST TERM FIRST YEAR (1 ST TERM) B.E.(ELECTRICAL) REGULAR EXAMINATION 2009 OF 09-BATCH.

MEHRAN UNIVERSITY OF ENGINEERING AND TECHNOLOGY, JAMSHORO. FIRST TERM FIRST YEAR (1 ST TERM) B.E.(ELECTRICAL) REGULAR EXAMINATION 2009 OF 09-BATCH. ID.No./Seat No. MEHRAN UNIVERSITY OF ENGINEERING AND TECHNOLOGY, JAMSHORO. FIRST TERM FIRST YEAR (1 ST TERM) B.E.(ELECTRICAL) REGULAR EXAMINATION 2009 OF 09-BATCH. COMPUTER APPLICATION & E-LEARNING Dated:

More information

Syllabus for Computer Science General Part I

Syllabus for Computer Science General Part I Distribution of Questions: Part I Q1. (Compulsory: 20 marks). Any ten questions to be answered out of fifteen questions, each carrying two marks (Group A 3 questions, Group B, Group C and Group D 4 questions

More information

Name :. Roll No. :... Invigilator s Signature : INTRODUCTION TO PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

Name :. Roll No. :... Invigilator s Signature : INTRODUCTION TO PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 Name :. Roll No. :..... Invigilator s Signature :.. 2011 INTRODUCTION TO PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give

More information

Subject: Fundamental of Computer Programming 2068

Subject: Fundamental of Computer Programming 2068 Subject: Fundamental of Computer Programming 2068 1 Write an algorithm and flowchart to determine whether a given integer is odd or even and explain it. Algorithm Step 1: Start Step 2: Read a Step 3: Find

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 60 20 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E I SEMESTER GE85- Problem Solving and Python Programming Regulation 207 Academic

More information

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language 1 History C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC

More information

Programming for Engineers Iteration

Programming for Engineers Iteration Programming for Engineers Iteration ICEN 200 Spring 2018 Prof. Dola Saha 1 Data type conversions Grade average example,-./0 class average = 23450-67 893/0298 Grade and number of students can be integers

More information

SUBJECT COMPUTER APPLICATION PAGE 1

SUBJECT COMPUTER APPLICATION PAGE 1 BACHELOR OF ARTS (B.A.) (THREE YEAR DEGREE COURSE) SUBJECT COMPUTER APPLICATION PAGE 1 B.A.(COMPUTER APPLICATION) COURSE STRUCTURE FIRST YEAR PAPER 101: Computer Fundamentals PAPER 102: Operating System

More information

P.G.TRB - COMPUTER SCIENCE. c) data processing language d) none of the above

P.G.TRB - COMPUTER SCIENCE. c) data processing language d) none of the above P.G.TRB - COMPUTER SCIENCE Total Marks : 50 Time : 30 Minutes 1. C was primarily developed as a a)systems programming language b) general purpose language c) data processing language d) none of the above

More information

UNIT IV 2 MARKS. ( Word to PDF Converter - Unregistered ) FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING

UNIT IV 2 MARKS. ( Word to PDF Converter - Unregistered )   FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING ( Word to PDF Converter - Unregistered ) http://www.word-to-pdf-converter.net FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING INTRODUCTION TO C UNIT IV Overview of C Constants, Variables and Data Types

More information

CS201 Some Important Definitions

CS201 Some Important Definitions CS201 Some Important Definitions For Viva Preparation 1. What is a program? A program is a precise sequence of steps to solve a particular problem. 2. What is a class? We write a C++ program using data

More information

I BCA[ ] SEMESTER I CORE: C PROGRAMMING - 106A Multiple Choice Questions.

I BCA[ ] SEMESTER I CORE: C PROGRAMMING - 106A Multiple Choice Questions. 1 of 22 8/4/2018, 4:03 PM Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Reaccredited at the 'A' Grade Level by the NAAC and ISO 9001:2008

More information

ESC101N: Fundamentals of Computing End-sem st semester

ESC101N: Fundamentals of Computing End-sem st semester ESC101N: Fundamentals of Computing End-sem 2010-11 1st semester Instructor: Arnab Bhattacharya 8:00-11:00am, 15th November, 2010 Instructions 1. Please write your name, roll number and section below. 2.

More information

C: How to Program. Week /Mar/05

C: How to Program. Week /Mar/05 1 C: How to Program Week 2 2007/Mar/05 Chapter 2 - Introduction to C Programming 2 Outline 2.1 Introduction 2.2 A Simple C Program: Printing a Line of Text 2.3 Another Simple C Program: Adding Two Integers

More information

M1-R4: Programing and Problem Solving using C (JULY 2018)

M1-R4: Programing and Problem Solving using C (JULY 2018) M1-R4: Programing and Problem Solving using C (JULY 2018) Max Marks: 100 M1-R4-07-18 DURATION: 03 Hrs 1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter

More information

UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS

UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS All programs need to be submitted on 7th Oct 206 by writing in hand written format in A4 sheet. Flowcharts, algorithms, source codes and outputs

More information

Chapter 1 & 2 Introduction to C Language

Chapter 1 & 2 Introduction to C Language 1 Chapter 1 & 2 Introduction to C Language Copyright 2007 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 1 & 2 - Introduction to C Language 2 Outline 1.1 The History

More information

Programming for Engineers Arrays

Programming for Engineers Arrays Programming for Engineers Arrays ICEN 200 Spring 2018 Prof. Dola Saha 1 Array Ø Arrays are data structures consisting of related data items of the same type. Ø A group of contiguous memory locations that

More information

Fundamental of Programming (C)

Fundamental of Programming (C) Borrowed from lecturer notes by Omid Jafarinezhad Fundamental of Programming (C) Lecturer: Vahid Khodabakhshi Lecture 3 Constants, Variables, Data Types, And Operations Department of Computer Engineering

More information

Short Notes of CS201

Short Notes of CS201 #includes: Short Notes of CS201 The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system

More information

Computers Programming Course 5. Iulian Năstac

Computers Programming Course 5. Iulian Năstac Computers Programming Course 5 Iulian Năstac Recap from previous course Classification of the programming languages High level (Ada, Pascal, Fortran, etc.) programming languages with strong abstraction

More information

Class 9 Saturday, Feb 14

Class 9 Saturday, Feb 14 Jahangirabad Institute of technology Er.Amit Kr Pathak Computer System & Programming in C, NCS-201 Semester II, 2016(Odd Sem.) MASTER SCHEDULE [U-1] week 1 Class 1 Monday, Feb 1 Introduction to digital

More information

Introduction. C provides two styles of flow control:

Introduction. C provides two styles of flow control: Introduction C provides two styles of flow control: Branching Looping Branching is deciding what actions to take and looping is deciding how many times to take a certain action. Branching constructs: if

More information

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and #include The Use of printf() and scanf() The Use of printf()

More information

PROGRAMS. EXCELLENT ACADEMY OF ENGINEERING. Telephone: / NORMAL PROGRAM

PROGRAMS. EXCELLENT ACADEMY OF ENGINEERING. Telephone: / NORMAL PROGRAM PROGRAMS NORMAL PROGRAM 1. Wap to display months in words where month in number is input. 2. Wap to print Fibonacci series till n elements. 3. Wap to reverse 4 digit numbers. 4. Wap to accept a number

More information

DETAILED SYLLABUS INTRODUCTION TO C LANGUAGE

DETAILED SYLLABUS INTRODUCTION TO C LANGUAGE COURSE TITLE C LANGUAGE DETAILED SYLLABUS SR.NO NAME OF CHAPTERS & DETAILS HOURS ALLOTTED 1 INTRODUCTION TO C LANGUAGE About C Language Advantages of C Language Disadvantages of C Language A Sample Program

More information

CS201 - Introduction to Programming Glossary By

CS201 - Introduction to Programming Glossary By CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with

More information

ST. MARY S COLLEGE FORM 4

ST. MARY S COLLEGE FORM 4 Term 1 Week 1 Week 2 FUNDAMENTALS OF HARDWARE AND SOFTWARE 1. The generalpurpose computer system 2. Functions of the major hardware components of a computer system 3. Functions and uses of primary storage

More information

1) Which of the following is an example of a programming language? 1) A) Microsoft Word B) English C) HTML D) Java

1) Which of the following is an example of a programming language? 1) A) Microsoft Word B) English C) HTML D) Java FALL 07-08 CIS105(CP105)/CE205 MIDTERM-2 EXAM /FACULTY OF ECON. &ADMIN. SCIENCES OF EUL Student Registration No: Instructor: Prof.Dr.Hüseyin Oğuz Student Name-Surname: Dept. of Computer Information Systems

More information

CHOICE BASED CREDIT SYSTEM (With effect from )

CHOICE BASED CREDIT SYSTEM (With effect from ) B.Sc. Computer Science Syllabus Under the CHOICE BASED CREDIT SYSTEM (With effect from 2017-18) DEPARTMENT OF COMPUTER SCIENCE University College,TU,Nizamabad-503322 Syllabus for Computer Science (With

More information

DEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR

DEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR DEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR SYLLABUS / QUESTION BANK Class & Semester : I ECE & II Semester Subject Code : CS152 Subject Name :

More information

Chapter 2 - Introduction to C Programming

Chapter 2 - Introduction to C Programming Chapter 2 - Introduction to C Programming 2 Outline 2.1 Introduction 2.2 A Simple C Program: Printing a Line of Text 2.3 Another Simple C Program: Adding Two Integers 2.4 Memory Concepts 2.5 Arithmetic

More information

A Fast Review of C Essentials Part I

A Fast Review of C Essentials Part I A Fast Review of C Essentials Part I Structural Programming by Z. Cihan TAYSI Outline Program development C Essentials Functions Variables & constants Names Formatting Comments Preprocessor Data types

More information

BCA-105 C Language What is C? History of C

BCA-105 C Language What is C? History of C C Language What is C? C is a programming language developed at AT & T s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. C seems so popular is because it is

More information

COURSE OUTLINE & WEEK WISE BREAKAGE

COURSE OUTLINE & WEEK WISE BREAKAGE COURSE OUTLINE & WEEK WISE BREAKAGE Week wise Course outline of Computer Fundamentals & Programming (CE-100) 3+1 (Batch 2018-Electronic Engineering) Dated: 13-12-2017 Course Coordinator: Saeed Azhar WEEK

More information

C- PROGRAMMING (3:0:0) Sub code : CS1C01/CS2C01 CIE : 50%Marks Hrs/week : 03 SEE : 50%Marks SEE Hrs : 03 Hours Max. Marks: 100 Course Outcomes:

C- PROGRAMMING (3:0:0) Sub code : CS1C01/CS2C01 CIE : 50%Marks Hrs/week : 03 SEE : 50%Marks SEE Hrs : 03 Hours Max. Marks: 100 Course Outcomes: C- PROGRAMMING (3:0:0) Sub code : CS1C01/CS2C01 CIE : 50%Marks Hrs/week : 03 SEE : 50%Marks SEE Hrs : 03 Hours Max. Marks: 100 Course Outcomes: On successful completion of the course, the students will

More information

Q1. Multiple Choice Questions

Q1. Multiple Choice Questions Rayat Shikshan Sanstha s S. M. Joshi College, Hadapsar Pune-28 F.Y.B.C.A(Science) Basic C Programing QUESTION BANK Q1. Multiple Choice Questions 1. Diagramatic or symbolic representation of an algorithm

More information

Q 1. Attempt any TEN of the following:

Q 1. Attempt any TEN of the following: Subject Code: 17212 Model Answer Page No: 1 / 26 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The

More information