TAS computer science
TAS computer science
5. In
print(S.s(A)tripext#nex
("t")
SQL, which B) ex#nex
a) UPDATE command will be used to add a new (C) text#nex (D) ext#next
6. 'L' in b) ADD record in a table ?
7. HTML stands for: (A) Large c) INSERT
1
Identify the valid Python (B) Language (C)
Long
d) ALTER TABLE
statementsidentifier
3. Consider the (A) 2user (D) Laser 1
given below (B) user@2 (C) user 2
Game="World Cup 2023" and then choose the (D)user 2 1
correct output from the given
9.
print(Game[-6::-1])
(A)CdrW (B) ce o
options : 1
Logistics Block 30
i) Suggest the most appropriate block/location with reason to house the SERVER in the Ambala office
i) Suggest the best wired medium to efficiently connect various blocks within the Ambala office.
i) Draw an ideal cable layout (Block to Block) for connecting these blocks for wired connectivity.
iv)The company wants to schedule an online conference between the managers of Delhi and Ambala
offices. Which protocolwill be used for effective voice communication over the Internet?
v) Which ind of network will it be between Delhi office and Ambala office ? 5
35Mashanshi is a Python programmer. She has written a code and created a binary file "book.dat" that has
(BookNo, Book_ Name,Author, Price]. The following user defined function CreateFile() is structure
a record and add to book.dat and another user defined created to take input data for
function CountRec(Author) which accepts the Author
name as parameter and count and return number of books by the given
complete the following code based on the requirement given above: Author.
As aPython expert, help her to
import #statement1
def createFile():
fobj =open("book.dat"" ") #statement2
BookNo =int(input("Book number:"))
Book Name =input("Book Name:")
Author =input(|"Author:")
Price =int(input("Price:")
rec = (BookNo, Book_Name, Author, Price]
pickle. #statement3
fobj.close()
def Count Rec(Author):
fobj = open("book.dat", "rb")
num =0
try:
while True:
rec = pickle.
if Author = #statement4
rec[2]:
num=num+1
except:
fobj.close()
return num
Which module should be imported in the
::) AWritethe correct statement program? (Statement 1)
required to open a file named book dat. (Statement 2)
ih Which statenment shouid be Tlled in Statement 3 to write the
data into the binary file, book.at.
Ihl A/hich statement should be rilled in Statement 4 to read the data
from the file, book.dat?