(UGC - AUTONOMOUS) I B. Tech I Semester Supplementary Examinations, Aug/Sep 2023 COMPUTATIONAL THINKING AND PROGRAMMING (Common to All) Time: 3 Hours Max Marks: 60 Note: This Question Paper contains two Parts A and B Part A is compulsory which carries 10 marks. Ten questions from five units. Answer all questions in Part A at one place only. Part-B consists of 5 Questions (numbered from 2 to 6) carrying 10 marks each. Each of these questions is from one unit and may contain a, b, c as sub-questions. For each question there will be an either/or choice (that means there will be two questions from each unit and the student should answer only one question). PART – A (10x1 = 10 Marks) 1. Marks Bloom Level CO a Define Algorithm 1 1 1 b Draw the flow chart for if, if-else 1 2 2 c What is type conversion? Write the types of conversion 1 1 1 d Make us of an example and illustrate the usage of Continue 1 3 2 e What is an array? 1 1 3 f What is a function? Write the types of functions 1 1 4 g Compare and contrast gets() and scanf(). 1 4 4 h What is pointer 1 1 3 i What is meant by self-referential structures 1 1 5 j What is the use of rewind( )? 1 1 5 PART – B (5x10 = 50 Marks) Marks Bloom Level CO 2 .a Demonstrate an algorithm to find LCM of two numbers 5+5 2 1 Explain the basic structure of C Program OR 2.b What is the need of explicit type conversion in C? How to cast the data? 5+5 2 1 Demonstrate a C program to swap two number without using temporary variable *** 3.a Demonstrate a ‘C’ program to print all prime numbers from 1 to N 5+5 2 2 using while loop? Demonstrate a C program to find biggest among three numbers OR 3.b Demonstrate a C program that reads from the user an arithmetic 5+5 2 2 operator and two operands, perform the corresponding arithmetic operation on the operands using switch statement What are unconditional control statements? Explain any two with syntax and example *** 4.a Demonstrate a C program to find the largest element in an array 5+5 2 3 Demonstrate a C program for matrix multiplication OR 4.b What are actual parameters and formal parameters? Illustrate with 5+5 1,2 3 example Compare and contrast static and auto storage class with the help of an example *** 5.a What is dynamic memory allocation? Explain the standard library 5+5 1,2 4 functions to manage dynamic memory allocation? Demonstrate a C program to reverse a string without using predefined functions OR 5.b What is pointer? Explain how the pointer variable declared and 5+5 1,2 4 initialized? Demonstrate a program to count the number of times a given character appears in the string. *** 6.a What is structure? Write a C program to get and print the details of your 5+5 1,2 5 department (using structures and functions). Explain fseek, rewind and ftell functions in C OR 6.b How we can define structure with in a structure? Explain with a sample 5+5 1,2 5 program Demonstrate a program to read two file names, append the first file content at the end of the second file content.
F 5519 (Pages: 2) No Name .. M.C.A (Affiliatede Colleges) Degree Examination, February 2006 First Semester Problem Solving and Computer Programming in "C"
Python Programming 3 BOOKS IN 1 Learn Machine Learning, Data Science and Analysis With A Crash Course For Beginners. Included Coding Exercises For Artificial Intelligence, Numpy, Pandas and Ipython.