• About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
  • Home
  • Courses
  • Past Paper
  • FYP
  • Interview Questions
  • University Events
  • Contact
  • Quiz & Assignment
Cuitutorial
  • Home
  • Courses
  • Past Paper
  • FYP
  • Interview Questions
  • University Events
  • Contact
  • Quiz & Assignment

M&AL past paper

Home » M&AL past paper

M&AL all past/Previous question paper

-M&AL –Computer Science all subject past paper  – M&AL    with source code – M&AL   Course – M&AL    idea – M&AL  MCQ- M&AL   Interview Question  –Computer Science all courses -Technology –University Past Paper -Programming language –Question paper –old paper

M&AL Sessional I in past paper




MPAL S1

M&AL Sessional II in past paper

Write a program (MASM code) that subtracts three integers (X, Y, Z). Insert a call DumpRegs statement to display the register values.

X = Your Roll number

Y = X*2

Z = 10

Question 02:                                                                                                              [05×01]

 Calculate the number of elements of the following arrays

  1. a) Array1 BYTE 10h,20h,30h
  2. b) Array2 WORD 1000h,2000h,3000h
  3. c) Array3 DWORD 10000h,20000h,30000h
  4. Array4 WORD 1,2,3
  5. Array5 DWORD 4,5,6

Hint: Use $ Operator. Complete code is not required just write one MASM code statement.

M&AL Sessional I in final paper




The greatest common divisor (GCD) of two integers is the largest integer that will evenly divide both integers. The GCD algorithm involves integer division in a loop, described by the following C++ code:

int GCD(int x, int y)

{

x = abs(x); // absolute value y = abs(y);

do {

int n = x % y; x = y;

y = n;

} while (y > 0); return x;

}

Implement this function in assembly language and write a test program that calls the function several times, passing it different values. Display all results on the screen.

Question 02:                                                                                    [10]

Write an application that does the following:

  • Fill an array with 9 random integers and use Your Roll Number as 10th
  • Sort through the array, displaying each value, and count the number of negative values
  • After the loop finishes, display the count and the last




#M&AL  #Computer Science all subject past paper  # M&AL  # M&AL   with source code #M&AL  idea –M&AL  MCQ#M&AL  Interview Question  #Computer Science all courses #Technology –University Past Paper #Programming language #Question paper #old paper

admin@cuitutorial.com
Facebook-f Twitter Youtube Linkedin Instagram Stack-overflow Pinterest Github Quora Whatsapp
Courses
  • All Courses
  • Past Paper
  • Final year projects
  • Interview Questions
  • Contact
Important Pages
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
Links
  • University Events
  • Team
Education & learning platform for All Computer science subjects
Final year projects
Past Paper
Interview questions
Programming, C/C++, Asp.net/MVC. Android, MySql, Jquery, Ajax, javascript, Php, Html5, Bootstrap4.
NTS, GAT, PPSC, FPSC

Copyright © 2021 | Cuitutorial