0% found this document useful (0 votes)
169 views9 pages

SPL Board Question

Nu Board Question

Uploaded by

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

SPL Board Question

Nu Board Question

Uploaded by

preludesuper0100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 9
aro > B.Sc (HONS, IN CSE, FIRST YEAR FIRST SEMESTER EXAMINATION, 2023 STRUCTURED PROGRAMMING LANGUAGE, [According to the New Syllabus] Subject Code : CSE-510201 Time—3 hours Full marks—80 IN.B. The figures in the right margin indicate full marks. Answer any four questions.) Marks 1. (@ What do you mean-by structured programming language? 1+4=5 Explain different control structures used in structured rogramming language. . What do you mean by preprocessor directive? Why and when 1+4=5 do we use # include and # define directives? Draw a flowchart to determine the roots of a quadratic 5 equation, ax? + bx +c=0. ) Write down the differences between increment and decrement 5 ‘operators. ei What do you mean by variable? How can you declare and 4 initialize a variable using C programming. i rite down the ees of execu im € and identifiers? Define with proper examples. rd) Write a srs in C to calculate the area and circumference of acircle. (a) Exglain call by value and call by reference wi 5 Meine sym How does variable and symbolic 5 tant differ? Give exaniple. Describe logical and relational operators with example. $ GG Write a C program to input an integer number and display the 5 Pa sum of its digits. Wo Define I oping process. Explain entry contr: nd 6 exit controlled loops. 7 (6) What are the differences between while and do ....... While loop? 4 Write down the general form and flow chart of the following statement (i) else (ii) SWITCH (iii) FOR (@\\Write a C program to find first 1 Fibonacci num .. if ladder 5 [Please turn over 5. (@ ® é i ® © @ Woy Marks What do you mean by linear array? Describe the declaration 1+4=5 and initialization of a linear array. Define pointer. Write a C program to read an array and display 1+5~6 its element in reverse order using pointer. What is string? Describe the following string handling 1+4=5 functions : (i) gets() and puts( ) (ii) stropy ()_ and stremp ( ) Determine the output of the following program segment : int x=2, y=3; x=xty; YrX-Y tersy print f(x is % din pis % din”, x,y); What is file? Describe different file opening modes. 1+4=5 What do you mean by dynamic memory allocation? What are 5 the advantages of using linked list over array? Write down the differences between print f( ) and f print f(_). 4 Write a C program to read data from keyboard write it to a file 6 called INPUT, again read the same data from the INPUT file and display it on the screen. Cusstion Bank x BSc (HONS.) IN CSE FIRST V EAR FIRST SEMESTER EXAMLNATIOIS, 2022 STRUCTURED PROGRAMMING LANGUAGE [According to the New Syllabus) * Subject Code : CSE-510201 Time-3 hours Full marks-80 [N.B. The figures in the right margin indicate full marks. Answer any four questions.] (a) Define structured prografnming language. Discuss the basic 245=7 structure of C Programming Language. (b) Define the following terms : 3 () Algorithm Gi) Flowchart (iii) Pseudo-code. (©) Write down an algorithm and flowchart to calculate the 5 temperature Fahrenheit to Celsius. (d) Write'a program to calculate area and perimeter of a circle. 5°? (a) What is token? Describe different types of token. 144=5 (b) What is variable? Differentiate between local and global 14455 variable. 3 (c) Describe the four basic data types used in C language. How could we extend the range of values they represent? (d) Write a program solution of quadratic equation (a) What are the differerices between ++ y andy + +? (b) Describe the following statements with general form and flowchart : (a? + bx+c=0) 5 @ if...else (ii) for iii) switch (c) Write a C program that prints the smallest number from three numbers. ~ (d) Consider the following C code and find out every. Value of the 5 variables (x, y,Z)- intx =S,y=82=3; xaxt(zt++4); - printf ("%d %d",x%y,x/Y) i =--x%; printf (“%d Yd %d",x,y,Z); (a) Differentiate with syntax between structure and union. 4 (b) Whatis striig? Write down four string handling functions with 144=5 their actions. Gucotion Bank... (c) What is storage class? Describe ase types of storage class in 6 C program. (@) Write a program that check whether a: string is palindrome or not. 5. (a) What is an array? Write down the advantages and disadvantiges 1+4=5 of array. (b) Discuss different types of operator used in C Language. 5 (c) What do you mean by function in C program? Write down the I+4=5 differences between actual and formal parameters. (@) Define pointer. Write down a C program to exchange the value 144-5 of two variables (x, y) using pointer. 6. (a) What is the significance of the EOF used in file? Write down the 5 advantages of file. © (b) What is preprocessor directive? Write down the functions of l4=5 and header files. (©) Define file handling mode. Discuss modes for opening a file 1+4=5 used in C language. (©) Write down aC program to read the contents of a file and write 5 ' the contents to another file. B.Sc (HONS.) IN CSE, FIRST YEAR, FIRST SEMESTER EXAMINATION, 2021 STRUCTURED PROGRAMMING LANGUAGE [According to the New Syllabus} © Subject Code : CSE-510201 _ Examination Code : 5611 Time-3 hours Full marks 80 (a) What is structured programing ? Explain different control structures used 5 in structured programming. (b) Define pscudo-code. Write down the differences between 144=5 algorithm and flowchart. : (c) What do you mean by preprocessor directive? Why and when do 1+4=5, we use the # include and,# define directives? (d) Write an algorithm to determine whether a number is odd or even 5 (a) With example describe the rules, for + + and - - operator. 4 + (b) What is symbolic constant’? Write down the tules for declaring symbolic 5 constant. () Find output of the following statements: wy intx=-10.y=3; Gucstion Rant —— ay (% dn"x/y *10) int % a"yx/v* 10) (d) Write a C program to verity whether a given year is a leap year or not. 5 (e) What do you understand by overflow and underflow of data? 3 (a) What is loop? Write down the differences between entry control 145. and exit control loop. (b) Describe the following statements with general form and flowchart: * 5 @ nested if . else Gi) while (c) When do you need to use switch statement? Mention the differences 5 between break and continue statements. (d) Write a C program to input an integer number and,display it in reverse order (a) What is string? Briefly explain string handling functions with example. 6 (b) Write a C program to copy one string into another and count the number of 5 - characters copied, (©) Define linear array. How to declare and initialize a linear array? 5 @ What is pointed? What are some arithmetic operators that are permitted 4 to use with pointer? Give example. * (a) How can a tilnC11 (lil he defined? Describe. Also mention some merits 7 its of user defined function. (b) Why prototyping is essential in a program? 3 (c) What do you understand by call by value and call by reference? rl (d) Define structure and union. Write down the difference in between array 6 and structure. (a) What do you mean by file and file mode? Describe different types of file 2+4=6 mode used in C. (b) Distinguish the following : i) print f() and f print f () function i) scan f () and f scanf () function (c) What is recursioni? Write down the differences between recursion 14253 and iteration 7 (d) Write a C program to read from a file and display it on the Gucosion 2 Page No, B19, BSe (HONS) ) IN CSE, FIRST YEAR, FIRS! T SEMESTER XAMINATION, 2020 STRUCTURED PROGRAMMING LANGUAGE [According to the New Syllabus] Subject Code : CSE-510201 _ (a) What do you mean by structured programming language? ‘Write down some salient features of structured programming language. (b) Describe the basic structure of a C-program. (c) Define flowchart. Draw the flowchart to find the largest value among three numbers, (d) Write down the algorithm to find the area and perimeter of a rectangle. (a) What is variable? How can you define and initialize a variable in C-program? (b) Describe with example the four basic data types used in a C-program. (¢) Distinguish between : @ getchar () and scarf () functions Gi) local variable and global variable (a) Write a C-program to convert the temperature from Fahrenheit to Celsius and vice versa. Use the following formula: (a) What is looping? Explain entry and exit control loop. (b) Write down the general form and flowchart of the following statements ; @ifelse Gi) for (©) What is infinite loop? What are the uses of. continue and break in C? (d) Write a C-program to calculate the sum of following series : 1424344 +, +50. (a) What do you mean by linear array? Describe the declaration and initialization of a linear array. (b) Define pointer. Write down the advantages and disadvantages of using pointer. (c) Write a C-program to read an array and display its elements in reverse order. (d) Describe the logical and relational operators used in C-language. (a) What is function? Why do we need to use function in C? (b) Explain call by value and call by reference with example. (©) What do you mean by recursion? Write a’ C-program to find first n Fibonacci numbers using recursion. (@) Describe some string handling functions used in C with example. (a) What is the significant of EOF in file operation? Write down 144=5 24355 A+4=5 14455 Cucotlon Banh. at Nn B20, the advantages of file. (b) What are the purposes of memory management function 6 : malloc and calloc? . (c) How can you overcome the limitation of an array using structure? 4 6 (d) Write a program to copy the contents of oie file to another file. B.Sc (HONS.) IN CSE PART-1, FIRST SEMESTER EXAMINATION, 2018 STRUCTURAL PROGRAMMING LANGUAGE CSE-S 10201 Examination Code : 611 Time - 3 hours ‘ Full marks-80 [N.B. - The figures in the right margin indicate full marks. Answer any four questions. Each part of a question must be answered sequentially) 1. (a) What is structured programming? Write down the importance of C language. (b) What is pseudo code? Distinguish between algorithm and flow-chart. (c) Describe the four basic data types used in C language. (d) Draw the flow-chart that shows the process of compiling and running a C program. 2. (a) Write down the difference between local and Global variables. (b) Define operator and expression. Distinguish between - - a anda -~. (©) What do you mean by looping? Explain entry control loop and exit control loop. (d) Write down general form and flow-chart of the following statement : (i) Nested IF-ELSE (ii) SWITCH (ii) FOR 3. (a) What are the different types of operators used in C language? (b) Write down the different between switch and its statement. (c) What are the rules for declaring variables? *(d) Write aC program that takes an integer as input and display it in reverse order. 4. (a) Mention some string handling functions and describe them with example. _ (b) What are the differences between structure and union? (c) What doryou mean by recursion function? Explain it with example. (d) How can you declare and initialization of ‘one-dimensional and two-dimensional array? 5.(a) What do you mean by function in C program? Write down the differences between actual and formal parameters in C language. (b) Describe different types of storage classes with example. . (c) What do you mean by library function? (@) Write a program to find the nth Fibonacci series using function. ee ool 96 Ny 821. 6, (a) What do you mean by call by value and call by reference? (b) What do you mean by. dynamic memory allocation? What are the advantages of using linked list over array? " (©) Write @ program} to append the contents of one file to another file. (d) What are the errors that could occur during file operation and how could you solve them? B.Sc. (Hons) in Computer Science and Engincering Part-1 First Semester Examination, 2016 CSE-112 (Programming Language) Time-3 hours Full marks-80, INB. The figures in the right margin indicate full marks. Answer any four questions] 1. (@ Describe the structure of C program. Where are blank spaces permitted in aC program? . . (b) Why and when do we use the # include and # define directive? (©)Distinguish between the following pairs :- : : @ main( and void main (void); ii) int mainQ and void main (). (d) Area of a triangle is given by the formula A = s(6-a)(s-b)(s-e), where a, b, ¢ are sides of the triangle and 25 = a+b +c. Write a C program to compute the area of the triangle given the,values of a, b and ¢ (c)What is a variable and what is meant by the "value" of a variable? 2. Distinguish between local:and global variables with example. (b) Write a C program to find out the GCD (Greatest Common Divisor) of two given integers a, b where 1 =80 ‘ 70-79 B 60 69C 50-59D. 40-49 E <40 F : (d) Explain how many times are the following codes executed? (i) for G@ = 1; 1 <500; i++); - print A “National University"); Gi) int m= 10; inten=7; while (m %n> { m=m+1; n=nt2; } 5. (a) The main is a user-defined function. How does it differ from other user-defined functions? (b) Describe the scopes, visibility and life times of variables. . (©) What is recursion? Using recursion write a C program to calculate factorial of any integer number. 7 (d) In which way structure differs from an array? Describe with examples, the different ways of assigning values of structure members,

You might also like