0% found this document useful (0 votes)
3 views2 pages

PPS 60M 10-07-23

The document outlines the examination details for B.Tech Semester I/II at Sarvajanik University, including course code, total marks, and exam instructions. It contains a series of programming questions related to C and Python, covering topics such as logical operators, algorithms, loops, features of Python, arrays, pointers, and recursion. The exam requires students to write code and explain concepts with examples, demonstrating their understanding of programming fundamentals.

Uploaded by

totakaka123
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)
3 views2 pages

PPS 60M 10-07-23

The document outlines the examination details for B.Tech Semester I/II at Sarvajanik University, including course code, total marks, and exam instructions. It contains a series of programming questions related to C and Python, covering topics such as logical operators, algorithms, loops, features of Python, arrays, pointers, and recursion. The exam requires students to write code and explain concepts with examples, demonstrating their understanding of programming fundamentals.

Uploaded by

totakaka123
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/ 2
Enrolment No. SARVAJANIK UNIVERSITY 5-2023 Date: 10-07-23 Time: 02:0 PM to 04:30 PM Regular/Backlog Exam B.Tech - SEMESTER- I/II EXAMINATION Course Code: BTCO12107 Total Marks: 60 Course Name: Programming for Problem Solving Instructions: 1. Attempt all questions. 2. Make suitable assumptions wherever necessary. 3. Figures to the right indicate full marks. Marks Q.1 (@)_List out various logical operators supported by C language 02 and explain them with example. (b) Write an algorithm and draw a flowchart to find out the 04 smallest number from the given three numbers. (©) Ilustrate “for” loop supported by C language and Python 06 language with suitable examples. Q2 (a) List and explain features of Python. 02 (b) Attempt the followings: 04 1)_ What is the output of the following C code ? void main() { intx=1,y=1,z Ht +95 printf (“%d, %d”, x, y); 3 (b)x=2, @x=Ly 2) What is the output of the following program ? void main( ) { intz=10; float z = 10; printf(“%d",2); (@) 10.00 (b) Compile time error (©) 10 (@) Run time error (©) Write a C program to read marks from the keyboard and to 06 display an equivalent grade according to following table (using if else ladder). Marks Grade 100 - 80 Distinction 79 - 60 First Class 59-40 Second Class <40 Fail OR Q3 Q3 Q4 Q4 Qs Qs © @) (b) © (a) () (©) @) (b) © @ ) © (a) (b) © @ (b) © Write a C program to display the following pattern 1 12 123 1234 12345 Explain the use of switch.case statement supported by C Janguage with example. What is array in C language? Explain one dimensional and two dimensional array declaration and initialization with a suitable example, Write aC program to find the result of the series: THQ+/341/4+.. +1, OR List various data types supported by C language. What is String in C language? Explain at least 3 builtin string functions supported by C language with example. Write a C program to reverse a given number, What is pointer in C language? Which arithmetic operations are not valid on pointers? Differentiate Structure and Union supported by C language. ‘What is a function in C language? Explain the function definition, function prototype and function call with an example, OR Discuss the use of pointer in Call by reference in C language. Define Structure offered by C language. Explain how the Structure variable is initialized with suitable example. What is Recursion? Write a C program to find factorial ofa given number using recursion. Describe Input() function supported by Python. What is the difference between indexing and slicing? Write the output of the following python code fragment. S = “Python Programming” print(S[5:10]) Write a Python program to test whether a given number is prime or not. OR Discuss multiple inheritance with respect to Python. Discuss the MatPlotlib in python. Write a Python Program to accept elements in the form of tuple and display their sum and average. ge, Se 06 02 04 06 02 04 06 02 06 02 04

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy