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

PWT Sample Paper

This document contains instructions for a computer science exam consisting of 7 questions testing knowledge of programming concepts like data types, operators, loops, and SQL. It covers topics like Boolean logic, Python syntax, databases, and more. The exam has multiple choice, short answer, and programming questions worth a total of 40 marks.

Uploaded by

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

PWT Sample Paper

This document contains instructions for a computer science exam consisting of 7 questions testing knowledge of programming concepts like data types, operators, loops, and SQL. It covers topics like Boolean logic, Python syntax, databases, and more. The exam has multiple choice, short answer, and programming questions worth a total of 40 marks.

Uploaded by

AJIT KUMAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

JAWAHAR NAVODAYA VIDYALAYA

PWT
Computer Science (083)
Max. Time: 2 Hours Max. Marks: 40
General Instructions:
1. Please read the instructions carefully.
2. This Question Paper consists of 07 questions
3. All questions of a particular section must be attempted in the correct order.
Section A
Q. 1 Answer any 4 out of the given 5 questions on Employability Skills (1 x 4 = 4 marks)
i. Which of the following is valid arithmetic operator in python? 1
A) // B) ? C) < D) and
ii. All keywords in Python are in …………except three keywords. 1
A) Lowercase B) Uppercase C) Capitalized D) None of these
iii. Find the invalid identifiers from the following 1
A) MyName B) True C) TwoName D) My_Name
iv. Which of the following is an invalid datatype in Python? 1
(A) Set (B) None (C)Integer (D)Real
v. Which of the following commands will delete the table from MYSQL database? 1
(a) DELETE TABLE (b) DROP TABLE (c) REMOVE TABLE (d) ALTER TABLE

Q. 2 Answer any 4 out of the given 5 questions (1 x 4 = 4 marks)


i. What will the following expression be evaluated to in Python? print(15.0 / 4 + (8 + 3.0)) 1
ii. Evaluate the following Java expression, if x=3, y=5, and z=10: 1
++z + y - y + z + x++
iii. Bit stands for ………………………………………. 1
iv. What is the difference between Compiler and Interpreter? Any Two 1
v. What do you mean by Source Code? 1

Q. 3 Answer any 4 out of the given 5 questions (1 x 4 = 4 marks)


i. What is the full form of ASCII? 1
ii. Write Demorgan’s Law equations? 1
iii. The smallest unit of a Program is called as ………………….. 1
iv. What do you mean by Unary Operator and Binary Operator? 1
v. If a = 2**2**3 then print (a) will be …………………….. 1
Q. 4 Answer any 4 out of the given 5 questions (1 x 4 = 4 marks)
i. _________ is a non-key attribute, whose values are derived from the primary key of some other table. 1
(a) Primary Key (b) Foreign Key (c) Candidate Key (d) Alternate Key
ii. Explain the function of Operating System? Example also. 1
iii. If a = 18.9 and b = 3, then a//b will be evaluated as. 1
iv. Which one of the following is the default extension of a Python file? 1
a. .exe b. .p++ c. .py d. .p
v. Which of the following symbol is used in Python for single line comment? 1
a. / b. /* c. // d. #
Pg. 1
Q. 5 Answer any 4 out of the given 5 questions (1 x 4 = 4 marks)
i. The base value of Binary digit is…….. 1
(a) 2 (b) 8 (c) 10 (d) 16
ii. When the result of any Boolean statement is always 1 is known as ___________. 1
a) True b) Tautology c) Fallacy d) False
iii. Which of the following gate is also known as an inverter 1
a) AND b) OR c) NOT d) NAND
iv. Who developed Python Programming Language? 1
a) Wick van Rossum b) Rasmus Lerdorf c) Guido van Rossum d) Niene Stom
v. Which one of the following is not a keyword in Python language? 1
a) for b) evals c) while d) false

Q. 6 Answer 6 out of the given 7 questions (2 x 6 = 12 marks)


i. What is Memory and its types? Define RAM and ROM 2

ii. Draw a logical circuit diagram for the following Boolean expression and write truth table: 2
A.(B+C’)
iii. Distinguish between mutable and immutable data types? Define with example.. 2
iv. What is deference between while loop and do while loop? Define with xample 2
v. Write a program to find whether a given number is odd or even? 2
vi State two difference between tuple and list? Explain with example? 2
vii Find Output 2
arr = [1, 2, 3, 4, 5, 6]
print(arr[-2])
print(arr[0])

Q. 7 Answer 2 out of the given 3 questions (2 x 4 = 8 marks)


i. Consider the following table and write SQL statements Table Menu 4
Table Name : Master
SNo Name Age Department Salary
1 Shyam 21 Computer 12000
2 Shiv 25 Maths 15000
3 Rakesh 31 Hindi 14000
4 Sharmila 32 History 20000
5 Dushyant 25 Software 30000
a) Add a data in a table (6, Rishu,28,CS,20000)
b) Select Age, Department of those employees whose salary is greater than 12000
c) Write a query to display Age in descending order?
d) What is the features of DBMS?
ii. Draw a logical circuit diagram for the following Boolean expression and write truth table: 4
A.(B+C’)
iii. Write a program to find whether a given number is odd or even? 4

Pg. 2

You might also like