Exam Details

Subject introduction to programming language through c
Paper
Exam / Course bachelor of computer applications
Department
Organization Mizoram University
Position
Exam Date 2018
City, State mizoram,


Question Paper

II/BCA/201 Student's Copy
2 0 1 8
2nd Semester
BACHELOR OF COMPUTER APPLICATIONS
Paper BCA-201
Introduction to Programming Language through C
Old Course
Full Marks 75
Time 3 hours
PART A—OBJECTIVE
Marks 25
The figures in the margin indicate full marks for the questions
SECTION—A
Marks 15
1. Tick the correct answer in the brackets provided 1×10=10
Which of the following special symbol is allowed in a variable name?
(Asterisk) (Pipeline)
(Hyphen) (Underscore)
How would you round off a value from 1.66 to 2.0?
ceil(1.66) floor(1.66)
roundup(1.66) roundto(1.66)
/553 1 Contd.
What is the output of the following C code?
#include <stdio.h>
int main(

do
printf("In while loop");
while
printf("After loop
");

In while loop
In while loop after loop
After loop
Infinite loop
The minimum number of iteration for a do while loop is
0
1 2
Input/output function prototypes and macros are defined in which
header file?
conio.h stdlib.h
stdio.h dos.h
Global variables are —— variables.
internal
external
internal and external
None of the above
What does the following declaration mean?
int
ptr is an array of pointers to 10 integers
ptr is a pointer to an array of 10 integers
ptr is an array of 10 integers
ptr is a pointer to an array
II/BCA/201 2 Contd.
How will you print
on the screen?
printf("
"); echo

The correct syntax to use typedef for struct is
typedef struct temp

int
}TEMP;
typedef struct

int
}TEMP;
struct temp

int

typedef struct temp TEMP;
All of the above
What is the similarity among a structure, union and enumeration?
All of them let you define new values
All of them let you define new data types
All of them let you define new pointers
All of them let you define new structures
2. State whether the following are True or False by putting Tick
mark 1×5=5
The operator increments the operand by whereas the operator
decrements it by 1.
T F
Continue keyword skips one iteration of loop.
T F
Functions cannot return more than one value at a time.
T F
II/BCA/201 3 Contd.
A pointer to a block of memory is effectively same as an array.
T F
A union cannot be nested in a structure.
T F
SECTION—B
Marks 10
Answer the following questions 2×5=10
1. Define recursion. Give example.
2. Define constant variable. How do we declare variable?
3. Differentiate between structure and union.
4. Define the functions printf( and scanf(
5. What is meant by infinite loop?
PART B—DESCRIPTIVE
Marks 50
The figures in the margin indicate full marks for the questions
1. What is operator in Define the different types of operator in C. 7
What is the use of operator precedence in Give example. 3
OR
Define data types. List out and explain different data types in C. 7
Define the basic structure of C program with example. 3
2. Write a simple program to demonstrate if…else statement. 5
Define enumeration. Write a simple program to illustrate enumeration. 5
OR
Write a simple program to demonstrate FOR loop. 5
Write a simple program to demonstrate Switch statement. 5
II/BCA/201 4 Contd.
3. Define arrays. Explain the different types of array. 6
Define the scope and lifetime of a variable. 4
OR
Explain insertion sort with example. 5
What is the difference between call by value and call by reference? 5
4. Write a C program for concatenation of two strings. 5
Define pointers. How do you declare and initialize pointers in 5
OR
Write a C program for comparing two strings. 5
What are arrays of pointers? Write a simple program to illustrate arrays
of pointers. 5
5. What is file? Write a simple program to illustrate opening and closing of
file. 4
What are user-defined data types? 2
Define array of structure with example. 4
OR
Define structure. Write a simple example to demonstrate structure. 7
Explain the different input and output operations in file. 3


Other Question Papers

Subjects

  • accounting and financial management
  • analysis and design of algorithms
  • artificial intelligence
  • assembly language programming
  • c++ programming
  • computer graphics and multimedia
  • computer network security
  • computer networking
  • computer organization and architecture
  • data mining and warehousing
  • data structure using c
  • database management systems
  • digital computer fundamentals
  • english language & communication skills
  • environment and ecology
  • fundamentals of tcp/ip
  • gui programming
  • internet and e-commerce
  • introduction to computer architecture and organisation
  • introduction to e-governance
  • introduction to information technology
  • introduction to java programming
  • introduction to programming language through c
  • it acts and cyber laws
  • java programming
  • management information systems
  • mathematics – iii (numerical analysis)
  • mathematics –ii (discrete mathematics)
  • mathematics-i (bridge course)
  • microprocessors
  • networking—i
  • object oriented programming in c++
  • operating systems
  • operation research
  • oracle laboratory
  • pc applications and internet technology
  • personality and soft skills development
  • programming in c
  • programming language through c
  • programming with vb 2010 with mini project
  • project work
  • quality management and control
  • simulation and modeling
  • software engineering
  • software project management
  • system analysis and design
  • tally erp 9.0
  • theory of computing
  • unix and shell programming