SlideShare a Scribd company logo
1 of 3
Download to read offline
1) Name four properties of an OpenFileDialog that we often set prior to using ShowDialog() to
open that screen
i) ValidateNames : Gets or sets a value indicating whether the dialog box accepts only valid
Win32 file names.(Inherited fromFileDialog.)
ii) RestoreDirectory : Gets or sets a value indicating whether the dialog box restores the directory
to the previously selected directory before closing
iii) CheckFileExists : Gets or sets a value indicating whether the dialog box displays a warning if
the user specifies a file name that does not exist.
iv) ShowReadOnly : Gets or sets a value indicating whether the dialog box contains a read-only
check box.
2) XML stands for ' Extensible Markup Language '.
3) HTML Stands for ' HyperText Markup Language '.
4) what would you set the filter to for an OpenFileDialog if you wanted the user to only be able
to select the text file
Answer) FileDialog.FilterIndex
FilterIndex property represents the index of the filter currently selected in the file dialog box
5)What two things do we put into an xml file?
Answer)
6) what is the name of the class we use if we want to output to a text file one line at a time
Answer) StreamReader class
ReadLine method of the StreamReader class. Each text line is stored into the string line and
displayed on the screen.
8) Program:
import java.io.*;
class Arithmetic Exception
{
public static void main(String args[])throws IOException
{
try
{
int a=1,b=0,c;
c=a/b;
}
catch(Arithmetic Exception ae)
{
System.out.println( ae );
}
}
}
Solution
1) Name four properties of an OpenFileDialog that we often set prior to using ShowDialog() to
open that screen
i) ValidateNames : Gets or sets a value indicating whether the dialog box accepts only valid
Win32 file names.(Inherited fromFileDialog.)
ii) RestoreDirectory : Gets or sets a value indicating whether the dialog box restores the directory
to the previously selected directory before closing
iii) CheckFileExists : Gets or sets a value indicating whether the dialog box displays a warning if
the user specifies a file name that does not exist.
iv) ShowReadOnly : Gets or sets a value indicating whether the dialog box contains a read-only
check box.
2) XML stands for ' Extensible Markup Language '.
3) HTML Stands for ' HyperText Markup Language '.
4) what would you set the filter to for an OpenFileDialog if you wanted the user to only be able
to select the text file
Answer) FileDialog.FilterIndex
FilterIndex property represents the index of the filter currently selected in the file dialog box
5)What two things do we put into an xml file?
Answer)
6) what is the name of the class we use if we want to output to a text file one line at a time
Answer) StreamReader class
ReadLine method of the StreamReader class. Each text line is stored into the string line and
displayed on the screen.
8) Program:
import java.io.*;
class Arithmetic Exception
{
public static void main(String args[])throws IOException
{
try
{
int a=1,b=0,c;
c=a/b;
}
catch(Arithmetic Exception ae)
{
System.out.println( ae );
}
}
}

More Related Content

Similar to 1) Name four properties of an OpenFileDialog that we often set prior.pdf

Take control. write a plugin. part II
Take control. write a plugin. part IITake control. write a plugin. part II
Take control. write a plugin. part IIBaruch Sadogursky
 
Chapter 10.1
Chapter 10.1Chapter 10.1
Chapter 10.1sotlsoc
 
C Language Question 1 4 points Listen Which of the fo.pdf
C Language   Question 1 4 points   Listen Which of the fo.pdfC Language   Question 1 4 points   Listen Which of the fo.pdf
C Language Question 1 4 points Listen Which of the fo.pdfjaipur2
 

Similar to 1) Name four properties of an OpenFileDialog that we often set prior.pdf (6)

12th computer-application-unit-8-study-material-english-medium
12th computer-application-unit-8-study-material-english-medium12th computer-application-unit-8-study-material-english-medium
12th computer-application-unit-8-study-material-english-medium
 
Take control. write a plugin. part II
Take control. write a plugin. part IITake control. write a plugin. part II
Take control. write a plugin. part II
 
Chapter 10.1
Chapter 10.1Chapter 10.1
Chapter 10.1
 
Unit5
Unit5Unit5
Unit5
 
using System.docx
using System.docxusing System.docx
using System.docx
 
C Language Question 1 4 points Listen Which of the fo.pdf
C Language   Question 1 4 points   Listen Which of the fo.pdfC Language   Question 1 4 points   Listen Which of the fo.pdf
C Language Question 1 4 points Listen Which of the fo.pdf
 

More from arasanmobiles

a) Here, H2PO4- Acts as acid and HPO42- as salt.In equation pKa of.pdf
a) Here, H2PO4- Acts as acid and HPO42- as salt.In equation pKa of.pdfa) Here, H2PO4- Acts as acid and HPO42- as salt.In equation pKa of.pdf
a) Here, H2PO4- Acts as acid and HPO42- as salt.In equation pKa of.pdfarasanmobiles
 
1. The evolution of transportation has generally led to changes in u.pdf
1. The evolution of transportation has generally led to changes in u.pdf1. The evolution of transportation has generally led to changes in u.pdf
1. The evolution of transportation has generally led to changes in u.pdfarasanmobiles
 
1) Transition state 2) Threshold energy 3) Catalysts or Intermed.pdf
1) Transition state 2) Threshold energy 3) Catalysts or Intermed.pdf1) Transition state 2) Threshold energy 3) Catalysts or Intermed.pdf
1) Transition state 2) Threshold energy 3) Catalysts or Intermed.pdfarasanmobiles
 
Main File (usestudentacc.cpp)#includeiostream #include .pdf
 Main File (usestudentacc.cpp)#includeiostream #include .pdf Main File (usestudentacc.cpp)#includeiostream #include .pdf
Main File (usestudentacc.cpp)#includeiostream #include .pdfarasanmobiles
 
Ecell = Eocell - (0.0592n)log (more dilute solnmore concd soln). .pdf
  Ecell = Eocell - (0.0592n)log (more dilute solnmore concd soln). .pdf  Ecell = Eocell - (0.0592n)log (more dilute solnmore concd soln). .pdf
Ecell = Eocell - (0.0592n)log (more dilute solnmore concd soln). .pdfarasanmobiles
 
DBA Company Income Statement For the period ended December 31,.pdf
    DBA Company   Income Statement   For the period ended December 31,.pdf    DBA Company   Income Statement   For the period ended December 31,.pdf
DBA Company Income Statement For the period ended December 31,.pdfarasanmobiles
 
Indicate whether the solute solid is generally so.pdf
                     Indicate whether the solute solid is generally so.pdf                     Indicate whether the solute solid is generally so.pdf
Indicate whether the solute solid is generally so.pdfarasanmobiles
 
in HCl [H+] concentration = 0.12M pH of HCl = -lo.pdf
                     in HCl [H+] concentration = 0.12M pH of HCl = -lo.pdf                     in HCl [H+] concentration = 0.12M pH of HCl = -lo.pdf
in HCl [H+] concentration = 0.12M pH of HCl = -lo.pdfarasanmobiles
 
Phenanthrene is a polycyclic aromatic hydrocarbon composed of three .pdf
Phenanthrene is a polycyclic aromatic hydrocarbon composed of three .pdfPhenanthrene is a polycyclic aromatic hydrocarbon composed of three .pdf
Phenanthrene is a polycyclic aromatic hydrocarbon composed of three .pdfarasanmobiles
 
B. When dissolved solute and undissolved solute e.pdf
                     B. When dissolved solute and undissolved solute e.pdf                     B. When dissolved solute and undissolved solute e.pdf
B. When dissolved solute and undissolved solute e.pdfarasanmobiles
 
Yes both men and women differ in their thinking, research has proved.pdf
Yes both men and women differ in their thinking, research has proved.pdfYes both men and women differ in their thinking, research has proved.pdf
Yes both men and women differ in their thinking, research has proved.pdfarasanmobiles
 
What is the probability that a five-card poker hand contains the a.pdf
What is the probability that a five-card poker hand contains the a.pdfWhat is the probability that a five-card poker hand contains the a.pdf
What is the probability that a five-card poker hand contains the a.pdfarasanmobiles
 
When using some Sounds and Audio Devices functions you see a message.pdf
When using some Sounds and Audio Devices functions you see a message.pdfWhen using some Sounds and Audio Devices functions you see a message.pdf
When using some Sounds and Audio Devices functions you see a message.pdfarasanmobiles
 
We can better understand it with the help of examples.Red flower -.pdf
We can better understand it with the help of examples.Red flower -.pdfWe can better understand it with the help of examples.Red flower -.pdf
We can better understand it with the help of examples.Red flower -.pdfarasanmobiles
 
The racial and ethnic makeup of the American people is in flux. New .pdf
The racial and ethnic makeup of the American people is in flux. New .pdfThe racial and ethnic makeup of the American people is in flux. New .pdf
The racial and ethnic makeup of the American people is in flux. New .pdfarasanmobiles
 
The ion responsible is HCO3-.HCO3- is the conjugate base of the we.pdf
The ion responsible is HCO3-.HCO3- is the conjugate base of the we.pdfThe ion responsible is HCO3-.HCO3- is the conjugate base of the we.pdf
The ion responsible is HCO3-.HCO3- is the conjugate base of the we.pdfarasanmobiles
 
The causal relationship in epidemiology is generally an observation .pdf
The causal relationship in epidemiology is generally an observation .pdfThe causal relationship in epidemiology is generally an observation .pdf
The causal relationship in epidemiology is generally an observation .pdfarasanmobiles
 
Since Lithium sulfate is an ionic compound and is soluble in water, .pdf
Since Lithium sulfate is an ionic compound and is soluble in water, .pdfSince Lithium sulfate is an ionic compound and is soluble in water, .pdf
Since Lithium sulfate is an ionic compound and is soluble in water, .pdfarasanmobiles
 
operating system ubuntu,Linux,Macpublic class SuperMarket {   .pdf
operating system ubuntu,Linux,Macpublic class SuperMarket {   .pdfoperating system ubuntu,Linux,Macpublic class SuperMarket {   .pdf
operating system ubuntu,Linux,Macpublic class SuperMarket {   .pdfarasanmobiles
 
Microbiology is the study of microscopic organisms such as virus, ba.pdf
Microbiology is the study of microscopic organisms such as virus, ba.pdfMicrobiology is the study of microscopic organisms such as virus, ba.pdf
Microbiology is the study of microscopic organisms such as virus, ba.pdfarasanmobiles
 

More from arasanmobiles (20)

a) Here, H2PO4- Acts as acid and HPO42- as salt.In equation pKa of.pdf
a) Here, H2PO4- Acts as acid and HPO42- as salt.In equation pKa of.pdfa) Here, H2PO4- Acts as acid and HPO42- as salt.In equation pKa of.pdf
a) Here, H2PO4- Acts as acid and HPO42- as salt.In equation pKa of.pdf
 
1. The evolution of transportation has generally led to changes in u.pdf
1. The evolution of transportation has generally led to changes in u.pdf1. The evolution of transportation has generally led to changes in u.pdf
1. The evolution of transportation has generally led to changes in u.pdf
 
1) Transition state 2) Threshold energy 3) Catalysts or Intermed.pdf
1) Transition state 2) Threshold energy 3) Catalysts or Intermed.pdf1) Transition state 2) Threshold energy 3) Catalysts or Intermed.pdf
1) Transition state 2) Threshold energy 3) Catalysts or Intermed.pdf
 
Main File (usestudentacc.cpp)#includeiostream #include .pdf
 Main File (usestudentacc.cpp)#includeiostream #include .pdf Main File (usestudentacc.cpp)#includeiostream #include .pdf
Main File (usestudentacc.cpp)#includeiostream #include .pdf
 
Ecell = Eocell - (0.0592n)log (more dilute solnmore concd soln). .pdf
  Ecell = Eocell - (0.0592n)log (more dilute solnmore concd soln). .pdf  Ecell = Eocell - (0.0592n)log (more dilute solnmore concd soln). .pdf
Ecell = Eocell - (0.0592n)log (more dilute solnmore concd soln). .pdf
 
DBA Company Income Statement For the period ended December 31,.pdf
    DBA Company   Income Statement   For the period ended December 31,.pdf    DBA Company   Income Statement   For the period ended December 31,.pdf
DBA Company Income Statement For the period ended December 31,.pdf
 
Indicate whether the solute solid is generally so.pdf
                     Indicate whether the solute solid is generally so.pdf                     Indicate whether the solute solid is generally so.pdf
Indicate whether the solute solid is generally so.pdf
 
in HCl [H+] concentration = 0.12M pH of HCl = -lo.pdf
                     in HCl [H+] concentration = 0.12M pH of HCl = -lo.pdf                     in HCl [H+] concentration = 0.12M pH of HCl = -lo.pdf
in HCl [H+] concentration = 0.12M pH of HCl = -lo.pdf
 
Phenanthrene is a polycyclic aromatic hydrocarbon composed of three .pdf
Phenanthrene is a polycyclic aromatic hydrocarbon composed of three .pdfPhenanthrene is a polycyclic aromatic hydrocarbon composed of three .pdf
Phenanthrene is a polycyclic aromatic hydrocarbon composed of three .pdf
 
B. When dissolved solute and undissolved solute e.pdf
                     B. When dissolved solute and undissolved solute e.pdf                     B. When dissolved solute and undissolved solute e.pdf
B. When dissolved solute and undissolved solute e.pdf
 
Yes both men and women differ in their thinking, research has proved.pdf
Yes both men and women differ in their thinking, research has proved.pdfYes both men and women differ in their thinking, research has proved.pdf
Yes both men and women differ in their thinking, research has proved.pdf
 
What is the probability that a five-card poker hand contains the a.pdf
What is the probability that a five-card poker hand contains the a.pdfWhat is the probability that a five-card poker hand contains the a.pdf
What is the probability that a five-card poker hand contains the a.pdf
 
When using some Sounds and Audio Devices functions you see a message.pdf
When using some Sounds and Audio Devices functions you see a message.pdfWhen using some Sounds and Audio Devices functions you see a message.pdf
When using some Sounds and Audio Devices functions you see a message.pdf
 
We can better understand it with the help of examples.Red flower -.pdf
We can better understand it with the help of examples.Red flower -.pdfWe can better understand it with the help of examples.Red flower -.pdf
We can better understand it with the help of examples.Red flower -.pdf
 
The racial and ethnic makeup of the American people is in flux. New .pdf
The racial and ethnic makeup of the American people is in flux. New .pdfThe racial and ethnic makeup of the American people is in flux. New .pdf
The racial and ethnic makeup of the American people is in flux. New .pdf
 
The ion responsible is HCO3-.HCO3- is the conjugate base of the we.pdf
The ion responsible is HCO3-.HCO3- is the conjugate base of the we.pdfThe ion responsible is HCO3-.HCO3- is the conjugate base of the we.pdf
The ion responsible is HCO3-.HCO3- is the conjugate base of the we.pdf
 
The causal relationship in epidemiology is generally an observation .pdf
The causal relationship in epidemiology is generally an observation .pdfThe causal relationship in epidemiology is generally an observation .pdf
The causal relationship in epidemiology is generally an observation .pdf
 
Since Lithium sulfate is an ionic compound and is soluble in water, .pdf
Since Lithium sulfate is an ionic compound and is soluble in water, .pdfSince Lithium sulfate is an ionic compound and is soluble in water, .pdf
Since Lithium sulfate is an ionic compound and is soluble in water, .pdf
 
operating system ubuntu,Linux,Macpublic class SuperMarket {   .pdf
operating system ubuntu,Linux,Macpublic class SuperMarket {   .pdfoperating system ubuntu,Linux,Macpublic class SuperMarket {   .pdf
operating system ubuntu,Linux,Macpublic class SuperMarket {   .pdf
 
Microbiology is the study of microscopic organisms such as virus, ba.pdf
Microbiology is the study of microscopic organisms such as virus, ba.pdfMicrobiology is the study of microscopic organisms such as virus, ba.pdf
Microbiology is the study of microscopic organisms such as virus, ba.pdf
 

Recently uploaded

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_.pdfSherif Taha
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
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.pptxPooja Bhuva
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactisticshameyhk98
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
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...Pooja Bhuva
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
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.pptxheathfieldcps1
 

Recently uploaded (20)

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
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
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
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
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...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 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
 

1) Name four properties of an OpenFileDialog that we often set prior.pdf

  • 1. 1) Name four properties of an OpenFileDialog that we often set prior to using ShowDialog() to open that screen i) ValidateNames : Gets or sets a value indicating whether the dialog box accepts only valid Win32 file names.(Inherited fromFileDialog.) ii) RestoreDirectory : Gets or sets a value indicating whether the dialog box restores the directory to the previously selected directory before closing iii) CheckFileExists : Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist. iv) ShowReadOnly : Gets or sets a value indicating whether the dialog box contains a read-only check box. 2) XML stands for ' Extensible Markup Language '. 3) HTML Stands for ' HyperText Markup Language '. 4) what would you set the filter to for an OpenFileDialog if you wanted the user to only be able to select the text file Answer) FileDialog.FilterIndex FilterIndex property represents the index of the filter currently selected in the file dialog box 5)What two things do we put into an xml file? Answer) 6) what is the name of the class we use if we want to output to a text file one line at a time Answer) StreamReader class ReadLine method of the StreamReader class. Each text line is stored into the string line and displayed on the screen. 8) Program: import java.io.*; class Arithmetic Exception { public static void main(String args[])throws IOException { try { int a=1,b=0,c; c=a/b; } catch(Arithmetic Exception ae) {
  • 2. System.out.println( ae ); } } } Solution 1) Name four properties of an OpenFileDialog that we often set prior to using ShowDialog() to open that screen i) ValidateNames : Gets or sets a value indicating whether the dialog box accepts only valid Win32 file names.(Inherited fromFileDialog.) ii) RestoreDirectory : Gets or sets a value indicating whether the dialog box restores the directory to the previously selected directory before closing iii) CheckFileExists : Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist. iv) ShowReadOnly : Gets or sets a value indicating whether the dialog box contains a read-only check box. 2) XML stands for ' Extensible Markup Language '. 3) HTML Stands for ' HyperText Markup Language '. 4) what would you set the filter to for an OpenFileDialog if you wanted the user to only be able to select the text file Answer) FileDialog.FilterIndex FilterIndex property represents the index of the filter currently selected in the file dialog box 5)What two things do we put into an xml file? Answer) 6) what is the name of the class we use if we want to output to a text file one line at a time Answer) StreamReader class ReadLine method of the StreamReader class. Each text line is stored into the string line and displayed on the screen. 8) Program: import java.io.*; class Arithmetic Exception { public static void main(String args[])throws IOException { try
  • 3. { int a=1,b=0,c; c=a/b; } catch(Arithmetic Exception ae) { System.out.println( ae ); } } }