[go: up one dir, main page]

0% found this document useful (0 votes)
40 views3 pages

IP Model Paper

This document outlines the examination structure for the 'Introduction to Programming' course at Vishnu Institute of Technology for January 2024. It includes details on the exam format, topics covered in various units, and specific questions for both Part-A and Part-B of the exam. Key topics include data types, control structures, arrays, pointers, user-defined data types, functions, and file handling.

Uploaded by

anusha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views3 pages

IP Model Paper

This document outlines the examination structure for the 'Introduction to Programming' course at Vishnu Institute of Technology for January 2024. It includes details on the exam format, topics covered in various units, and specific questions for both Part-A and Part-B of the exam. Key topics include data types, control structures, arrays, pointers, user-defined data types, functions, and file handling.

Uploaded by

anusha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

H.T.

No: Course Code No:

VISHNU INSTITUTE OF TECHNOLOGY (AUTONOMOUS)


I B. Tech I Semester Regular Examinations, Jan – 2024

Introduction to Programming
(Common to all Branches)

Time: 3hours Max. Marks: 70M


Note:1. Question Paper consists of two parts (Part-A and Part-B)
2. Answer all the questions in Part-A
3. Answer either a or b questions from Question number 2 to 6 in Part-B

PART –A
I What is the time complexity of an algorithm? L CO [2M]
1 1
II What is the difference between a variable and a constant in programming? L CO [2M]
1 1
III Write the syntax of do while in C. L CO [2M]
1 2
1 IV Write a C program to find the greater of two numbers. L CO [2M]
1 2
V Define String? Write the syntax for declaring a string? L CO [2M]
1 3
VI Briefly discuss the initialization of strings in ‘C’? L CO [2M]
2 3
VII What is pointer dereferencing? L CO [2M]
1 4
VII What are user defined data types? L CO [2M]
I 1 4
IX What is the scope and lifetime of the variable? L CO [2M]
1 5
X Briefly discuss the modes for opening binary files? L CO [2M]
1 5
PART –B
UNIT – I
What are the primary data types in the C programming language and what L CO [5M]
2(a) I
is the size and range of each data type? 2 1
II What is type conversion? Explain two types of conversion with examples. [5M]
OR
2(b) I What is an algorithm? Explain the different characteristics of an algorithm. L CO [5M]
4 1
II Distinguish between bottom-up and top-down approaches. [5M]
UNIT – II
3(a) I Explain the following conditional statements with an example. L CO [6M]
a) if-else b) switch 2 2
II Write a C program to find the roots of the quadratic equation. L CO [5M]
2 2
OR
What is the purpose of the break statement in C? Provide an L CO [6M]
3(b) I 2 2
example of a loop where the break statement is used.
Write a C program to find if the given year is a leap year or not. L CO [4M]
II
4 2
UNIT – III
I Explain the array indexing in the C language? L CO [5M]
4(a)
2 3
II Write a C Program to find the min and max element of a 1-D integer array. L CO [5M]
2 3
OR
Explain how to declare and initialize a two-dimensional array with an L CO [6M]
4(b) I
example program? 2 3
Write a C program to perform multiplication in between two matrices? L CO [4M]
II
4 3
UNIT – IV
5(a) I How do you declare a pointer in C language? Explain the syntax with an L CO [6M]
example? 1 4
II Write a C function to find the length of a string? L CO [4M]
4 4
OR
5(b) I Differentiate between structures and unions in C language? L CO [5M]
3 4
II Write a C program to copy one structure variable to another structure of L CO [5M]
the same type. 4 4
UNIT – V
6 (a) I Define user defined function? Explain about function declaration, function L CO [5M]
call and function definition? 3 5
II Write a C function that accepts two integers as parameters and returns their L CO [5M]
sum? 4 5
OR
I Discuss the steps involved in opening, reading, and closing a file in C. L CO [5M]
6(b) 3 5
II Write a C program to write and read text into a file. L CO [5M]
3 5

*****

UNIT I Introduction to Programming and Problem Solving


History of Computers, Basic organization of a computer: ALU, input-output units, memory,
program counter, Introduction to Programming Languages, Basics of a Computer Program-
Algorithms, flowcharts (Using Dia Tool), pseudo code. Introduction to Compilation and
Execution, Primitive Data Types, Variables, and Constants, Basic Input and Output, Operations,
Type Conversion, and Casting.
Problem solving techniques: Algorithmic approach, characteristics of algorithm, Problem solving
strategies: Top-down approach, Bottom-up approach, Time and space complexities of
algorithms.
UNIT II Control Structures
Simple sequential programs Conditional Statements (if, if-else, switch), Loops (for, while,
do-while) Break and Continue.
UNIT III Arrays and Strings
Arrays indexing, memory model, programs with array of integers, two dimensional arrays,
Introduction to Strings.
UNIT IV Pointers & User Defined Data types
Pointers, dereferencing and address operators, pointer and address arithmetic, array manipulation
using pointers, User-defined data types-Structures and Unions.
UNIT V Functions & File Handling
Introduction to Functions, Function Declaration and Definition, Function call Return Types and
Arguments, modifying parameters inside functions using pointers, arrays as parameters. Scope
and Lifetime of Variables, Basics of File Handling

You might also like