15848midterm Cs Python El
15848midterm Cs Python El
15848midterm Cs Python El
com
--------------------------------------------------------------------------------------------------------
CBSE Sample Papers | CBSE Guess Papers | CBSE Practice Papers | Important Questions | CBSE PSA | CBSE OTBA |
Proficiency Test | 10 Years Question Bank | CBSE Guide | CBSE Syllabus | Indian Tutors | Teacher' Jobs CBSE eBooks |
Schools | Alumni | CBSE Results | CBSE Datesheet | CBSE News
CBSEGuess.com
Q4. Write programs in Python using Strings and Library: [2.5 x 4 = 10]
1. Write a program to accept a String and print it in reverse. [If user enters MAD output should be DAM]
2. Write a program to accept a String and print count of letter „a‟ or „A‟ in the entered in it. [If String
entered is „Anaconda‟ then output should be 3]
3. Write a program to accept a String and N (integer) and print first N letters of it. [If user enters
“MY NATION” , 6 output should be MY NAT]
4. Write a program to accept a String and print only capital letters entered from the String entered.
[Input: “An APPle a Day” Output: AAPPD]
Q5. Answer the following using SQL: [10x1=10]
1. What do you mean by the term relationship in database?
2. From the table given below, give its Degree and Cardinality
Name Activity
Omm Gupta Reading
Rishi Pandey Singing
Skand Agarwal Talking
(1) Help him in writing SQL query for the following purpose:
i. Display the Training_Id of „Cyber Security‟ who does not belong to „New Delhi‟.
ii. Show average Fee from the table .
iii. Give Name , Email_Id where Name ending with „n‟ .
iv. To count how many female candidates will be attending the training.
v. To display list of free trainings.
vi. To display all the cities where Cyber Security training is scheduled along with its fee.
vii. To add a column feedback with suitable data type.
viii. To remove the column Fee from the above table.
(2) Observe the table named “Training” given above carefully and predict the output of the following
queries:
i. select City from training where Topic = 'Cyber Security';
ii. select count(Training_Id) from training where Email_Id like '%gmail% ';
iii. select AVG (Fee) from training where Topic = 'Cyber Security';
iv. select Name from training where Fee between 12500 and 14500;
--------------------------------------------------------------------------------------------------------
CBSE Sample Papers | CBSE Guess Papers | CBSE Practice Papers | Important Questions | CBSE PSA | CBSE OTBA |
Proficiency Test | 10 Years Question Bank | CBSE Guide | CBSE Syllabus | Indian Tutors | Teacher' Jobs CBSE eBooks |
Schools | Alumni | CBSE Results | CBSE Datesheet | CBSE News
CBSEGuess.com
Q7. Answer the following using SQL multi table / Mongo DB : [4x1+1x2+1x4=10]
1. What are the key features of mongodb?
2. What is sharding?
3. What kind of NoSQL database MongoDB is?
4. What is the use of limit() method?
5. Write SQL command for to create the table “Books“ with the following structure:
Table : VEHICLE
Table :CUSTOMER
===========================================
--------------------------------------------------------------------------------------------------------
CBSE Sample Papers | CBSE Guess Papers | CBSE Practice Papers | Important Questions | CBSE PSA | CBSE OTBA |
Proficiency Test | 10 Years Question Bank | CBSE Guide | CBSE Syllabus | Indian Tutors | Teacher' Jobs CBSE eBooks |
Schools | Alumni | CBSE Results | CBSE Datesheet | CBSE News