Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
cout<<++p<<strlwr(p + 6)<<p++<<endl;
change(p);
cout.write(p + 2, 10);}
f) Choose the correct possible outputs for the following code. And also find the minimum
and maximum value for m. (2)
#include<iostream.h>
#include<stdlib.h>
void main()
{ randomize();
int s[ ]= {65,50,118,89,70,41,56};
int m = random(s[2] / s[1] + sizeof(s[0]));
for(int k = 0; k < m; k++)
cout<<(char)s[k] + m<<’,’ ;
}
OUTPUTS
i) 0,1,2,
ii) B,
iii) D,5,y,
iv) 68,53,121,
3.a) Define a function to insert an element in a circular queue of 5 elements that stores
the following details: (3)
struct student
{int rno; char sname[25]; };
b)An M*N real array has its base address as 100, the element of A[8][15] is in 732 if it
is stored in column wise, the same element is stored in 800 if it is row wise, Find the
total number of bytes allocated for the above array. (3)
c) Write an user defined function to delete a record from the dynamically allocated
queue which has name, age of a child and also a pointer field . (4)
d) Write a C++ function which has an array of strings and the number of strings as their
parameters ,count and display the number of words present on each string (2)
e) Convert the following infix expression to its postfix form: (2)
A or B ^ 3 / E and F + G % 3
4a) Observe the program segment given carefully, and answer the question that follows:
(1)
class Joy
{ int Joy_id;
char Joy_name[20];
public :
// function to enter Joyians details
void enterdetails ( );
// function to display Joyians details
// function to return Joy_id
int AJoy_id( ) { return Joy_id; } };
void Modify ( JOY NEW)
{ fstream File;
File.open (“JOY.DAT”, ios :: binary | ios :: in | ios :: out);
JOY OB;
Page 4 of 6
BOOKS
ISSUED
Book_Id Quantity_Issu
ed
F0001 3
T0001 1
C0001 5
(i)To display the names and price of the books in descending order of their price.
(ii)To increase the price of all books of First Publ. Publishers by 50.
(iii)To display the Book_Id, Book_Name and Quantity_Issued for all books which have
been issued.
(iv) To insert a new row in the table Issued having the following data: ‘F0002’, 4.
Give the output:
(v) SELECT COUNT (DISTINCT Publisher) FROM Books;
(vi) SELECT SUM(Price) FROM Books WHERE Qty > 5;
(vii) SELECT Book_Name, Author_Name FROM Books WHERE Price <500;
(viii) SELECT COUNT (*) FROM Books;
(b)Write the equivalent Boolean expression for the following Logic Circuit: (1)
c)A combinational circuit has 3 inputs and one output. Output is 1 if:
(i) All the inputs are equal to 1.
(ii) None of the inputs are equal to 1.
(iii) An odd number of inputs are equal to 1.
Obtain the truth table and find the simplified output function in POS form
(1)
d)Obtain a simplified form for the Boolean expression using K-map. (3)
F(a,b,c,d) = ∑(0,2,5,8,9,10,11,13,15)
e) Implement the following expression using NAND – NAND
logic: (1)
F = p’ q’ + rs
7.a) Compare any two switching techniques (1)
b) How is TELNET service of internet useful? (1)
c) Which of the following crime(s) does not come under cybercrime? (1)
i) Stealing keyboard and mouse from a shop
ii) Copying some important data from a computer without taking permission from the
owner of the data.
d)What is the purpose of using a web browser? Name any one commonly used web
browser. (1)
e) Anuradha is a web developer. She has designed a login form to input the login id and
password of the user. She has to write a script to check whether the login id and the
corresponding password as entered by the user are correct or not. What kind of script
from the following will be most suitable for doing the same?
Page 6 of 6
Main Resource
Building Building
Accounts
Training
Building
Building
Center to center distances between various buildings as per architectural drawings (in
meters) is as follows:
Main Building 15
Resource Building 25
Training Building 250
Accounts Building 10
(i)Suggest a cable layout of connection between the buildings.
(ii)Suggest the most suitable place( i.e building) to house the server of this NGO. Also
provide a suitable reason for your suggestion.
(iii)Suggest the placement of the following devices with justification:
i. Repeater
ii. Hub/Switch
(iv)The NGO is planning to connect its International office situated in Delhi. Which out of
following wired communication links, will you suggest for very high speed connectivity?
i) Telephone Analog Line ii) Optical Fibre iii) Ethernet Cable