Professional Documents
Culture Documents
ND II STREAM A
QUESTIONS
Q1) Using a Flowchart show a program that can be use to take for the
shortest guy in ND2.
Q5) In a Tabular form, Show the difference between the following Primary
and Secondary storage.
1
COM 212INTRODUCTION TO SYSTEM PROGRAMMING 19/130936
ND II STREAM A
Start
read a b,c
If a < b
NO YES
NO
If b < c YES NO If a < c YES
Stop
2
COM 212INTRODUCTION TO SYSTEM PROGRAMMING 19/130936
ND II STREAM A
STEP1: START
STEP8: Else
STEP9:Print “c is a tallest “
STEP10: End if
STEP11: STOP
3
COM 212INTRODUCTION TO SYSTEM PROGRAMMING 19/130936
ND II STREAM A
#include<stdio.h>
Int main()
Printf(“%25s”,ab);
5
COM 212INTRODUCTION TO SYSTEM PROGRAMMING 19/130936
ND II STREAM A
While
6
COM 212INTRODUCTION TO SYSTEM PROGRAMMING 19/130936
ND II STREAM A
Preprocessor
7
COM 212INTRODUCTION TO SYSTEM PROGRAMMING 19/130936
ND II STREAM A
Compiler
Assembler
Linker
Linker is a computer program that links and merges various object files
together in order to make an executable file. All these files might have
been compiled by separate assemblers. The major task of a linker is to
search and locate referenced module/routines in a program and to
determine the memory location where these codes will be loaded, making
the program instruction to have absolute references.
PUSH 2,I
8
COM 212INTRODUCTION TO SYSTEM PROGRAMMING 19/130936
ND II STREAM A
PUSH 3,J
PUSH 4,K
PUSH 5,L
PUSH H
ADD I,J,K,L
PRINT H
PUSH 5,M
PUSH 6,N
PUSH 7,O
PUSH 8,P
PUSH Q
ADD M,N,O,P
PRINT Q
PUSH H
PUSH Q
PUSH R
SUB Q,F
PRINT R
Parentheses()
9
COM 212INTRODUCTION TO SYSTEM PROGRAMMING 19/130936
ND II STREAM A
Assignment operator(=)
Braces{}
Pre-processor (#)
Semicolon(;)
#include <stdio.h>
10