Академический Документы
Профессиональный Документы
Культура Документы
Name:____________________ Roll No._________ ime allo!ed: "0 minutes Marks:1# Note: Section A is compulsory. All parts of this section are to be answered on the question paper itself. Deleting / overwriting are not allowed. Do not use lead pencil. Section $ Q. !ic" the correction option i.e. a/b/c/d i. !he number of possible combination in a #$bit code are:$ %a& '( %b& )*+ %c& +' %d& ), A ii. %a& %c& / 0 D %b& 1nicode %d& 3/0D20 0 D %b& %d& / 0 D 555 5 55555
iii.
4ultiply the binary numbers %a& 5555 %c& )6 65 A iv. %a& %c&
5 by 5 is
-hich of the following command is used to e7it from /AS20 3ditor. 083A9 %b& :288 S;S!34 %d& S<388 A / 0 D %b& %d& D NA43 91N
v.
!he name of a dis" file can be changed by: %a& N3%c& 93N14 A / 0
vi.
-hich of the following statements can be used for multiple branching. %a& =>!> %b& 2? !<3N 38S3 %c& >N =>!> %d& -<283$ -3ND A / 0 D
@age of *
-hich of the following statements can be used for unlimited looping:$ >N =>!> 2? !<3N A / 0 %b& %d& D ?>9A..N3B! =>!>
-hich of the following types of the characters can be used as numeric variable name. Special <yphen A / 0 %b& %d& D blan" spaces None of them
-hich of the following word can be used as a variable name. 0>8>9 %b& :3; @3N028 %d& @3N A / 0 D
7.
!he ma7imum characters that a string constant may contain are:$ %a& , %b& 6) %c& ,5 %d& )** A / 0 D
7i.
/inary coded decimal %/0D& e7presses each decimal digit as:$ %a& /inary digit %b& byte %c& Nibble %d& -ord A / 0 D %b& %d& A / 0 D 5'$65(# All of the above
7ii.
@age ) of *
v.
ii. iii.
vi.
0onstruct a truth table for the following /oolean e7pression i. 7y E 7FEyF ii. %7Ey&.%7y& -rite a /AS20 language program to calculate and print the area of a circle by using user$ defined function. !he formula used to find the area is Area G H %9adius&) Differentiate between he7adecimal and octal number systems with e7amples -rite a a short note on /AS20 and describe some of its important features. Simplify the following /oolean functions using algebraic or :$4ap method. ?GA./D.0DEA.0DEA./.0DEAD./.0D
vii.
viii. i7. 7.
@age 6 of *
7i.
Do the following conversions:$ a. % 55 &) to %.& 5 b. %6* #& 5 to %.& + c. %A/0& + to %.&, Subtract % 55 &) from % 55 &) using )Ds compliment
7ii. 7iii.
37plain read and data statement with e7amples SEC ,1N %C 'M$R2S 13)
N1 E: $ttempt an+ 41 5uestions. Each 5uestion carries e5ual marks. '".6013) Q.6 a& -rite a basic program to calculate the sumI product and average of ' numbers using input statement %'& b& -rite a program that shows the following output by using while loop. %'& N N) N6 ) 6 ' Q.' ' ( + , )# +'
a&Define the following commands with synta7 and symantics and give at least one e7apmle in each command %,& i. A1!> ii. 083A9 iii. D383!3 iv. 3D2! v. ?283S vi. :288 vii. 82S! viii. 8>AD -rite a program to read a studentDs mar"s in a subJect and print the grades letter according to the following scheme =rade 9ange ,5$ 55 +*$#( *5$+' 8etter =rades A / 0
*.#
@age ' of *
D ? %5)& %5+&
State which type of loop you thin" is the most suitable -rite a =-$/AS20 code to solve the problem
@age * of *