Home works and Assignments Online

Home » Class XI (S-II) » Informatics Practices XI

Informatics Practices XI

Shift-II

Date of submission: 2 Jan., 2015

 

1. Excessive comments add time to the execution of your program. (True/False). Justify your answer.

2. Differentiate between compile time and run time errors.

3. Which error is harder to locate and why?

4. Explain the following terms:

a) Exception handling b) Syntax c) Portability

d) Prettyprinting e) Syntax error

5. The code given below will give an error on execution if the value entered in t2 is 0.

Identify the type of the error and modify the code to handle such an error.

int a,b,c;

a= Intger.parseInt(t1.getText());

b= Intger.parseInt(t2.getText());

c= a / b;

6. Explain in detail about various steps involved in the development of a new application. Also represent the steps using a diagram.

7. What is the main difference between a while loop and a do while loop?

8. What will be the content of jTextField1 after executing the following code:

int Num = 6;

Num = Num + 1;

if ( Num > 5)

jTextField1.setText(Integer.toString(Num));

else

jTextField1.setText(Integer.toString(Num+5));

9. Write the syntaxes of all MySQL statements you know.

10. Implement all the MySQL syntaxes you know in the following table. Write the query and ouputs.

Table:TEACHER

No.

Name

Age

Department

Join_date

Salary

Sex

1

Jugal

34

Computer

10/01/97

12000

M

2

Sharmila

31

History

24/03/98

20000

F

3

Sandeep

32

Maths

12/12/96

30000

M

4

Sangeeta

35

History

01/07/99

40000

F

5

Rakesh

42

Maths

05/09/97

25000

M

6

Shyam

50

History

37/06/98

30000

M

7

Shivam

44

Computer

25/02/97

21000

M

8

Shalakha

33

Maths

31/07/97

20000

F


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: