الإمتحان النظري للصف الثاني عشر العام

Slides:



Advertisements
Similar presentations
C++ Basics March 10th. A C++ program //if necessary include headers //#include void main() { //variable declaration //read values input from user //computation.
Advertisements

Math Ordinal Positions Grade 2 SOL 2.3 Created by; Kim Smith.
10 Little Gifts First one for you health Second for you luck.
Let’s repeat the ordinal numbers!
Equivalent Fractions next Using the Corn Bread © Math As A Second Language All Rights Reserved.
Type Title Here for Tic-Tac-Toe Type names of students in group here.
On the first day of winter, my true love gave to me: a___________ in a tree.
Chapter 2 Review Questions
Topic 9 – Introduction To Arrays. CISC105 – Topic 9 Introduction to Data Structures Thus far, we have seen “simple” data types. These refers to a single.
Click to edit Master title style Click to edit Master text styles Second level Third level Fourth level Fifth level 1 Arrays Chapter 6.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Searching Arrays Searching.
Arrays and ArrayLists in Java L. Kedigh. Array Characteristics List of values. A list of values where every member is of the same type. Each member in.
Liang, Introduction to Java Programming, Tenth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 8 Multidimensional Arrays.
Array Cs212: DataStructures Lab 2. Array Group of contiguous memory locations Each memory location has same name Each memory location has same type a.
CHAPTER 7 arrays I NTRODUCTION T O C OMPUTER P ROGRAMMING (CSC425)
10 Little Gifts The First for your health The Second for your luck.
Greater than & Less than Fractions Standard 2.1: Numbers, Number Systems, and Number Relationships C. Represent equivalent forms of the same number through.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
CSI 3125, Preliminaries, page 1 Data Type, Variables.
CHAPTER 6 ARRAYS IN C++ 2 nd Semester King Saud University College of Applied studies and Community Service CSC 1101 By: Fatimah Alakeel Edited.
Lec 13 Oct 21, 02. Array Initialization in the declaration statement ► int temp[5] = {98, 87, 92, 79,85}; ► char codes[6] = { ‘s’, ’a’, ‘m’, ‘p’, ‘l’,
Computer Programming with Java Chapter 2 Primitive Types, Assignment, and Expressions.
Chapter 5: ARRAYS ARRAYS. Why Do We Need Arrays? Java Programming: From Problem Analysis to Program Design, 4e 2  We want to write a Java program that.
Computer Programming Arrays 1. Question #1 2 Question Choose the correct answer..
Fractions Part Two. How many halves are in a whole? 2 1/2.
Introduction to programming in java Lecture 21 Arrays – Part 1.
C Programming Lecture 15 Two Dimensional Arrays. Two-Dimensional Arrays b The C language allows arrays of any type, including arrays of arrays. With two.
C LANGUAGE UNIT 3. UNIT 3 Arrays Arrays – The concept of array – Defining arrays – Initializing arrays.
Arrays in C. What is Array? The variables we have used so far can store a single value. Array is a new type of variable capable of storing many values.
A FIRST BOOK OF C++ CHAPTER 7 ARRAYS. OBJECTIVES In this chapter, you will learn about: One-Dimensional Arrays Array Initialization Arrays as Arguments.
Midterm preview.
ARRAYS (Extra slides) Arrays are objects that help us organize large amounts of information.
Some Assignments  Write a program which prints the following information about at least 5 persons: NAME MAIL-ID EMPLOYEE-CODE PHONE Eg. Umesh
INC 161 , CPE 100 Computer Programming
Chapter 6 Arrays in C++ 2nd Semester King Saud University
Variables Mr. Crone.
Two-Dimensional Arrays
Arrays An array is a grouping of elements of the same type that share a common base name Can have any number of elements in the array Individual elements.
C++ Programming: CS150 For.
Fifth Lecture Arrays and Lists
C++ Arrays.
Command Line Arguments
ㅎㅎ Fourth step for Learning C++ Programming Two functions
Computers & Programming Languages
Peer Instruction 6 Java Arrays.
2D Arrays October 12, 2007 ComS 207: Programming I (in Java)
Java Array ISYS 350.
Arrays November 8, 2017.
Student #7 starts with Locker 7 and changes every seventh door
Lecture 12 Oct 16, 02.
160 Exam 2 Prep.
Introduction To Programming Information Technology , 1’st Semester
Multidimensional Arrays
Greater than & Less than Fractions
Arrays An array is a grouping of elements of the same type that share a common base name Can have any number of elements in the array Individual elements.
CISC181 Introduction to Computer Science Dr
Chapter 10: Formal Codes of Ethics
Ms. Lindsey’s Kindergarten Class 11/1/16
Take out a piece of paper and PEN.
Which fraction does correspond to the coloured part?
Take out a piece of paper and PEN.
Arrays An array is a grouping of elements of the same type that share a common base name Can have any number of elements in the array Individual elements.
Peer Instruction 4 Control Loops.
Comparing Python and Java
What are fair shares?.
Arrays Imran Rashid CTO at ManiWeber Technologies.
Programming Arrays.
CSCE 206 Lab Structured Programming in C
Arrays Introduction to Arrays Reading for this Lecture:
ㅎㅎ Fourth step for Learning C++ Programming Call by value
Presentation transcript:

الإمتحان النظري للصف الثاني عشر العام دروس الإختبار : الدرس الأول الدرس الثاني أرجو مراجعة الأمثلة كلها من الكتاب + حلول التدريبات في البوربوينت. و خاصة الصفحات 92-93-94-95-99-100. الاختبار سيحوي استخراج و تصحيح الأخطاء. كتابة برنامج .... الإسئلة العملية التي لم يتم إرسال إجاباتها ستحسب كدرجة عملي الإمتحان لن يخرج عن أمثلة و أسئلة الكتاب الدرس الأول و الثاني البوربوينت يحوي حلول لبعض تمرينات الدرس الأول و الثاني

Page 93 Answer Questions 1.Declare an array of four integer elements with initial values 2.Declare an array of seven character elements with initial values 3.What are the differences between these declarations? int items[]=new int [5]; int items[]={10,20,30,40,50}; int x[]={4,5,7,10}; char x[]={a,f,c,d,b,e,g}; All values equal 0 All indexes have value

Page 94 Answer Questions 1.Consider the following declaration: double salary[]=new double[10]; In this declaration ,identify the following: a. The array name. b. The array size. c. The data type of each array component d. The range of values of the array index salary 10 double 0-9

Page 94 Answer Questions 2.Identify error(s),if any , in the following array declarations int [] list=new int [10]; int [] numlist=new int[0..9]; scores [] double = new double[50]; 3.Determine whether the following array declerations are valid.if a decleration is invalid give a correct decleration int [75] list; int size; double[] list=new double[5]; int[] test=new int [-10]; double[] sales=new double [40.5];  [10] double[] scores=new double[50]; int list[]=new int [75]; int size[]=new int [5];  [10] [41]

Practical Activity 4.Write Java statements that do the following : Page 95 Practical Activity 4.Write Java statements that do the following : a. Declare an array alpha of 15 elements of type int b. Output the value of the tenth element of the array alpha c. Set the value of the fifth element of the array alpha to 35 d. Set the value of the eighth element of the array alpha to -57 e. Set the value of the ninth element of the array alpha to sum of the sixth and thirteenth elements of the array alpha f. Set the value of the fourth element of the array alpha to three times the value of the eighth element

ANSWERS int alpha[]=new int [15]; b. System.out.println(alpha[9]); c. alpha [4]=35; d. alpha [7]=-57; e. alpha [8]=alpha [5]+alpha [12]; f. alpha [3]=3*alpha [7];

int[]marks=new int[5]; for(i=0;i<=7;i++) { System.out.println([i]); PAGE 99 Answer Question Find errors : int[]marks=new int[5]; for(i=0;i<=7;i++) { System.out.println([i]); }