You are on page 1of 2
PART—C (1x 15= 15 Marks) ‘Answer ANY ONE Question 26. The National Highways Deparment announces a scheme for four wheeler riders in the toll gate for its 50® year celebration. If the vehicle mumber is divisible by both 7 and 3, then they should pay one-third of the fee. Ifthe vehicle number is divisible by 7 or 3, then “hey should pay half ofthe fe. Otherwise they have to pay full fees. Wrie 2 C program for the given ii, Write a C program to replace all vowels with star (+) and print the output |. Write a Python program to check whether tke given lis is in sorted order or not Ifthe given list sin sorted order then print true, else print false fi, Write a python program to create two sets Setl and Set2 by getting input from user and determine whether the given sets Seti and Sel2 are disjoint or not .Tech/ M.Tech (Integrated) DEGREE EXAMINATION, JANUARY 2023 First Senester 21CSS101.~ PROGRAMMING FOR PROBLEM SOLVING (or the candidates admitd rom the academic year 2022-2023) Note: “i Part shouldbe answered in OMR sheet within frst 40 minutes and OMR sheet shouldbe handed ‘over to halinviglstor at the end of 10° minute (i Part Band Part-C should be answered in arswer booklet ‘Time: 3 Hours Max. Marks: 75 PART~ A (201 =20Marks) ee ‘Answer ALL Questiens 1. Find the output for the following statement ceetae prinf 96d", sizeof (“Hello”): ws 6 ol 2 2. What isthe output forthe following expression in C? ee neS-2#7-9; @ 18 ® 2 ©% tt 43, Determine the correct ouput Peasants ‘float e = 3.14; rinf (2, C2); (Lo Bo (C) Compile error (D) 014 4. Find the meaning of following statement bora f= G> yPxiy: (A) fpoints to max of x &y (B) fpoints to min of x & y (C) fpoints to addition of x & y —(D) Compile error 5. The “continue statement cannot be used with rong (A) while (B) do while © for (D) switch case 6, Find the corret one to access the 3 element in an ara. eee (A) «ass ®) «@+3) © +at3) (D) &(a+3) 1. Find the output forthe following C code. poze for (Km 1: K2=5:K+ 4); f ) Pee a (A) 12345 (1234 ©6 @ 5 10. 12. 13, “ 15. 16. 18. raptate ‘Size of integer pointer and character pointer in C for 16 bit processors @2t @)2 2 O41 O4 2 Expected output for the following code is char sir [] =('g', T, 0°, B10, ‘a printf ("%is", st) (A) lobal (B) glob (©) elobioal © al The operator used to ge value at an address stored in a pointer variable is we ®) & © && © ~ ‘The keyword used to transfer the control from a function back to the calling function in Cis (A) goto (B) back (© rewa (©) goback {both the strings are same, a string funtion strcmp) returns : wt ®) -1 ©2 oo ‘Keyword used for function in Python language is (A) function ) det © fm (©) define The following python code will print_ rint (ype (5/2) Print (ype 5/2) (a) ‘float int (B) float ‘oat ©) int flow ©) int int Find the length ofthe following lis in python len hello”, 2 4, 6)) ws @ 6 oO 3 Representation of python tuple is ao @) (1.2.3) ©) 0,2,31 ) (2,3) [Number of elements present inthe series $1 is SI = pd-series (range (1, 6) print(S1) ws 5 Os 7 'Nampy is often used along with packages (A) Nodejs (B) Maiplotib (©) seivy (D) Both (B) and (©) 19, Size atribute in Numpy is used to find (A) shape @) Gc and time ©) objects (©) umber of items 20, Library used to create data frame is (A). Sklearn (8) Data fame (© Pandas 21. a. Describe various storage classes in C programming with suitable example (oR) , Describe about _presincrement, ‘Postdeerement, conditional operators, each with suitable example. 22a, Write aC program to find the factorial of «given number. ii, Write the necessary conditions for switeh-case in C. (on) ». Explain sbout @) void pointer with an example in C )) NULL pointer with an example in C 23. Write a C program to find whether the given string is palindrome or not, [Explain the string functions used inthis program. (oR) », Explain the concept of passing the emay as an argument to funcion. Ilustrate with C program to find the sum two matrices. 24. Describe any four operations performed on tuples in Python programming. (oR) '. Writea Python program to prin the following Floyd triangle. 1 23 436 25. ai, Explain the significant features ofthe pandas library. fi, Write « Python program to create a Numpy array filled with all zeros. (oR) ‘bi, List out various features of Numpy. li, Describe about the different types of data structures in pandas, postincrement, presdeerement,

You might also like