Sunday, March 1, 2020

SET 13 - Number System----SEE Computer Science 2076 --- Practice Day 13 --- 20 Questions

SET 13 - Number System----SEE Computer Science 2076  --- Practice Day 13  --- 20 Questions




Number System

[SLC 2065]
i) (228)8  into decimal
ii) (CA3)16 into binary
i) 11×11
ii) Divide 1110 by 11
[SLC 2065 S]
i) (756)8 into binary
ii) (1011011011)2 into hexadecimal
(11011x110)-11101
111100÷1000
[SLC 2066]
i) (101)10 into binary
ii)(78)8 into decimal
10101-1011
110*11
[SLC 2066 S]
i) (524)10 into Octal
ii) (31A)16­ into Binary
1011x101
1010-111+101
[SLC 2067]
i) (AC3)16 into decimal
ii) (110010)2 into octal
11*11-101
Divide 1010 by 10
[SLC 2067 S]
i) (7AF)16 into binary
ii) (1101101)2 into octal
11*11+11
110÷10
[SLC 2068]
i) (108)10 into binary
ii) (173)8 into binary
111*11
1010-10+11
[SLC 2068 S]
i) (168)10 into binary
ii) (1011)2 into decimal
1011+1101
110x11
[SLC 2069]
i) (684)10 into octal
ii) (101011)2 into decimal
1011×11
Divide 100101 by 110
[SLC 2069 S]
i) (442)8 into decimal
ii) (AB)16 into binary
101 x 10
divide 1101 by 111
[SLC 2070]
i) (BED)16 into binary
ii) (1010111)2 into octal
1010 × 10
10101 ÷ 11
[SLC 2070 S]
(209)10-(x)2
ii (537)8-(x)2
101 x 111
110111-1011
[SLC 2071]
(108)10 into binary
ii) (765)8 into decimal
111×11
Divide 1101 by 11
[SLC 2071 S]
(74)8 to decimal
(FAC)16 into binary
111×11
1 0 1 – 1 1
[SLC 2072]
(i) (208)10 into Binary
(104)8 into decimal
1011 + 1101
110 x 11
[SEE 2073]
(BAD)16 into Binary
(1111001)2 into octal
11 x 10 + 11
110 ¸10
[SEE 2073 U]
(364)8 into decimal
(1101010)2 into octal
1011 x 101
100101 ÷ 101
[SLC 2074]
(523)8 into Binary
(2074)8 into hexadecimal
110 x 101
111010 ¸110
[SEE 2074 U]
(CCA)16 into decimal
(479)10 into octal
(1010) x (111)
(10011) ÷ 10
[SQE 2075K]
(235)8 into decimal
(BA5)16 into binary
(1111 + 1101) – (1001)
1101 ´ 11 ¸ 101
[SEE 2075 U]
(546)8 into decimal
(1011100111)2 into Hexadecimal
1011 × 101
100101 ¸ 110
[SEE 2075]
(217)10 into Binary
(39C)16 into Decimal
1011 × 11
110111 – 11001
[SEE 2075 S2]
(FA)16 into Binary
(420)10 into octal
111 x 10
1101 ÷ 101

 


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