Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
169 views
9 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
Download
Save
Save SPL Board Question For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
169 views
9 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
Carousel Previous
Carousel Next
Download
Save
Save SPL Board Question For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 9
Search
Fullscreen
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 over5. (@ ® é 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 theGucosion 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 14455Cucotlon 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
Programming in C University QP
PDF
No ratings yet
Programming in C University QP
51 pages
Bei I-I
PDF
No ratings yet
Bei I-I
176 pages
PPS 2024-25 Model Paper
PDF
No ratings yet
PPS 2024-25 Model Paper
3 pages
BCT I-I
PDF
No ratings yet
BCT I-I
178 pages
Structured Programming Language 1st Semester Questions
PDF
No ratings yet
Structured Programming Language 1st Semester Questions
15 pages
C Programming Past Updated - 2080
PDF
No ratings yet
C Programming Past Updated - 2080
32 pages
Pic Pyq
PDF
No ratings yet
Pic Pyq
13 pages
Civil - I I BEX BCT and BCE All PDF
PDF
No ratings yet
Civil - I I BEX BCT and BCE All PDF
162 pages
PIC Previous Year Mid Term and End Term
PDF
No ratings yet
PIC Previous Year Mid Term and End Term
17 pages
Previous Year Question Papers
PDF
No ratings yet
Previous Year Question Papers
12 pages
C
PDF
No ratings yet
C
64 pages
Bigbull Education Xii-Computer 2024-2025
PDF
No ratings yet
Bigbull Education Xii-Computer 2024-2025
3 pages
Pps Previous Papers
PDF
No ratings yet
Pps Previous Papers
8 pages
Computer Programming
PDF
No ratings yet
Computer Programming
36 pages
C Question Bank
PDF
No ratings yet
C Question Bank
13 pages
PYQ With Solution-5
PDF
No ratings yet
PYQ With Solution-5
11 pages
Cse Question Ans
PDF
No ratings yet
Cse Question Ans
9 pages
Important Questions
PDF
No ratings yet
Important Questions
8 pages
("!I9Cl. - Qggsgls:P11Glggltqlg$Ail: Examination Control Division
PDF
No ratings yet
("!I9Cl. - Qggsgls:P11Glggltqlg$Ail: Examination Control Division
30 pages
C Past Questions
PDF
No ratings yet
C Past Questions
14 pages
Pyq (It)
PDF
No ratings yet
Pyq (It)
14 pages
C Programming Question Bank
PDF
No ratings yet
C Programming Question Bank
6 pages
Problem Solving Using C
PDF
100% (2)
Problem Solving Using C
2 pages
18CS0501 PPS
PDF
No ratings yet
18CS0501 PPS
21 pages
Unit2 2marks
PDF
No ratings yet
Unit2 2marks
9 pages
Prev Year Questions
PDF
No ratings yet
Prev Year Questions
9 pages
Engineering King - CS3251 April 2024
PDF
No ratings yet
Engineering King - CS3251 April 2024
3 pages
C and Data Structures Unit Wise Important Questions
PDF
100% (3)
C and Data Structures Unit Wise Important Questions
15 pages
PnC-Model QP
PDF
No ratings yet
PnC-Model QP
3 pages
Model Paper 1 Dean Format Final
PDF
No ratings yet
Model Paper 1 Dean Format Final
3 pages
WWW - Manaresults.Co - In: C Programming
PDF
No ratings yet
WWW - Manaresults.Co - In: C Programming
5 pages
PC Previous Year Question Papers
PDF
No ratings yet
PC Previous Year Question Papers
5 pages
Adobe Scan 29 Nov 2024
PDF
No ratings yet
Adobe Scan 29 Nov 2024
6 pages
WWW - Manaresults.Co - In: Computer Programming
PDF
No ratings yet
WWW - Manaresults.Co - In: Computer Programming
4 pages
XII Computer 2025
PDF
No ratings yet
XII Computer 2025
2 pages
Adobe Scan 02 May 2022
PDF
No ratings yet
Adobe Scan 02 May 2022
5 pages
Pyq C (2017)
PDF
No ratings yet
Pyq C (2017)
3 pages
Pyq C (2022)
PDF
No ratings yet
Pyq C (2022)
3 pages
C Programming Language Sample Question Paper
PDF
No ratings yet
C Programming Language Sample Question Paper
4 pages
Cs Test Paper 22,23 - Edited
PDF
No ratings yet
Cs Test Paper 22,23 - Edited
6 pages
FinalAssesmentModel 2081 (Student)
PDF
No ratings yet
FinalAssesmentModel 2081 (Student)
3 pages
C Programming SET D Final
PDF
No ratings yet
C Programming SET D Final
4 pages
CC-102 2022 Bca-1
PDF
No ratings yet
CC-102 2022 Bca-1
2 pages
BSC 1 Sem Cs Programming in C 20321 e Nov 2021
PDF
No ratings yet
BSC 1 Sem Cs Programming in C 20321 e Nov 2021
6 pages
16 Programming Concepts Using C - April May 2021 (Repeaters Y2K8)
PDF
No ratings yet
16 Programming Concepts Using C - April May 2021 (Repeaters Y2K8)
2 pages
Introduction To Programming2
PDF
No ratings yet
Introduction To Programming2
2 pages
C Programming SET A
PDF
No ratings yet
C Programming SET A
2 pages
Question Paper 2022
PDF
No ratings yet
Question Paper 2022
3 pages
Universiti Tenaga Nasional: College of Information Technology
PDF
No ratings yet
Universiti Tenaga Nasional: College of Information Technology
12 pages
Computer Programming in C (2022)
PDF
No ratings yet
Computer Programming in C (2022)
3 pages
Ece 3 Sem Computer Prog Using C Computer Prog and Applied 181034 Dec 2019
PDF
No ratings yet
Ece 3 Sem Computer Prog Using C Computer Prog and Applied 181034 Dec 2019
2 pages
I-Year, B.Tech - Common To All Branch Programming For Problem Solving
PDF
No ratings yet
I-Year, B.Tech - Common To All Branch Programming For Problem Solving
2 pages
Cosc 221 Exam
PDF
No ratings yet
Cosc 221 Exam
3 pages
BCA-141-20 BCA-CS-141-20 C Programming
PDF
No ratings yet
BCA-141-20 BCA-CS-141-20 C Programming
2 pages
Bca Part 1 Programming in C Language DD 2855 2021
PDF
No ratings yet
Bca Part 1 Programming in C Language DD 2855 2021
2 pages
CS3251 - Programming in C - R2021 - 2023 - June
PDF
No ratings yet
CS3251 - Programming in C - R2021 - 2023 - June
2 pages
Dept. of Computer Science & Engineering (CSE) : United International University (UIU)
PDF
No ratings yet
Dept. of Computer Science & Engineering (CSE) : United International University (UIU)
3 pages
Bachelor of Computer Application (B.C.A.) Semester-I Examination "C" Programming Paper-II
PDF
No ratings yet
Bachelor of Computer Application (B.C.A.) Semester-I Examination "C" Programming Paper-II
1 page
Programming: Not Language
PDF
No ratings yet
Programming: Not Language
4 pages
Structured Programming: Here We Divide The Whole Program in Small Sections, So That It Becomes Easy To Understand
PDF
No ratings yet
Structured Programming: Here We Divide The Whole Program in Small Sections, So That It Becomes Easy To Understand
1 page
Why C' Is A Structured Programming Language: Large Problem
PDF
No ratings yet
Why C' Is A Structured Programming Language: Large Problem
1 page
What We Will Learn Today?
PDF
No ratings yet
What We Will Learn Today?
2 pages
CSE 1st Preparation Test Routine 2
PDF
No ratings yet
CSE 1st Preparation Test Routine 2
1 page