Exam Details
Subject | programming language through c | |
Paper | ||
Exam / Course | bachelor of computer applications | |
Department | ||
Organization | Mizoram University | |
Position | ||
Exam Date | 2018 | |
City, State | mizoram, |
Question Paper
I/BCA/105 Student's Copy
Professional Course Examination, November 2018
1st Semester
BACHELOR OF COMPUTER APPLICATIONS
Course BCA-105
Programming Language Through C
Revised
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
Tick the correct answer in the brackets provided 1×10=10
1. Which of the following is not a valid variable name?
_bca_90
90_bca_
bca29
programmingLanguage_
/363 1 Contd.
2. Which of the following functions reads multiple character from the
keyboard?
getchar(
getche(
getch(
gets(
3. The statement that is used in C to branch unconditionally from one point
to another in the program is
if
if...else...
goto
switch
4. Which of the following is exit-controlled loop?
while
do...while
for
if
5. Function header does not consist of
function type
function name
local variable declaration
list of parameters
I/BCA/105 2 Contd.
6. In an array, subscript begins at
zero
one
n
n
7. When operator is placed before a pointer variable in an expression, it
means
address of
value at address
address of pointer variable
address of main
8. The string function that compares two strings is
strlen(
strcat(
strcmp(
strcomp(
9. The function that reads an integer from a file is
putw(
getw(
fseek(
ftell(
I/BCA/105 3 Contd.
10. Which of the following statements is not valid?
C does not permit initialization of individual structure members within
the template.
Initialization must be done only in the declaration of the actual
variables.
The order of values enclosed in braces must match order of members
in the structure definition.
It is not permitted to have partial initialization.
Indicate whether the following statements are True or False by putting
a Tick mark in the brackets provided 1×5=5
11. (increment operator) has higher precedence than (unary plus)
operator.
T F
12. The do statement executes the body of the loop before the test is
performed.
T F
13. An array is a variable-sized collection of elements of the same data type.
T F
14. int is a valid pointer declaration.
T F
15. File can store unrelated data.
T F
I/BCA/105 4 Contd.
SECTION—B
Marks 10
Answer the following questions 2×5=10
16. Distinguish between int main(void) and void main(int).
17. What is a counter-controlled loop? Give example.
18. Differentiate between pre-defined functions and user-defined functions.
19. Write the difference between and "a".
20. Write a C program for opening a file 'bca.txt' in write mode.
PART B—DESCRIPTIVE
Marks 50
The figures in the margin indicate full marks for the questions
1. Explain the process of compiling and running a C program by writing
a flowchart. 10
OR
What are C tokens? Explain each by giving a suitable example. 6
Write the format for scanf( function and explain each field. 4
I/BCA/105 5 Contd.
2. Write the general format for switch statement by explaining each
field. 5
Write the flowchart for nested if...else statement. 5
OR
Write the general format of FOR loop and explain each field. Give
example. 5
Write a C program to multiply 5 numbers input from the keyboard
using while loop. 5
3. Write a C program to sort an element using bubble sort. 6
Explain the general format for declaring 2-dimensional array. Give
example. 4
OR
Explain any three variables storage class by giving a suitable example. 6
Write four advantages of functions. 4
4. What is a string? Explain by giving example how string can be declared
and initialized. 4
Write a simple program to demonstrate 'pass by value' and 'pass by
reference'. 6
OR
Write the general form of declaring and initializing a pointer. Also
explain each field and give a suitable example. 6
Explain the functions puts( and strcpy( 4
I/BCA/105 6 Contd.
5. What is a structure? Write three differences between structure and
array. 5
What is a command-line argument? Write the general format. 5
OR
Write the operations performed by the functions—fopen( putc(
fscanf( fseek( ftell( and putw( 6
Explain the format for defining a structure and declaring the structure
variables. 4
Professional Course Examination, November 2018
1st Semester
BACHELOR OF COMPUTER APPLICATIONS
Course BCA-105
Programming Language Through C
Revised
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
Tick the correct answer in the brackets provided 1×10=10
1. Which of the following is not a valid variable name?
_bca_90
90_bca_
bca29
programmingLanguage_
/363 1 Contd.
2. Which of the following functions reads multiple character from the
keyboard?
getchar(
getche(
getch(
gets(
3. The statement that is used in C to branch unconditionally from one point
to another in the program is
if
if...else...
goto
switch
4. Which of the following is exit-controlled loop?
while
do...while
for
if
5. Function header does not consist of
function type
function name
local variable declaration
list of parameters
I/BCA/105 2 Contd.
6. In an array, subscript begins at
zero
one
n
n
7. When operator is placed before a pointer variable in an expression, it
means
address of
value at address
address of pointer variable
address of main
8. The string function that compares two strings is
strlen(
strcat(
strcmp(
strcomp(
9. The function that reads an integer from a file is
putw(
getw(
fseek(
ftell(
I/BCA/105 3 Contd.
10. Which of the following statements is not valid?
C does not permit initialization of individual structure members within
the template.
Initialization must be done only in the declaration of the actual
variables.
The order of values enclosed in braces must match order of members
in the structure definition.
It is not permitted to have partial initialization.
Indicate whether the following statements are True or False by putting
a Tick mark in the brackets provided 1×5=5
11. (increment operator) has higher precedence than (unary plus)
operator.
T F
12. The do statement executes the body of the loop before the test is
performed.
T F
13. An array is a variable-sized collection of elements of the same data type.
T F
14. int is a valid pointer declaration.
T F
15. File can store unrelated data.
T F
I/BCA/105 4 Contd.
SECTION—B
Marks 10
Answer the following questions 2×5=10
16. Distinguish between int main(void) and void main(int).
17. What is a counter-controlled loop? Give example.
18. Differentiate between pre-defined functions and user-defined functions.
19. Write the difference between and "a".
20. Write a C program for opening a file 'bca.txt' in write mode.
PART B—DESCRIPTIVE
Marks 50
The figures in the margin indicate full marks for the questions
1. Explain the process of compiling and running a C program by writing
a flowchart. 10
OR
What are C tokens? Explain each by giving a suitable example. 6
Write the format for scanf( function and explain each field. 4
I/BCA/105 5 Contd.
2. Write the general format for switch statement by explaining each
field. 5
Write the flowchart for nested if...else statement. 5
OR
Write the general format of FOR loop and explain each field. Give
example. 5
Write a C program to multiply 5 numbers input from the keyboard
using while loop. 5
3. Write a C program to sort an element using bubble sort. 6
Explain the general format for declaring 2-dimensional array. Give
example. 4
OR
Explain any three variables storage class by giving a suitable example. 6
Write four advantages of functions. 4
4. What is a string? Explain by giving example how string can be declared
and initialized. 4
Write a simple program to demonstrate 'pass by value' and 'pass by
reference'. 6
OR
Write the general form of declaring and initializing a pointer. Also
explain each field and give a suitable example. 6
Explain the functions puts( and strcpy( 4
I/BCA/105 6 Contd.
5. What is a structure? Write three differences between structure and
array. 5
What is a command-line argument? Write the general format. 5
OR
Write the operations performed by the functions—fopen( putc(
fscanf( fseek( ftell( and putw( 6
Explain the format for defining a structure and declaring the structure
variables. 4
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