0% found this document useful (0 votes)
42 views9 pages

1 - Computer Basics Final Exam

This document contains a student exam for a computer basics course. It is divided into three parts: 1) Data representation questions involving converting between binary, decimal, octal, and hexadecimal numbers. 2) Writing steps for basic computer tasks like inserting images, animations, and calculations in Excel. 3) Coding programs to calculate averages, output divisible numbers, sort integers, and find minimum values in arrays. The student provided their answers in the second half of the document, showing the work for each question and section of code for the programming problems.

Uploaded by

Arup Sur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views9 pages

1 - Computer Basics Final Exam

This document contains a student exam for a computer basics course. It is divided into three parts: 1) Data representation questions involving converting between binary, decimal, octal, and hexadecimal numbers. 2) Writing steps for basic computer tasks like inserting images, animations, and calculations in Excel. 3) Coding programs to calculate averages, output divisible numbers, sort integers, and find minimum values in arrays. The student provided their answers in the second half of the document, showing the work for each question and section of code for the programming problems.

Uploaded by

Arup Sur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Student Number:Student Name:BULBUL MD MAKSUDAR RAHMAN

安徽工业大学试题纸

题号(Part No.) I II III IV V VI VII VIII 总分(Sum)

得分(Score)

2021~2022 学年第二学期期末考试《计算机基础》试卷(甲 A)
Final Exam of Computer Basics for Bachelors 2022Summer(A)

Part I Data representation (30 points)


1. Please convert the following numbers between different counting systems(12 points).

(1)binary to decimal:(1001.011)2=()10

(2)decimalto binary :(26.73)10=()2

(3)binary to octal:(11100.011)2=()8

(4)hexadecimalto binary:(E0F.B)16=()2
2. Please write out the results of binary operations(12 points).

(1) (1101.011)2+ (1010.11)2=(11000.001)2

(2) )(1101.011)2˅ (110.011)2=()

(3) (1001.1)2- (11.01)2=()2

(4) (11011)2˄ (10001)2=()2


3. Please write out the sign-magnitude, the one’s complement and the two complement for the following
decimal numbers(6 points).
(1) 17
(2) -17
Part II Write the steps of operations (30 points)
1.Please write out the steps of inserting a picture in a word document (10 points).
2. Please write the steps of setting a “fly in”animations for a WordArtin PowerPoint (10 points).
3. Based on the following data, please write out the steps of computing all the lowest scores for every course in
Excel (10 points).

A1

Course Name: _____________________________ Teacher’s Name: _____________________________

Time& Date: _____________________________ Place: _____________________________


Student Number:Student Name:BULBUL MD MAKSUDAR RAHMAN

Part IIIWrite programs (40 points)


1.Please get seven integers from keyboard and compute their average(10 points).
2.Please write a program to output all the numbers from 1 to 100 that can be divided by 4 or 7(10 points).
3.Sort three integers from largest to smallest.What’s more, the values of these numbers are required to printed
on screen before and after being sorted(10 points).
4.Use array to find the minimum in sixfloats, the initial value of the array is entered by keyboard(10 points).

A2

Course Name: _____________________________ Teacher’s Name: _____________________________

Time& Date: _____________________________ Place: _____________________________


Student Number:Student Name:BULBUL MD MAKSUDAR RAHMAN

安徽工业大学试题纸(一)
Answer Paperof Computer Basics 2022Summer(A)
Part I Data representation (30 points)
1)
(1) (1001.011)₂ = (1 × 2³) + (0 × 2²) + (0 × 2¹) + (1 × 2⁰) + (0 × 2⁻¹) + (1 × 2⁻²) + (1 × 2⁻³) = (9.375)₁₀

(2) (26.73)10= (11010.101110101110000101)2

(3) :(11100.011)2=Convert every 3 binary digits (from bit0) to octal digit

11100.011

= 11 100.011

= 3 4.3

= (34.3)8

(4) Convert each hex digit to 4 binary digits:

(E0F.B)16
= E 0 F.B
= 000 1110 0000 1111.1011

=(000111000001111.1011)2

A3

Course Name: _____________________________ Teacher’s Name: _____________________________

Time& Date: _____________________________ Place: _____________________________


Student Number:Student Name:BULBUL MD MAKSUDAR RAHMAN

2)

(1) (1101.011)2+ (1010.11)2=(11000.001)2

(2) )(1101.011)2˅ (110.011)2=(10011.110)2

(3) (1001.1)2- (11.01)2=(110.01)2

(4) ) (11011)2˄ (10001)2=(10001)2

3)
(1) sign-magnitude one’s two’s
00010001 00010001 00010001

(2)sign-magnitude one’s two’s


10010001 01101110 01101111

Part II Write the steps of operations (30 points)

1.

 Select Insert > Pictures > This Device for a picture on the PC.

 Select Insert > Pictures > Stock Images for high quality images or backgrounds.
A4

Course Name: _____________________________ Teacher’s Name: _____________________________

Time& Date: _____________________________ Place: _____________________________


Student Number:Student Name:BULBUL MD MAKSUDAR RAHMAN

 Select Insert > Pictures > Online Pictures for a picture on the web

2)
Step 1>Open Microsoft Power point
Step 2>New slide
Step 3>Write something
Step 4>Select word
Step 5>Animation
Step 6>Apply Fly in animation
Step 7>To check click on Preview

3)
Step 1 - Click on C9 cell
Step 2 - input = min(C3:C8)
Step 3- enter

Step 4 - click on D9 cell


Step 5- input =min(d3:d8)
Step 6 - enter

St 7- click on E9
St 8!-Input =min(e3:e8)
St 9 - enter

安徽工业大学试题纸(二)
Answer Paperof Computer Basics 2022Summer(A)
3)

Part IIIWrite programs (40 points)


1) 1.
#include<stdio.h>

A5

Course Name: _____________________________ Teacher’s Name: _____________________________

Time& Date: _____________________________ Place: _____________________________


Student Number:Student Name:BULBUL MD MAKSUDAR RAHMAN

int main()
{
int i,n,Sum=0,numbers; float
Average;

printf("\nPlease Enter How many Number you want?\n"); scanf("%d",&n);

printf("\nPlease Enter the elements one by one\n");


for(i=0;i<n;++i) {
scanf("%d",&numbers);
Sum = Sum +numbers;
}

Average = Sum/n;
printf("\nAverage of the %d Numbers = %.2f",n, Average);

return 0;
}

2)

# include<bits/stdc++.h> using
namespace std;

// Result generator with N int


NumGen(int n)
{

// Iterate from 0 to N for(int j =


1; j < n + 1; j++)
{

// Short-circuit operator is
used if (j % 4 == 0 || j %
7 == 0) cout << j <<
" ";
}
return n;
}

// Driver code int


main()
{

A6

Course Name: _____________________________ Teacher’s Name: _____________________________

Time& Date: _____________________________ Place: _____________________________


Student Number:Student Name:BULBUL MD MAKSUDAR RAHMAN

// Input goes here


int N = 100;

// Iterating over generator function


NumGen(N);

return 0;
}

3)
#include <stdio.h>
#include <math.h>

int main (){

int x, y, z; printf("Input 3 integers:


"); scanf("%d %d %d", &x, &y,
&z);
printf("\n---------------------------\n");
printf("Original numbers: %d, %d, %d",x,y,z);
printf("\nSorted numbers: "); if (x <= y && y <=
z){ printf("%d, %d, %d",x,y,z);
} else{

if (x <= z && z <= y)


{ printf("%d, %d, %d",x,z,y);
} else{
if (y <= x
&& x <=
z)
{ prin
tf("%d,
%d,

A7

Course Name: _____________________________ Teacher’s Name: _____________________________

Time& Date: _____________________________ Place: _____________________________


Student Number:Student Name:BULBUL MD MAKSUDAR RAHMAN

%d",y,x,z)
;
} else{

if (y <= z && z <= x)


{ printf("%d, %d, %d",y,z,x);
} else{

if (z <= x && x <= y)


{ printf("%d, %d, %d",z,x,y);
} else{
if (x == y && y == z)
{ printf("%d, %d, %d",x,y,z);
} else{
printf("%d, %d, %d",z,y,x);
}
}
}
}
}
}
}

4) #include <stdio.h>

void main()
{
int arr1[100]; int
i, mx, mn, n;

printf("\n\nFind maximum and minimum element in an array :\n");


printf("--------------------------------------------------\n");

printf("Input the number of elements to be stored in the array :");


scanf("%d",&n);

A8

Course Name: _____________________________ Teacher’s Name: _____________________________

Time& Date: _____________________________ Place: _____________________________


Student Number:Student Name:BULBUL MD MAKSUDAR RAHMAN

printf("Input %d elements in the array :\n",n);


for(i=0;i<n;i++) {
printf("element - %d : ",i); scanf("%d",&arr1[i]);
}

mx = arr1[0]; mn
= arr1[0];

for(i=1; i<n; i++)


{
if(arr1[i]>mx) {
mx = arr1[i];
}

if(arr1[i]<mn) {
mn = arr1[i];
}
}

printf("Minimum element is : %d\n\n", mn);


}

A9

Course Name: _____________________________ Teacher’s Name: _____________________________

Time& Date: _____________________________ Place: _____________________________

You might also like