Institute of Science and Technology
Bachelor Level / first-semester / Science
Computer Science and Information Technology( CSC110 )
Full Marks: 60 + 20 + 20
Pass Marks: 24 + 8 + 8
Time: 3 Hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.
Attempts any two Questions (2 x 10 = 20)
What is looping statement? Discuss different looping statements with suitable example of each.
Define array? What are the benefits of using array? Write a program to add two matrices using array.
Why do we need data files? What are the different file opening modes? Write a program that reads data from a file “input.txt” and writes to “output.txt” file.
Attempts any eight Questions (8 x 5 = 40)
Discuss different logical operation in detail.
What is break statement? Discuss with example. How the break statement is different from continue statement?
Write a program to check whether a number entered is even or odd.
Write a program to calculate sum of first 10 odd numbers.
What is preprocessor directives? Discuss # define directive with example.
Discuss any five string library functions.
What is dynamic memory allocation? Discuss the use of malloc() in dynamic memory allocation with example.
What is structure? Create a structure rectangle with data members length and breadth.
Write short notes on: