Professional Documents
Culture Documents
Ministry of Education
ﻡمﻳﯾﻠﻌﺗﻟﺍا ﺓةﺭرﺍاﺯزﻭو
Jazan University
College of Computer Science & Information Technology
TYPE
-‐
Aﺔــﻌـﻣﺎــﺟ
ﻥنﺍاﺯزﺎـــــﺟ
ﺔﻳﯾﻠﻛ ﻡمﻭوﻠﻋﻭو ﻰﻟﻵﺍا ﺏبﺳﺎﺣﻟﺍاﺔﻳﯾﻧﻘﺗ ﺕتﺎﻣﻭوﻠﻌﻣﻟﺍا
SECTION – A ( 4 x ½ = 2 Marks)
Answer ALL questions. Each question carries HALF mark
So, y =…..
a) 2.5 b) 25 c) 0
SECTION – B (4 x 1 = 4 Marks)
Answer any FOUR questions. Each question carries ONE mark
1. What is a programming language?
…………………………………………………………………………………………………………....
2. Write a Java statement to convert the below variable from double to int.
double
x=3.2;
CSC-011/Exam1
…………………………………………………………………………………………………………....
3. Define the term Syntax Error and give an example.
…………………………………………………………………………………………………………....
5. Write a correct initialization of a String type variable named MyName, and its value is Your name.
……………………………………………………………………………………………………………
SECTION - C (1 x 4 = 4 Marks)
Answer any ONE of the questions. Each question carries ONE marks
Q1: Complete the 4 missing parts in the following piece of code:
GOOD LUCK
CSC-011/Exam1