1. Home
  2. Docs
  3. Model Question solution(S...
  4. Computer Science
  5. Model Questions Solution (III)

Model Questions Solution (III)

Ans: In a star topology, all devices are connected to a central hub or switch, whereas in a bus topology, all devices are connected to a single backbone cable.

Ans: Email is a digital communication method allowing the exchange of messages electronically, while traditional postal service involves physical delivery of letters or packages via mail carriers.

Ans: Computer viruses can cause data loss, system crashes, steal sensitive information, and spread to other systems

Ans: Software security measures include encryption, regular software updates, access control, and intrusion detection systems.

Ans: Multimedia can be used in education to enhance learning through various media formats like audio, video, animations, and interactive presentations, catering to different learning styles and making learning more engaging and effective.

Ans: (8797)₁₆ into Decimal = 35,067

Ans: (753)₈ into Hexadecimal = 3AB

Ans: (1000)₂ – (111)₂ = (1001)₂

Ans: (1010)₂ / (10)₂ = (101)₂

Bandwidth                      ISP

Internet                           POP

Protocol                         bps

Hardware security        NAV

                                        CVT

Ans:

  • Bandwidth – bps
  • Internet – ISP
  • Protocol – POP
  • Hardware security – NAV
  1. UTP cable
  2. STP cable
  3. Satellite
  4. Fiber optics

Ans: Satellite

  1. CD-ROM
  2. CCTV
  3. MODEM
  4. ALL

Ans: MODEM

  1. Sound into digital
  2. Digital signal into sound
  3. Both 1 and 2
  4. None of the above

Ans: Digital signal into sound

  1. e-mail
  2. IRC
  3. ISP
  4. e-commerce

Ans: CCTV

  • Making extra copy of data or program.

Ans: Backup

  • A card used to connect network cable to computer.

Ans: Network Interface Card (NIC)

  • Device used for power protection.

Ans: Uninterruptible Power Supply (UPS)

  • Program used to detect and eliminate computers virus.

Ans: Antivirus software

  1. Wi-Fi
  2. UPS
  3. TCP/IP
  4. UTP

Ans:

Wi-Fi – Wireless Fidelity

UPS – Uninterruptible Power Supply

TCP/IP – Transmission Control Protocol/Internet Protocol

UTP – Unshielded Twisted Pair

Ans: A database is a structured collection of data, while DBMS (Database Management System) is software used to manage, manipulate, and interact with databases.

Ans: A primary key is a unique identifier for each record in a database table, ensuring data integrity and enabling efficient data retrieval.

Ans: A query is a request for information from a database, enabling users to retrieve specific data meeting certain criteria.

a. Primary key does not accept null value. ( True)

b. The extension of database file created by MS-Access is BDF. ( False)

c. Memo data type can be indexed. (True)

Primary key                      Formatted output

OLE                                   Interface

Form                                 64,000 characters

Report                              Unique field

                                          Picture

Ans:

Primary key – Unique field
OLE – Picture
Form – Interface
Report – Formatted output

Ans: User-defined function is a function created by the user to perform a specific task, extending the functionality of the programming language.

Ans: Two data types used in C language are int (integer) and float (floating-point number).

Ans: In QBASIC, NAME is used to assign a name to a program or subroutine, and SHELL is used to execute operating system commands from within a QBASIC program.

DECLARE FUNCTION reverse$(N$)
INPUT “Any String”; N$
X$ = reverse$(N$)
PRINT N$
END
FUNCTION reverse(N$)
L = LEN$(N$)
FOR X = L to 1 STEP – 1
A$ = MID$(N$, X, I)
B$ = B$ + A$
NEXT X
B$ = reverse$(N$)
END FUNCTION

Ans: Here’s the debugged version of the program:

DECLARE FUNCTION reverse$(N$)

INPUT "Any String"; N$
X$ = reverse$(N$)
PRINT X$
END

FUNCTION reverse$(N$)
    L = LEN(N$)
    FOR X = L TO 1 STEP -1
        A$ = MID$(N$, X, 1)
        B$ = B$ + A$
    NEXT X
    reverse$ = B$
END FUNCTION
DECLARE SUB series ()
CALL series
END
SUB series
X = 1
FOR K = 1 TO 4
    PRINT X;
    X = X + K
NEXT K
END SUB

Ans: The output of the program would be:

1 2 4 7 11
DECLARE SUB SUM (N)
N = 5
CALL SUM (N)
END
SUB SUM (N)
FOR X = 1 TO N
S =S  + X
NEXT X
PRINT S
END SUB

Ans: The FOR…NEXT loop executes 5 times, as determined by the value of N which is set to 5 before calling the SUM subroutine.

Ans: The name of the procedure used in the above program is SUM.

Ans: Program to calculate the average of three numbers using FUNCTION procedure:

FUNCTION CalculateAverage(num1, num2, num3)
    CalculateAverage = (num1 + num2 + num3) / 3
END FUNCTION

CLS
INPUT "Enter first number: ", num1
INPUT "Enter second number: ", num2
INPUT "Enter third number: ", num3

average = CalculateAverage(num1, num2, num3)
PRINT "The average of the three numbers is: "; average
SUB CountVowels(word)
    vowels = "aeiouAEIOU"
    count = 0
    FOR i = 1 TO LEN(word)
        letter = MID$(word, i, 1)
        IF INSTR(vowels, letter) THEN
            count = count + 1
        END IF
    NEXT i
    PRINT "Total number of vowels in the word "; word; " is "; count
END SUB

CLS
INPUT "Enter a word: ", inputWord
CALL CountVowels(inputWord)

Ans: Program to display all the records of the employees whose salary is more than 40,000 in QBASIC:

OPEN "STAFF.dat" FOR INPUT AS #1

DO WHILE NOT EOF(1)
    INPUT #1, EMPID, firstName, lastName, post, salary
    IF salary > 40000 THEN
        PRINT EMPID, firstName, lastName, post, salary
    END IF
LOOP

CLOSE #1

How can we help?

Leave a Reply

Your email address will not be published. Required fields are marked *