SlideShare a Scribd company logo
1 of 9
Download to read offline
Atiqa Ijaz Khan

(Geomatics: Session 2013-2015)

Assingment_01

Q

.1:
Write the output of the following statements:

(10 marks)

1) _abc = 13Thursday, February 27, 2014

2) a=7;b=9;c=89; c=a+b+c

Institute of Geology, University of the Punjab

Thursday, February 27, 2014
Atiqa Ijaz Khan

(Geomatics: Session 2013-2015)

Assingment_01

3) x=9;y=6; mod(x,y)

4) s=9; t=t+s+T

5) g='e';f='u';g+f

6) h='tyu'; whos(h);

Institute of Geology, University of the Punjab

Thursday, February 27, 2014
Atiqa Ijaz Khan

(Geomatics: Session 2013-2015)

Assingment_01

7) t='78';whos('t');

8) 4 * 2 – 9/3

9) sin=45; sin(3.4)

10)

intmax('uint32')

Institute of Geology, University of the Punjab

Thursday, February 27, 2014
Atiqa Ijaz Khan

(Geomatics: Session 2013-2015)

Assingment_01

Q

.2:
Execute the following pairs of commands and illustrate the output. If
the output is different, describe why it is different?
(10 marks)

1) log(10) and log10(10)

“log(10)” is by base 2, while “log10(10)” is by base 10.

2) cos(30) and cosd(30)

Institute of Geology, University of the Punjab

Thursday, February 27, 2014
Atiqa Ijaz Khan

(Geomatics: Session 2013-2015)

Assingment_01

Cosine is in Radians, while ‘cosd’ is in degrees.

3) who and whos

‘who’ give information only about variable, while ‘whos’ gives detail information.

4) 12378 and 123/78

In case of (12378), 123 is divided into 78 or 78 is divided by 123.

5) 6==9 and 6~=9
Institute of Geology, University of the Punjab

Thursday, February 27, 2014
Atiqa Ijaz Khan

(Geomatics: Session 2013-2015)

Assingment_01

6 is not equal to 9, so ans is 0, means False. While, 6 is less than 9 is a true.

6) rem(10,-6) and mod(10,-6)

‘-ve mod’ deals with value that is larger multiple LESS than the dividend. In our case, 12 is larger multiple of -6 as: [-6 * 2 = - 12], less than -10, so as per division rule: [-10 –
(-12) = 2]. ‘mod’ gets the sign value of (y), so it is –ve. In our case, it is: -2. While, ‘rem’ gets
the sign value of (x), so it is +ve.
REF. http://mathforum.org/library/drmath/view/52343.html

7)

double(10/4) and single (10/4)

Institute of Geology, University of the Punjab

Thursday, February 27, 2014
Atiqa Ijaz Khan

(Geomatics: Session 2013-2015)

Assingment_01

8)

double (13/7) and int8(13/7)

9)

int8(85698) and int32(85698)

Institute of Geology, University of the Punjab

Thursday, February 27, 2014
Atiqa Ijaz Khan

(Geomatics: Session 2013-2015)

Assingment_01

As ‘int8’ limits is upto 127, so in case of ‘int8(85698)’, it stops at its own maximum value.

10)

isnumeric('89') and ischar('89')

(‘89’) is char type not of numeric, as it is with quotes.

Q.

3.

Evaluate the following mathematical expressions:

Institute of Geology, University of the Punjab

(5 marks)

Thursday, February 27, 2014
Atiqa Ijaz Khan

(Geomatics: Session 2013-2015)

Assingment_01

Institute of Geology, University of the Punjab

Thursday, February 27, 2014

More Related Content

Viewers also liked

Applied statistics and probability for engineers solution montgomery && runger
Applied statistics and probability for engineers solution   montgomery && rungerApplied statistics and probability for engineers solution   montgomery && runger
Applied statistics and probability for engineers solution montgomery && runger
Ankit Katiyar
 
Transportation and assignment_problem
Transportation and assignment_problemTransportation and assignment_problem
Transportation and assignment_problem
Ankit Katiyar
 

Viewers also liked (14)

02 atiqa ijaz khan 02
02 atiqa ijaz khan 0202 atiqa ijaz khan 02
02 atiqa ijaz khan 02
 
Applied statistics and probability for engineers solution montgomery && runger
Applied statistics and probability for engineers solution   montgomery && rungerApplied statistics and probability for engineers solution   montgomery && runger
Applied statistics and probability for engineers solution montgomery && runger
 
EE201_Assignment4
EE201_Assignment4EE201_Assignment4
EE201_Assignment4
 
CV Template to a Journal Submission_2016
CV Template to a Journal Submission_2016CV Template to a Journal Submission_2016
CV Template to a Journal Submission_2016
 
Introduction to LiDAR_2016
Introduction to LiDAR_2016Introduction to LiDAR_2016
Introduction to LiDAR_2016
 
Instructions for Authors of IJRS (International Journal of Remote Sensing) fo...
Instructions for Authors of IJRS (International Journal of Remote Sensing) fo...Instructions for Authors of IJRS (International Journal of Remote Sensing) fo...
Instructions for Authors of IJRS (International Journal of Remote Sensing) fo...
 
Seep Concept_2016
Seep Concept_2016Seep Concept_2016
Seep Concept_2016
 
Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016
Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016
Islamic Studies-Ethics-Pak Studies MBBS Part 2 UHS Paper-2016
 
Physiology MBBS Part 2 UHS Paper-2016
Physiology MBBS Part 2 UHS Paper-2016Physiology MBBS Part 2 UHS Paper-2016
Physiology MBBS Part 2 UHS Paper-2016
 
Transportation and assignment_problem
Transportation and assignment_problemTransportation and assignment_problem
Transportation and assignment_problem
 
Catalog of Earth Satellite Orbits_2017
Catalog of Earth Satellite Orbits_2017Catalog of Earth Satellite Orbits_2017
Catalog of Earth Satellite Orbits_2017
 
EE201_Assignment3
EE201_Assignment3EE201_Assignment3
EE201_Assignment3
 
Assignment1
Assignment1Assignment1
Assignment1
 
Manual Solution Probability and Statistic Hayter 4th Edition
Manual Solution Probability and Statistic Hayter 4th EditionManual Solution Probability and Statistic Hayter 4th Edition
Manual Solution Probability and Statistic Hayter 4th Edition
 

Similar to 02 atiqa ijaz khan 01

Solution to me n mine mathematics vii oct 2011
Solution to me n mine mathematics vii oct 2011Solution to me n mine mathematics vii oct 2011
Solution to me n mine mathematics vii oct 2011
Abhishek Mittal
 
Csr2011 june18 14_00_sudan
Csr2011 june18 14_00_sudanCsr2011 june18 14_00_sudan
Csr2011 june18 14_00_sudan
CSR2011
 
Ejercicios asignados a yonathan david diaz granados
Ejercicios asignados a yonathan david diaz granadosEjercicios asignados a yonathan david diaz granados
Ejercicios asignados a yonathan david diaz granados
YonathanDavidDiazGra
 
0580 s10 qp_21
0580 s10 qp_210580 s10 qp_21
0580 s10 qp_21
King Ali
 

Similar to 02 atiqa ijaz khan 01 (20)

Solution to me n mine mathematics vii oct 2011
Solution to me n mine mathematics vii oct 2011Solution to me n mine mathematics vii oct 2011
Solution to me n mine mathematics vii oct 2011
 
Using Cauchy Inequality to Find Function Extremums
Using Cauchy Inequality to Find Function ExtremumsUsing Cauchy Inequality to Find Function Extremums
Using Cauchy Inequality to Find Function Extremums
 
class 12 2014 maths solution set 1
class 12 2014 maths solution set 1class 12 2014 maths solution set 1
class 12 2014 maths solution set 1
 
Csr2011 june18 14_00_sudan
Csr2011 june18 14_00_sudanCsr2011 june18 14_00_sudan
Csr2011 june18 14_00_sudan
 
Ip 5 discrete mathematics
Ip 5 discrete mathematicsIp 5 discrete mathematics
Ip 5 discrete mathematics
 
Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5
 
B.Tech-II_Unit-V
B.Tech-II_Unit-VB.Tech-II_Unit-V
B.Tech-II_Unit-V
 
Chapter06
Chapter06Chapter06
Chapter06
 
ゲーム理論 BASIC 演習89 -安全保障理事会決議における投票力指数-
ゲーム理論 BASIC 演習89 -安全保障理事会決議における投票力指数-ゲーム理論 BASIC 演習89 -安全保障理事会決議における投票力指数-
ゲーム理論 BASIC 演習89 -安全保障理事会決議における投票力指数-
 
Discrete Math IP4 - Automata Theory
Discrete Math IP4 - Automata TheoryDiscrete Math IP4 - Automata Theory
Discrete Math IP4 - Automata Theory
 
A note on estimation of population mean in sample survey using auxiliary info...
A note on estimation of population mean in sample survey using auxiliary info...A note on estimation of population mean in sample survey using auxiliary info...
A note on estimation of population mean in sample survey using auxiliary info...
 
GATE previous year paper 2007 to 2022 (1).pdf
GATE previous year paper 2007 to 2022 (1).pdfGATE previous year paper 2007 to 2022 (1).pdf
GATE previous year paper 2007 to 2022 (1).pdf
 
Ejercicios asignados a yonathan david diaz granados
Ejercicios asignados a yonathan david diaz granadosEjercicios asignados a yonathan david diaz granados
Ejercicios asignados a yonathan david diaz granados
 
Java™ (OOP) - Chapter 7: "Multidimensional Arrays"
Java™ (OOP) - Chapter 7: "Multidimensional Arrays"Java™ (OOP) - Chapter 7: "Multidimensional Arrays"
Java™ (OOP) - Chapter 7: "Multidimensional Arrays"
 
0580 s10 qp_21
0580 s10 qp_210580 s10 qp_21
0580 s10 qp_21
 
9th class sample paper2015
9th class sample paper20159th class sample paper2015
9th class sample paper2015
 
Multiple Choice Questions_Successive Differentiation (CALCULUS)
Multiple Choice Questions_Successive Differentiation (CALCULUS)Multiple Choice Questions_Successive Differentiation (CALCULUS)
Multiple Choice Questions_Successive Differentiation (CALCULUS)
 
IIT JAM MATH 2019 Question Paper | Sourav Sir's Classes
IIT JAM MATH 2019 Question Paper | Sourav Sir's ClassesIIT JAM MATH 2019 Question Paper | Sourav Sir's Classes
IIT JAM MATH 2019 Question Paper | Sourav Sir's Classes
 
maths 12th.pdf
maths 12th.pdfmaths 12th.pdf
maths 12th.pdf
 
Issta13 workshop on debugging
Issta13 workshop on debuggingIssta13 workshop on debugging
Issta13 workshop on debugging
 

More from Atiqa khan

More from Atiqa khan (20)

2019_Wingdings Font - Times New Roman
2019_Wingdings Font  - Times New Roman2019_Wingdings Font  - Times New Roman
2019_Wingdings Font - Times New Roman
 
English Urdu Font in Windows 10 Keyboard
English Urdu Font in Windows 10 KeyboardEnglish Urdu Font in Windows 10 Keyboard
English Urdu Font in Windows 10 Keyboard
 
2018 Solutions to Sleep Screen
2018 Solutions to Sleep Screen2018 Solutions to Sleep Screen
2018 Solutions to Sleep Screen
 
2017 Thesis Check List Doc
2017 Thesis Check List Doc2017 Thesis Check List Doc
2017 Thesis Check List Doc
 
2017 Terms in GIS Town Planning
2017 Terms in GIS Town Planning2017 Terms in GIS Town Planning
2017 Terms in GIS Town Planning
 
2017 Pictorial Differences GIS & RS
2017 Pictorial Differences GIS & RS2017 Pictorial Differences GIS & RS
2017 Pictorial Differences GIS & RS
 
2017 Response Letter to a Journal
2017 Response Letter to a Journal2017 Response Letter to a Journal
2017 Response Letter to a Journal
 
2017 How to write Author Biography for Journal
2017 How to write Author Biography for Journal2017 How to write Author Biography for Journal
2017 How to write Author Biography for Journal
 
2017 Information about NUST Engineering
2017 Information about NUST Engineering2017 Information about NUST Engineering
2017 Information about NUST Engineering
 
2017 Glossary Of Cartographic Terms
2017 Glossary Of Cartographic Terms2017 Glossary Of Cartographic Terms
2017 Glossary Of Cartographic Terms
 
2017 Types Of Orbits Brief Explanation
2017 Types Of Orbits Brief Explanation2017 Types Of Orbits Brief Explanation
2017 Types Of Orbits Brief Explanation
 
2017 IST Undergraduates Admission Guide for Fall
2017 IST Undergraduates Admission Guide for Fall2017 IST Undergraduates Admission Guide for Fall
2017 IST Undergraduates Admission Guide for Fall
 
2017 Editable Thesis Checklist PDF
2017 Editable Thesis Checklist PDF2017 Editable Thesis Checklist PDF
2017 Editable Thesis Checklist PDF
 
2017 Basics of GIS
2017 Basics of GIS2017 Basics of GIS
2017 Basics of GIS
 
2016 Tenses in Research Paper
2016 Tenses in Research Paper2016 Tenses in Research Paper
2016 Tenses in Research Paper
 
Bio Chemistry MBBS Part 2 UHS Paper-2016
Bio Chemistry MBBS Part 2 UHS Paper-2016Bio Chemistry MBBS Part 2 UHS Paper-2016
Bio Chemistry MBBS Part 2 UHS Paper-2016
 
Editable CD Cover Template_2016
Editable CD Cover Template_2016Editable CD Cover Template_2016
Editable CD Cover Template_2016
 
GO SMS Backup, Restore, and Decrypt
GO SMS Backup, Restore, and Decrypt GO SMS Backup, Restore, and Decrypt
GO SMS Backup, Restore, and Decrypt
 
Response Letter to a Journal_2017
Response Letter to a Journal_2017Response Letter to a Journal_2017
Response Letter to a Journal_2017
 
Root-Unroot Huawei P7 using Root Genius_2016
Root-Unroot Huawei P7 using Root Genius_2016Root-Unroot Huawei P7 using Root Genius_2016
Root-Unroot Huawei P7 using Root Genius_2016
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

02 atiqa ijaz khan 01

  • 1. Atiqa Ijaz Khan (Geomatics: Session 2013-2015) Assingment_01 Q .1: Write the output of the following statements: (10 marks) 1) _abc = 13Thursday, February 27, 2014 2) a=7;b=9;c=89; c=a+b+c Institute of Geology, University of the Punjab Thursday, February 27, 2014
  • 2. Atiqa Ijaz Khan (Geomatics: Session 2013-2015) Assingment_01 3) x=9;y=6; mod(x,y) 4) s=9; t=t+s+T 5) g='e';f='u';g+f 6) h='tyu'; whos(h); Institute of Geology, University of the Punjab Thursday, February 27, 2014
  • 3. Atiqa Ijaz Khan (Geomatics: Session 2013-2015) Assingment_01 7) t='78';whos('t'); 8) 4 * 2 – 9/3 9) sin=45; sin(3.4) 10) intmax('uint32') Institute of Geology, University of the Punjab Thursday, February 27, 2014
  • 4. Atiqa Ijaz Khan (Geomatics: Session 2013-2015) Assingment_01 Q .2: Execute the following pairs of commands and illustrate the output. If the output is different, describe why it is different? (10 marks) 1) log(10) and log10(10) “log(10)” is by base 2, while “log10(10)” is by base 10. 2) cos(30) and cosd(30) Institute of Geology, University of the Punjab Thursday, February 27, 2014
  • 5. Atiqa Ijaz Khan (Geomatics: Session 2013-2015) Assingment_01 Cosine is in Radians, while ‘cosd’ is in degrees. 3) who and whos ‘who’ give information only about variable, while ‘whos’ gives detail information. 4) 12378 and 123/78 In case of (12378), 123 is divided into 78 or 78 is divided by 123. 5) 6==9 and 6~=9 Institute of Geology, University of the Punjab Thursday, February 27, 2014
  • 6. Atiqa Ijaz Khan (Geomatics: Session 2013-2015) Assingment_01 6 is not equal to 9, so ans is 0, means False. While, 6 is less than 9 is a true. 6) rem(10,-6) and mod(10,-6) ‘-ve mod’ deals with value that is larger multiple LESS than the dividend. In our case, 12 is larger multiple of -6 as: [-6 * 2 = - 12], less than -10, so as per division rule: [-10 – (-12) = 2]. ‘mod’ gets the sign value of (y), so it is –ve. In our case, it is: -2. While, ‘rem’ gets the sign value of (x), so it is +ve. REF. http://mathforum.org/library/drmath/view/52343.html 7) double(10/4) and single (10/4) Institute of Geology, University of the Punjab Thursday, February 27, 2014
  • 7. Atiqa Ijaz Khan (Geomatics: Session 2013-2015) Assingment_01 8) double (13/7) and int8(13/7) 9) int8(85698) and int32(85698) Institute of Geology, University of the Punjab Thursday, February 27, 2014
  • 8. Atiqa Ijaz Khan (Geomatics: Session 2013-2015) Assingment_01 As ‘int8’ limits is upto 127, so in case of ‘int8(85698)’, it stops at its own maximum value. 10) isnumeric('89') and ischar('89') (‘89’) is char type not of numeric, as it is with quotes. Q. 3. Evaluate the following mathematical expressions: Institute of Geology, University of the Punjab (5 marks) Thursday, February 27, 2014
  • 9. Atiqa Ijaz Khan (Geomatics: Session 2013-2015) Assingment_01 Institute of Geology, University of the Punjab Thursday, February 27, 2014