Answers On/OffJS required
Group A
- Q1.Answer the following questions in one sentence:a. What is search engine?b. What is business done through the mobile?c. Which view is used to modify a table structure in MS-Access?d. Write any two objects of MS-Access.e. Write any two features of C-language.f. What is modular programming?A.A search engine is a software system that allows users to search for information on the Internet using keywords.Business conducted through mobile devices such as smartphones or tablets is called mobile commerce or m-commerce.Design View is used in MS-Access to modify the structure of a table.Two objects of MS-Access are Forms and Reports, which help in data entry and presentation.Two features of C language are portability and support for structured programming.Modular programming is a programming approach that divides a large program into smaller, independent, and manageable modules or functions.
- Q2.Write appropriate technical term for the following:a. A company which provides services of Internetb. Computer program that protects computer from virusesA.Internet Service Provider (ISP)Antivirus Software
- Q3.Write the full forms of following:i. G2Bii. POPA.Government to BusinessPost Office Protocol
Group B
- Q4.Answer the following questions:a. What is computer Network? List any two importance of it.b. What is e-commerce? Write two features of e-commerce.c. What is IoT? Write any two importance of it.d. What is primary key? Write its features.e. What is data sorting? Write any two advantages.f. Define form. Write any two uses of it.g. What is Topology? Draw the figure of star topology.h. What is virtual reality? List any two application areas of it.i. What is database? Give any two examples.A.A computer network is the interconnection of multiple computers to share resources and communicate.Importance:1. Enables file sharing.2. Allows hardware sharing like printers.E-commerce is the process of buying and selling goods and services online over the Internet.Features: Online payment and global accessibility.IoT (Internet of Things) is a network of physical devices connected to the Internet for data exchange.Importance:1. Automates processes.2. Provides real-time monitoring.A primary key is a unique field in a table that identifies each record without duplication.Features: Unique for each record, cannot contain null values.Data sorting is arranging data in ascending or descending order based on one or more fields.Advantages: Makes data easier to search, improves readability.A form is a database object used for entering, modifying, and viewing records in a table.Uses:1. Simplifies data entry.2. Provides a user-friendly interface.Topology is the arrangement of computers and devices in a network.Star Topology: All computers are connected to a central hub or switch.Figure of Star Topology:PC\PC — HUB/SWITCH — PC/PCVirtual Reality (VR) is a simulated environment created by computer technology that can simulate real-world or imagined experiences.Applications:1. Medical surgery training.2. Gaming simulation.A database is a structured collection of related data stored electronically.Examples: MS-Access, MySQL.
- Q5.Write the output of the given program with a dry run table.Declare SUB xyz(N$)CLSLet NS="COMPUTER"Call xyz(N$)ENDSUB xyz(NS)FOR I = LEN(NS) to 1 step -2Print MIDS(NS, 1,1)Next 1END SUBA.Dry Run Table:
I (Loop) LEN(NS) → 8 MIDS(NS,1,1) Output Cumulative 8 8 C C 6 8 C CC 4 8 C CCC 2 8 C CCCC Output:CCCC - Q6.Re-write the given program after correcting the bugs:CLSDoOpen "O", #1, "student.dat"Input "enter name"; NSInput "enter address"; ASInput "enter post"; PSComputer Science (Optional Second)Input "enter salary"; S$Write#1, NS,AS,PS,SInput "Do you need more[Y/N]";X$Loop while X="y"CloseEnd #1A.CLSDOOPEN "student.dat" FOR OUTPUT AS #1INPUT "Enter name: "; NS$INPUT "Enter address: "; AS$INPUT "Enter post: "; PS$INPUT "Enter salary: "; S$WRITE #1, NS, PSINPUT "Do you need more [Y/N]: "; X$LOOP WHILE UCASE) = "Y"CLOSE #1END
- Q7.Study the following program and answer the questions:Declare SUB PAL(N)CLSLet N=11011N(N)Call PAL(N)ENDSUB PAL(N)FOR I = LEN(N$) to 1 step -1X(N$, 1,1)X=VAL(x$)D=D+X*2^PP=P+1Next IPrint NPrint DEND SUBa. Write the use of VAL in the above program.b. List out the library functions used in the program.A.The VAL function converts a string representation of a number into a numeric value for calculation.The library functions used are MID, and VAL.
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 instruction:i. (10110101)₂ = (?)₈ii. (246)₁₀ = (?)₂iii. (10110)₂ × (101)₂ − (1110)₂ = (?)₂iv. (1111001)₂ + (110)₂A.Group binary digits in sets of 3 from right: 10110101 → 001 011 010 1 → add leading zeros → 001 011 010 101
Binary Triplet Octal Digit 001 1 011 3 010 2 101 5 Hence, (10110101)₂ = (265)₈Division Quotient Remainder 246 ÷ 2 123 0 123 ÷ 2 61 1 61 ÷ 2 30 1 30 ÷ 2 15 0 15 ÷ 2 7 1 7 ÷ 2 3 1 3 ÷ 2 1 1 1 ÷ 2 0 1 Hence, (246)₁₀ = (11110110)₂Converting to decimal:- (10110)₂ = 22
- (101)₂ = 5
- (1110)₂ = 14
Multiplying and subtracting:22 × 5 = 110110 − 14 = 96Converting 96 to binary:Division Quotient Remainder 96 ÷ 2 48 0 48 ÷ 2 24 0 24 ÷ 2 12 0 12 ÷ 2 6 0 6 ÷ 2 3 0 3 ÷ 2 1 1 1 ÷ 2 0 1 Hence, (10110)₂ × (101)₂ − (1110)₂ = (1010000)₂Converting to decimal:- (1111001)₂ = 121
- (110)₂ = 6
Adding:121 + 6 = 127Converting 127 to binary:Division Quotient Remainder 127 ÷ 2 63 1 63 ÷ 2 31 1 31 ÷ 2 15 1 15 ÷ 2 7 1 7 ÷ 2 3 1 3 ÷ 2 1 1 1 ÷ 2 0 1 Hence, (1111001)₂ + (110)₂ = (1111111)₂ - Q9.Answer the following questions.a. Write a program in QBASIC that ask radius of a circle to calculate its area and circumference. Create a user defined function to calculate area and sub program to calculate circumference.[Hint: Area = πr², cir = 2πr]A.DECLARE FUNCTION AREA(R)DECLARE SUB CIRC(R)CLSINPUT "Enter radius of circle: "; RPRINT "Area = "; AREA(R)CALL CIRC(R)ENDFUNCTION AREA(R)AREA = 3.1416 * R^2END FUNCTIONSUB CIRC(R)C = 2 * 3.1416 * RPRINT "Circumference = "; CEND SUB
- Q.b. A sequential datafile called "employee.dat" has stored data under the field heading Name, Post, Salary and E-mail. Write a program to display all the information of employees whose Post is "MANAGER" and salary is greater than 50,000.)A.CLSOPEN "employee.dat" FOR INPUT AS #1PRINT "Name", "Post", "Salary", "Email"WHILE NOT EOF(1)INPUT #1, Name, Salary, Email$IF Post$ = "MANAGER" AND Salary > 50000 THENPRINT Name, Salary, Email$END IFWENDCLOSE #1END
- Q10.Write a program in C-language that asks any two numbers and displays the greatest among them.OR,Write a C program to display first 10 odd numbers.A.#include <stdio.h>int main() {int a,b;printf("Enter two numbers: ");scanf("%d %d",&a,&b);if(a>b)printf("%d is greatest",a);elseprintf("%d is greatest",b);return 0;}#include <stdio.h>int main() {int i;for(i=1; i<=20; i+=2) {printf("%d ", i);}return 0;}