Answers On/OffJS required
Group A
- Q1.Answer the following questions in one sentence:a. Which connector is used with coaxial cable?b. Why data decryption is necessary?c. Which data types are used to store graphics and numeric characters in MS-Access?d. List any two objects of MS-Access.e. What is the function of MOD in QBasic?f. Write the name of unary operators used in C-language.A.The BNC connector is commonly used with coaxial cable.Data decryption is necessary so that encrypted information can be converted back into readable form for authorized users.Graphics in MS-Access are typically stored using the Attachment or OLE Object data type, while numeric characters are stored using the Number data type (or Short Text when numbers are intended as text such as phone numbers).Two objects of MS-Access are Forms and Reports.The MOD operator in QBasic returns the remainder left after integer division of one number by another.Unary operators used in C include the increment operator ++ and the decrement operator --.
- Q2.Write appropriate technical term for the following:a. The protection of computer systems and sensitive information from unauthorized access, theft or damage.b. The Internet tool which is used to upload/download data.A.Information security.File Transfer Protocol (FTP) client.
- Q3.Write the full form of the following:a. VOIPb. ISDNA.Voice Over Internet Protocol.Integrated Services Digital Network.
Group B
- Q4.Answer the following questions:a. What is topology? Draw the figure of star topology.b. What is cyber-ethics? List out any two cybercrimes.c. What is hardware security? Write any two measures of software security.d. What is E-government? Give any two examples.e. Define cloud computing with example.f. Differentiate between Database and DBMS.g. What is primary key? Write its importance.h. What is data type? List any two data types of MS-Access.i. Why update query is necessary in Database system? Give reason.A.Topology is the physical or logical arrangement of nodes and links in a network.Star topology connects every device to a central hub or switch; the diagram below represents star topology.PC\PC — HUB/SWITCH — PC/PCCyber-ethics is a set of moral principles that guide responsible and ethical behaviour when using computers and the Internet.Two cybercrimes are: identity theft and phishing.Hardware security refers to protecting physical computing devices and their firmware from theft, tampering, and physical damage.Two measures of software security are:1. Applying security patches/updates promptly.2. Using strong authentication (such as multi-factor authentication).E-government is the use of information and communication technologies by government to provide services and information to citizens and businesses. Two examples are online tax filing portals and online license/permit renewal services.Cloud computing is the delivery of computing services—storage, processing, networking, and applications—over the Internet on demand; an example is using Google Drive or Microsoft OneDrive for remote storage and file collaboration.A database is an organized collection of structured data stored electronically, while a DBMS (Database Management System) is the software used to create, manage, query, and administer databases.A primary key is a field or a combination of fields in a table that uniquely identifies each record; its importance is that it prevents duplicate records and enables efficient record retrieval and relationships among tables.A data type specifies the kind of data a field can hold (for example text, number, date).Two MS-Access data types are: Short Text and Number.An update query is necessary because it allows modification of many records at once based on specified conditions, thereby saving time and reducing manual errors.
- Q5.Write down the output of the given program. Show with dry run in table.DECLARE SUB show ()CLSCALL showENDSUB showFOR I=1 TO 7 STEP 3S=S+i3NEXT IPRINT SEND SUBA.
Iteration I I^3 S (cumulative) initial - - 0 1 1 1 0 + 1 = 1 2 4 64 1 + 64 = 65 3 7 343 65 + 343 = 408 Final printed output:408 - Q6.Re-write the given program after correcting the bugs:REM display records of students from sequential data file.OPEN "STUDENT.DAT" FOR INP AS #1PRINT "SNO", "NAME", "ADDRESS", "CLASS","SECTION"WHILE NOT EOFINPUT #1, SN, N, C, SE$PRINT SN, NS, ADNEXTCLOSE #1STOPA.REM display records of students from sequential data fileOPEN "STUDENT.DAT" FOR INPUT AS #1PRINT "SNO", "NAME", "ADDRESS", "CLASS", "SECTION"WHILE NOT EOF(1)INPUT #1, SN, N, CPRINT SN, N, CWENDCLOSE #1END
- Q7.Study the following program and answer the given questions:DECLARE FUNCTION num (N)FOR I = 1 TO 5READ NZ = num(N)S = S + ZNEXT IPRINT SDATA 11, 14, 16, 5, 7ENDFUNCTION num (N)IF N MOD 2 = 0 THEN num = NEND FUNCTIONa. List the library function used in the above program.b. Write the name of the function used in the above program.A.MOD (used to compute the remainder) is used in the program.The function name used in the program is num.
Practice Without Boundaries.
Premium gives you full access, zero ads, and unlimited custom paper generation. Study your way, every day.
Group C
- Q8.Convert/calculate as per the instruction:a. (101110111)₂ = (?)₈b. (248)₁₀ = (?)₂c. (1101)₂ × (110)₂ − (1011)₂ = (?)₂d. (1011101)₂ ÷ (101)₂ — find quotient and remainderA.
Binary triplet Decimal Octal digit 101 5 5 110 6 6 111 7 7 Hence, (101110111)₂ = (567)₈Division Quotient Remainder 248 ÷ 2 = 124 124 0 124 ÷ 2 = 62 62 0 62 ÷ 2 = 31 31 0 31 ÷ 2 = 15 15 1 15 ÷ 2 = 7 7 1 7 ÷ 2 = 3 3 1 3 ÷ 2 = 1 1 1 1 ÷ 2 = 0 0 1 Remainders bottom → top are: 11111000Hence, (248)₁₀ = (11111000)₂Converting to decimal:1101₂ = 13, 110₂ = 6, 1011₂ = 11Multiplying and subtracting:13 × 6 = 78; 78 − 11 = 67Now,Converting 67 to binary:Division Quotient Remainder 67 ÷ 2 = 33 33 1 33 ÷ 2 = 16 16 1 16 ÷ 2 = 8 8 0 8 ÷ 2 = 4 4 0 4 ÷ 2 = 2 2 0 2 ÷ 2 = 1 1 0 1 ÷ 2 = 0 0 1 Binary result from bottom → top is: 1000011Hence, (1101)₂ × (110)₂ − (1011)₂ = (1000011)₂Converting to decimal:1011101₂ = 93, 101₂ = 5Then, doing Decimal division:93 ÷ 5 = 18 remainder 3Converting quotient and remainder to binary:quotient 18₁₀ = 10010₂; remainder 3₁₀ = 11₂Hence, Quotient = (10010)₂, Remainder = (11)₂ - Q9.a. WAP in QBASIC to print circumference of a circle using SUB and volume of a cylinder using FUNCTION. [Hint: [C=2×22/7 × R, VC=22/7 × R^2 × H]A.DECLARE SUB Circ(R)DECLARE FUNCTION Vol(R, H)CLSINPUT "Enter radius: "; RINPUT "Enter height: "; HCALL Circ(R)PRINT "Volume = "; Vol(R,H)ENDSUB Circ(R)C = 2 * 22 / 7 * RPRINT "Circumference = "; CEND SUBFUNCTION Vol(R, H)Vol = 22 / 7 * R^2 * HEND FUNCTION
- Q.b. A sequential data file "Employee.dat" has some records with field's serial number, name, Address, post and salary for the number of employees. Write a program to display all the records of those employee's whose salary is more than Rs,50000.A.CLSOPEN "Employee.dat" FOR INPUT AS #1PRINT "SNo", "Name", "Address", "Post", "Salary"WHILE NOT EOF(1)INPUT #1, SNo, Name, Post$, SalaryIF Salary > 50000 THENPRINT SNo, Name, Post$, SalaryEND IFWENDCLOSE #1END
- Q10.Write a program to read any three integer numbers from the keyboard and find the smallest number using C - language.OR,Write a program to print first 10 natural number using C- language.A.#include <stdio.h>int main() {int a, b, c, smallest;printf("Enter three integers: ");if (scanf("%d %d %d", &a, &b, &c) != 3) return 1;smallest = a;if (b < smallest) smallest = b;if (c < smallest) smallest = c;printf("%d is the smallest number. ", smallest);return 0;}#include <stdio.h>int main() {int i;for (i = 1; i <= 10; i++) {printf("%d ", i);}printf(" ");return 0;}