Thursday, February 27, 2020

SET 12 - C Programming ----SEE Computer Science 2076 --- Practice Day 12 --- 10 Questions

SET 12 - C Programming ----SEE Computer Science 2076  --- Practice Day 12  --- 10 Questions


Introduction of C

Questions and Answers

1.      Advantages of structured programming [SEE 2075] [SLC 2066]
a)      It is easy to design code and test the program modules independently
b)     It is possible to use a single module in different in different places which reduces program codes.
2.      Data types used in C language [SEE 2074] [SLC 2072] [SLC 2071 S] [SLC 2065] [SLC 2068] [SLC 2070] [SEE 2065 S] [SLC 2066 S] [SLC 2067 S] [SLC 2069 S] [SLC 2070 S] [SQE 2074K]
a) char        b) int                c) float               d) double

3.      Characteristics of C language [SEE 2075 U] [SEE 2075 S 2] [SLC 2071] [SLC 2067] [SLC 2069]
a)      It is a high level language with some features of low level language.
b)     It is mostly used to prepare system software.
c)      It is structured programming language with function procedure.
d)     It has enough number of inbuilt functions and operators.
e)      It is a small programming language which occupies less memory space.

4.      Features of C- language [SEE 2073 U]
a)         Simple and easy to use
b)         Occupies less memory
c)         C is the structured programming language.
d)         C has powerful set of operators.
e)         C is a high level programming language.
f)          C contains very less number of keywords

5.      Variable [SEE 2073] [SLC 2071 S] [SLC 2070] [MFT 2075]
A variable is a location in the memory of a computer whose value may change during the execution of program.

6.      Constant
Constant are the values that do not change during the execution of a program.


7.      Operator [SQE 2075K]
Operators are special symbols that are meant for specific tasks or operators.
8.      Logical Operator [SEE 2075]
The operators used for logical operation is called logical operator.

9.      Loop [SEE 2073] [SLC 2068] [SLC 2067 S] [SLC 2070 S]
A set of statements which is used to repeat a block of statements for a specific number of times or as long as the condition is true/false is called loop.

10.   Comparing C and QBASIC language [SEE 2074 U] [SLC 2068 S]
QBASIC
C
It is a high level language without feature of low level language.
It is a high level language with some features of low level language.
It is mostly used to design application software.
It is mostly used to prepare system software.
It supports structure programming with sub and function procedure.
It is a structured programming language with function procedure.
It is not case sensitive
It is case sensitive
IBM PC version of BASIC has around 159 keywords.
It has only 32 keywords.

 



Wednesday, February 26, 2020

SET 11 - File handling----SEE Computer Science 2076 --- Practice Day 11 --- 15 Questions

SET 11 - File handling----SEE Computer Science 2076 --- Practice Day 11 --- 15 Questions


Handling of data file

Questions and Answers

1.      Mode of data file [SLC 2069]
Mode of data file means opening a sequential file for one of the three modes of operation like output mode, input mode and append mode.
2.      Modes of operation for opening a sequential file
a)      Output Mode: It is used to create a new data file and write data in it. If the file already exists its current contents will be destroyed.
b)     Input Mode: It is used to retrieve records or contents of existing data file.
c)      Append Mode: It is used to add more records in existing file. If the specified file does not exist APPEND mode creates it.
Write down the functions of:
3.      WRITE statement [SEE 2075] [MM 2076]: It sends one or more data items to the specified file. It inserts commas between the data items. It encloses strings in double quotation marks.
4.      CLOSE statement [SEE 2074] [SEE 2073: It closes one or all open files.
5.      INPUT# statement [SEE 2075 U] [SEE 2075 S 2]: It reads data from the sequential data file.
6.      EOF( ) function [SEE 2075 S 2]: It is used to test the end of records with in a file.
7.      NAME statement [SEE 2073] [SLC 2071 S]: The NAME statement renames a file on a diskette. Only file name changes, data and program line remains intact.
8.      KILL statement [SEE 2074]: The KILL statement deletes the file or files from the specified drive and directory.
9.      MKDIR statement [SEE 2075 U]: It creates a subdirectory which is used to manage files.
10.   RMDIR statement [SLC 2065] [SLC 2068 S]: It is used to remove or delete only the subdirectories from a disk. It can remove only empty subdirectories.
11.   FILES statement: The FILES statement displays the files of the current sub directory or specified sub directory.
12.   INT [MM 2076] [MFT 2075]: It rounds and returns the largest integer less than or equal to a numeric expression.
13.   MID$ ( ) [MFT 2075]: It is a string function that returns the specified number of characters from the specified location of string.
14.   LEN ( ) [SQE 2074K]: Returns the number of characters in a string or the number of bytes required to store a variable.
15.   SQR ( ) [SQE 2074K]: Returns the square root of a numeric expression.

Tuesday, February 25, 2020

SET 10 - Modular Programming----SEE Computer Science 2076 --- Practice Day 10 --- 20 Questions




Modular Programming

Questions and Answers

1.      Modular programming [SEE 2075 U] [SLC 2066] [SEE 2065 S] [MM 2076] [PMT 2075K]
Modular programming is a technique used to divide program into many small, manageable, logical and functional modules or blocks.

2.      Qbasic is called Modular Programming [MFT 2075] [SQE 2074K]
QBasic is called modular programming because it divides program into many small, manageable, logical and functional modules or blocks.
3.      Advantages of modular programming [SEE 2073 U] [MFT 2075] [SQE 2074K]
i) Different programmers can design different program modules independently, which is required in a large and complex program.
ii) It is easy to design code and test the program modules independently.
iii) It is possible to use a single module in different places which reduces program codes.
4.      Procedure [SLC 2072] [SLC 2071] [SLC 2064] [SLC 2067] [SLC 2068 S] [SQE 2075K] [PMT 2075K]
Procedure is a block of statements that solves a particular program.
Procedure is a section of code which performs one or more specific tasks and can be accessed from remote location. 
There are two types of procedure – SUB Procedure and FUNCTION procedure

5.      SUB procedure [SLC 2064] [SLC 2065] [SLC 2069 S] [MM 2076]
A SUB procedure is a small, logical and manageable functional part of program which prefers specific task and does not return any value. SUB-procedure is called by CALL statement. SUB-procedure’s name does not accept data type symbol because it does not need to return a value.

6.      FUNCTION procedure [SLC 2064] [SLC 2065] [SLC 2069 S] [MM 2076]
A FUNCTION procedure is a small, logical and manageable functional part of a program which performs specific task and returns single value to the main program or calling module. FUNCTION-procedure is called by statement and expression method. FUNCTION-procedure’s name accepts data type symbols such as $, %, !, #, &, etc. and it depends on the type of value to be returned. E.g.: FUNCTION REV$ returns string.

7.      String function [SEE 2074 U]
String function is used with string it returns string value.

8.      Numeric function [SEE 2074 U]
Numeric function is used with number it returns numeric value.

9.      Library functions [SQE 2074K]
Library functions are built-in or readymade functions provided by QBASIC. E.g. MID$( ), LEN( ), SQR( ) etc.

10.   User defined function [SLC 2066 S] [SQE 2074K]
Function which is defined by the user according to the need is called user defined function.
11.   Parameters [SEE 2074]
Parameters are variables that will receive data (arguments value) sent to the procedures (SUB program and FUNCTION). Formal parameters are called parameter.
12.   Arguments
Arguments are the values that are sent to the procedures (SUB program and FUNCTION). Actual or real parameters are called arguments.
13.   CALL statement [SLC 2071] [PMT 2075K]
The function of CALL statement is to transfer the control to another procedure.
14.   DECLARE statement
The function of DECLARE statement is to declare procedure such as FUNCTION or SUB in modular programming.
15.   DIM SHARED statement
i) It makes variable accessible to all modules.
ii) It appears in main module/ program.
16.   SHARED [SLC 2071]
It is used in the sub program to share the values of certain variables between main module and sub program
17.   COMMON SHARED [SEE 2074 U]
It is used in the main program to share variable list between main module and all sub programs. This statement is used to declared variable global.
18.   Local Variable [SEE 2075 S2]
Variables which are declared inside the procedure are called local variables. Local variables are not visible to other modules or functions. Its value is protected from outside interference and has no effect on the variables outside the procedures. Local variable can access only in its own module.
19.   Global Variable [SEE 2075 S2]
Variables which are declared outside the procedure are called global variables.  Global variables are visible to other modules or functions. Its values can be accessed from any procedure or module. Global variable can be access throughout the program
20.   Qbasic Operators [MFT 2075] [SQE 2074K]
Operators are special symbols that are meant for specific tasks or operators.
i) Arithmetic operators
ii) Relational operators
iii) Logical Operators
iv) String operator


Monday, February 24, 2020

SET 9 - Full Forms----SEE Computer Science 2076 --- Practice Day 9 --- 30 Questions


ADSL
ASCII
bps
CD-ROM
DVD
FTP
Gbps
HTTP
ICT
IRC
ISP
Kbps
LAN
LCD
MAN
MODEM
NIC
NOS
OS
PDF
ROM
SMTP
TCP
TCP/IP
UPS
URL
UTP
VOIP
WAN
WWW

Sunday, February 23, 2020

SET 8 - Match the Following ----SEE Computer Science 2076 --- Practice Day 8 --- 45 Questions



1. [SLC 2065 S]

2. [SLC 2066]

a)     MS-ACCESS
(d) analyze and present data in a printed format
a)     Default value
(c) 255 Characters
b)     Data update
(b) Query
b)     Fox Pro
(d) Column Name
c)      Field
(c) a piece of information related to someone or something
c)      Text
(b) DBMS
d)     Report
(a) Database management software
d)     Field 
(a)Field Properties

(-) collection of related fields
                     
(-) Search fast


3. [SLC 2066 S]

4. [SLC 2067]

a)      OLE                                    
(d) Formatted output
a)     OLE
(d)Report
b)     Primary key                        
(c) Interface
b)     Data entry
(a) Picture
c)      Form                       
(-) 64,000 characters
c)      Indexing
(-) Table
d)     Report                     
(b) Unique Field
d)     Formatted printout
(c)Fast searching

(a) Picture

(b)Form

5. [SLC 2067 S]

6. [SLC 2068]

a)      MS-Access
(d) DATA entry and editing interface
a)     Indexing                           
(c) Limits the value
b)     Query
(-) Electronic Spreadsheet software
b)     Report                              
(d) Data type
c)      Record                    
(b) Tool to retrieve data from one or more than one   tables
c)      Validation Rule               
(-) Error messages
d)     Form
(a) Data base management software
d)     Hyper link                       
(b) Final output

(c) Collection of related fields

(a) Search fast

7. [SLC 2068 S]

8. [SLC 2069]

a)      Indexing data 
(d) Retrieves data conditionally
a)      OLE
(d) Data Entry
b)     Long Text    
(c) DBMS
b)     Hyperlink
(c) Formatted  Hardcopy
c)      Fox Pro
(b) Memo field
c)      Report
(a) 1 GB
d)     Query
(a) Searching fast
d)     Form
(-) Up to 255 characters

(-) Report

(b) Up to 2048 characters

9. [SLC 2069 S]

10. [SLC 2070]

a)      Report 
(b) Data type
a)      Indexing Data
(d) Size upto 1 GB
b)     Currency
(d) Column
b)     Form
(c) Column of datasheet
c)      Long Text
(a) Database object
c)      Field
(-) Row on a datasheet
d)     Field
(-) Record
d)     OLE object
(a) Searching Fast

(c) Memo

(b) Graphical interface for data entry
11. [SLC 2070 S]

12. [SLC 2071]

a)      dBASE
(c)OLE
a)      Indexing data
(b)Final output
b)     Primary key
(d)Memo
b)     Report
(d)View data
c)      Photo
(a)DBMS
c)      Yes/No
(a)Searching fast
d)     Long text
(b)Uniquely defined
d)     Select query
(-)Picture

()Hyper links

(c)Data type
13. [SLC 2072]

14. [SLC 2065] [SEE 2073]
a)      OLE                                   
(c) Data Entry
a)     Query
(d) Printed format
b)     Validation Rule                
(-) Stores data
b)     Form
(c) Stores data
c)      Form                                  
(b) Limits the value
c)      Table
b) Allows view, edit, input data
d)     Indexing                            
(a) Data type
d)     Report
(a) Extracts selected record for view

(d) Easy to search

(-) DBMS
15. [SEE 2074]

16. [SEE 2075 U]

a)     Data
(b) Input, view, edit data
a)     Caption
(d) Logical data type
b)     Form
(c) Formated output
b)     OLE
(-) Error Message
c)      Report
(a) Collection of raw facts
c)      Data Redundancy
(b) Picture
d)     Table 
(-) Question to the database
d)     Yes/No
(a) Label for field

(d) Stores data in database

(c) Duplication of data


17. [SEE 2075]

18. [SEE 2075 S2]

a)      Yes / No
b) 4 bytes
a)      Table
d) Printed format
b)     Long integer
d) MS Access object
b)     Primary Key
c) Allows viewing editing and inputting data
c)      OLE
c) Picture
c)      Form
b) uniquely defined
d)     Report
a) 1 bit
d)     Report
a) stores data

8 bytes

Extracts selected record for view
19. [SEE 2074 U]

20. [SEE 2073 U] [SEE 2071 S]
a)      Form
b) Column on datasheet
a)     Ms-Access
d) data entry and editing interface
b)     Field
c) Data type
b)     Query
- electronic spreadsheet software
c)      Currency
a) Graphical interface for data entry
c)      Record
b) tool to retrieve data from one or more tables.
d)     Query
- DBMS
d)     Form
a) database management software

d) Retrieves data conditionally

c) collection of related fields

21. [SLC 2064]

22. [SEE 2073 U]

a)      Radio Wave 
(d) Device to connect network having different technology
a)      Network services
(d) Power protection device
b)      Cyber ethics
(c) power protection device
b)     Infrared
(c) E-Banking
c)      Spike guard
(-)  internet
c)      Internet services
(b) Transmission media
d)     Gateway
(b) professionally guided principles
d)     Volt Guard
(a) File sharing

(a) Wireless Media



23. [SLC 2065]

24. [SLC 2066]

a)      Server
(c) HTTP
a)      T-connector
(b)Network device
b)     Node
(b) Work Station
b)     Bridge
(d)Power protection
c)      Protocol
(a) Main Computer
c)      CD-ROM
(a)Coaxial  cable
d)     Coaxial Cable
(-) Repeater
d)     Spike Guard
(c)Multimedia component

(d) Communication Media

(-)Virus scanning

25. [SLC 2067]

26. [SLC 2068]

a)      Satellite
(-)Multimedia
a)      Microwave
(c)Multimedia
b)     HTTP
(b)Protocol
b)     Volt guard
(d)Protocol
c)      Online business
(a)Unguided media
c)      Sound card
(a)Unguided media
d)     Fiber optics
(c)E-commerce
d)     TCP/IP
(b)Power protection devices

(d)Guided media

(-)Guided media

27. [SLC 2069]

28. [SLC 2070]

a)      RJ-45
(d)Multimedia
a)      Combination of several media
(c)Guided Media
b)     WAN
(c)Duplicate copy
b)     POP 
(d)Power Protection Device
c)      Back up
(-)Fiber optic cable
c)      UTP
(a)Multimedia
d)     Microphone
(a)Twisted pair cable
d)     UPS
(b)Protocol used in e-mail

(b)Internet

(-)CD-ROM

29. [SLC 2071]

30. [SLC 2065 S]

a)      E-commerce
(b)Power protection device
a)      McAfee
(b)Supplies continuous power
b)     Volt guard
(a)Online shopping
b)     UPS
(d)Internet protocol
c)      Satellite link
(c)WAN
c)      Web Browser
(a)Antivirus software
d)     Sound card
(-)Optical fiber
d)     TCP/IP
(c)Internet explorer

(d)Multimedia


31. [SLC 2066 S]

32. [SLC 2067 S]


a)      Bandwidth
(b)ISP
a)      Pictures in motions
(c)Guided media

b)     Internet
(-)FAT          
b)     TCP/IP
(a)animation

c)      Network
(a)bps
c)      UTP 
(d)Random Access Memory

d)     Software security
(d)NAV
d)     Volatile memory
(-)CD-ROM


(c)NIC

(b)Protocol used in Internet


33.  [SLC 2068 S]

34. [SLC 2069 S]

a)      LAN
(b)Within a city
a)      Sound card
(d)WAN
b)     MAN
(d)Internet protocol
b)     Virus
(c)Internet explorer
c)      UPS
(a)Within a room
c)      Web browser
(a)Multimedia
d)     IPX/SPX
(c)Power supply device
d)     Satellite link
(b)damage or corrupt data

(-)Between countries

(-)Bridge

35. [SLC 2070 S]

36. [SLC 2071 S]


a)      TCP/IP
(c)Multimedia
a)      Node
a) Workstation

b)     Back up
(d)Web address
b)     Server
d) HTTP

c)      Sound card
(b)Software security
c)      Coaxial cable
c) Communication media

d)     URL
(a)Protocol
d)     Protocol
b) Main computer

37. [SEE 2072]

38. [SEE 2073]

a)      Microwave
(c) Power protection device
a)      Malicious software
(c) UPS
b)     UTP
(d) Protocol
b)     Primary storage device
(a) virus
c)      UPS
(a) Unguided media
c)      Power protection device
(d) copyright
d)     SMTP
(-) Internet
d)     Intellectual property law
(b) RAM

(b) Guided media
e)      Malicious software
(c) UPS
39. [SEE 2074]


40. [SEE 2075 Upgrade]

a)      RJ 45 connector
(b) Duplicate copy
a)      Microwave
(d) Protocol

b)     Back up
(c) Multimedia
b)     UTP
(c) Power protecting device

c)      Microphone
(a) Twisted pair cable
c)      UPS
(a) Unguided media

d)     Hub/switch
(-) Ring Topology
d)     SMTP
(-) Internet


(d) Star Topology

(b) Guided media

41. [SEE 2075]  

42. [U1]

a)      Hub
(c) Communication media
a)      LAN
c) Software security
b)     TCP/IP
(a) Network connecting device
b)     Client/server
d) Hardware security
c)      UTP
(d) Windows NT
c)      Back up
a) Network type
d)     NOS
(b) Protocol
d)     Fire control
b) Network architecture
e)       


Computer Virus

43. [SEE 2075 State 2]

44. [MFT 2075]

a)      Backup
(d) Online shopping
Node
Powerful computer
b)     Microphone
(a) Duplicate data
Protocol
d) Prevents gaining access
c)      Web browser
(-) Damage or corrupt data
Scan disk
c) Checking for disk error
d)     E-commerce
(b) Multimedia
Firewall
a) Workstation

(c) Display of web pages

b) Rules for network communication

45. [SEE 2074 Upgrade]

a)      BNC
(d) Two way communication
b)     URL
(b) Address of web page
c)      Online business
(a) Connector
d)     Duplex
(c) E-commerce

(-) Protocol