1. Kiểu nguyên

Kiểu

Dung lượng Phạm vi giá trị

Ghi chú

Byte 1 Byte Từ: 0 → 255  
Integer 2 Byte Từ: -215→ 215-1  
Word 2 Byte Từ: 0 → 216-1  
Longword 4 Byte Từ: 0 → 232-1  
Longint 4 Byte Từ: -231 → 231-1  
In64 8 Byte Từ -263 → 263-1 Free Pascal

(Không dùng cho biến vòng lặp)

qword 8 Byte Từ: 0 → 264-1

2. Kiểu thực

Kiểu

Dung lượng

Phạm vi giá trị

Real 6 Byte 0 hoặc có giá trị tuyệt đối nằm trong phạm vi từ 10-38 đến 1038.
Extended 10 Byte 0 hoặc có giá trị tuyệt đối nằm trong phạm vi từ 10-4932 đến 104932.

3. Kiểu kí tự (Gồm các kí tự trong bộ mã Ascii)

Kiểu Dung lượng Phạm vi giá trị
Char 1 Byte 256 kí tự trong bộ mã Ascii.

Ví dụ: Kí tự ’A’ có mã ASCII là 65; kí tự ’B’ có nã ASCII là 66….; Kí tự ’a’ có mã ASCII là 97

(Giữa kí tự in hoa và kí tự thường cách nhau 32 kí tự; Kí tự trống có mã ASCII là 32)

* Các hàm trên kiểu ký tự

UPCASE(ch): Trả về ký tự in hoa tương ứng với ký tự ch. Ví dụ: UPCASE(‘a’) = ‘A’.

ORD(ch): Trả về số thứ tự trong bảng mã ASCII của ký tự ch. Ví dụ ORD(‘A’)=65.

CHR(n): Trả về ký tự tương ứng trong bảng mã ASCII có số thứ tự là n. Ví dụ: CHR(65)=’A’.

PRED(ch): cho ký tự đứng trước ký tự ch. Ví dụ: PRED(‘B’)=’A’.

SUCC(ch): cho ký tự đứng sau ký tự ch. Ví dụ: SUCC(‘A’)=’B’.

4. Kiểu lôgic

Kiểu

Dung lượng

Phạm vi giá trị

Boolean 1 Byte True hoặc False.

5. Một số ví dụ về khai báo biến

  • Khai báo 4 biến 2 biến thực, 2 biến nguyên:

Var x,y:Real;a,b:Integer; Khai báo trên chiếm trong bộ nhớ là: 6+6+2+2=16 (byte)

  • Khai báo 1 biến chỉ nhận các giá trị là các chữ cái: Var kt:Char;
  • Khai báo 1 chỉ nhận 2 giá trị là True/False: Var ok:Boolean;
  • Trong khai báo biến sau, khai báo nào là sai?
A. Var delta:Read;

D. Var i:byte;

  B. Var kt:Bolean;

E. Var ch:Char;

C. Var x1,2x:real;

F. Var n:Integer;

  • Biến n có thể nhận giá trị nguyên trong phạm vi từ (-2000; 3000). Hãy chọn cách khai báo đúng và chọn ra cách khai báo hiệu quả nhất?
A. Var n:Byte;

D. Var n:Word;

  B. Var n:Boolean;

E. Var n:Integer;

C. Var n:Real;

F. Var n:-2000..3000;

>> Còn nữa…

 

 

 

67 BÌNH LUẬN

  1. ลูกค้าบางส่วนที่เลือกใช้บริการกับเรา

    เรามุ่งนำเสนอการบริการให้กับกลุ่มลูกค้าที่หลากหลาย เริ่มจากกลุ่มลูกค้าสตาร์ทอัพขนาดเล็กไปจนถึงธุรกิจขนาดใหญ่ หัวใจสำคัญของเราคือการนำผลประโยชน์ในด้านเชิงพาณิชย์มาสู่ธุรกิจของคุณ โดยการดำเนินผ่านเว็บไซต์ที่สวยงามกับฟังชั่นที่เพรียบพร้อม

    It looks like you have been misusing this characteristic by going also fast.

    You’ve been quickly blocked from using it.

    แอดมินดูแลเพจ เว็บไซต์
    และร้านค้าออนไลน์

    เยส เว็บ ดีไซน์ สตูดิโอ เป็นบริษัทที่รับออกแบบเว็บไซต์ ที่เชี่ยวชาญในการออกแบบเว็บไซต์และพัฒนาเว็บไซต์ให้กับลูกค้าที่ขอนแก่น
    เราคือบริษัททำเว็บไซต์หนึ่งเดียวในขอนแก่น ที่มีการออกแบบที่โดดเด่นไม่เหมือนใคร

    ด้วยประสบการณ์อย่างยาวนานในด้านการสร้างเว็บไซต์และพัฒนาเว็บไซต์ของเราเว็บไซต์ที่ตอบโจทย์และมีประสิทธิภาพในการใช้งาน

    You might be utilizing a browser that won’t supported by
    Fb, so we have redirected you to definitely a simpler Model to provide you with the very best encounter.

    คุมงบได้เองมีผู้ช่วยดูแลจนจบงานตอบเร็วแน่นอนการันตีคุณภาพงาน

    กลยุทธ์เพื่อสร้างความได้เปรียบในตลาด

    บริการทำการตลาดออนไลน์ เพิ่มยอดขายสินค้า โดยทีมงานมืออาชีพ

    เยส เว็บ ดีไซน์ สตูดิโอ บริษัทรับออกแบบเว็บไซต์ขอนแก่น รับทำเว็บขอนแก่น

    สิ่งที่จะได้รับเมื่อใช้บริการกับเรา

    บริการออกแบบเว็บไซต์ด้วยดีไซน์ชั้นนำของจังหวัดขอนแก่น

    ในฐานะการเป็นผู้นำทางด้านออกแบบ เราตั้งใจและหาวิธีทำให้ธุรกิจของคุณเป็นที่รู้จักกับลูกค้าและตรงต่อความต้องการ ต่อยอดธุรกิจ ขยายช่องทางการขาย และสร้างการรับรู้บนโลกออนไลน์

    It appears like you were being misusing this attribute by heading far too speedy.
    You’ve been temporarily blocked from using it.

    พวกเราจะสร้างธุรกิจของคุณที่ขอนแก่น ด้วยเว็บไซต์ที่มีคุณภาพสูงและอัตราการเข้าถึงที่มีประสิทธิภาพ

    เราใส่ใจคุณตั้งแต่ขั้นตอนแรกจนถึงขั้นตอนสุดท้าย เพื่อตอบสนองความต้องการของลูกค้าอย่างมากที่สุด

  2. Awesome issues here. I’m very satisfied to see your article.
    Thank you a lot and I’m having a look forward to touch you.
    Will you kindly drop me a mail?

  3. Definitely believe that which you said. Your favorite justification seemed to be on the internet the easiest thing to
    be aware of. I say to you, I certainly get irked while
    people consider worries that they just don’t know about.
    You managed to hit the nail upon the top and defined out the whole thing without having side
    effect , people could take a signal. Will likely be back to
    get more. Thanks

  4. Thanks for ones marvelous posting! I definitely enjoyed reading it, you can be a great author.I will make certain to
    bookmark your blog and will come back in the future.
    I want to encourage yourself to continue your great writing, have a nice weekend!

  5. Heya this is kinda of off topic but I was wondering if blogs use WYSIWYG
    editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding expertise so I wanted to
    get guidance from someone with experience. Any help would be
    enormously appreciated!

  6. Magnificent beat ! I wish to apprentice while you amend your
    website, how can i subscribe for a blog website? The account aided me a acceptable deal.
    I had been a little bit acquainted of this your broadcast provided bright clear idea

  7. Pretty nice post. I just stumbled upon your weblog and wished to say that I’ve truly enjoyed surfing around your blog posts.
    After all I’ll be subscribing to your feed and I hope you write again soon!

  8. It’s a shame you don’t have a donate button! I’d definitely
    donate to this fantastic blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account.
    I look forward to new updates and will share this site with my Facebook group.
    Talk soon!

  9. It’s really a nice and helpful piece of information. I
    am glad that you shared this useful information with us.
    Please stay us informed like this. Thank you for sharing.

  10. Hello there, You have done a great job. I will certainly digg it and personally suggest
    to my friends. I’m confident they will be benefited from this website.

  11. Hi there just wanted to give you a quick heads up. The words in your article seem to be
    running off the screen in Firefox. I’m not sure if this is a format issue or something to do with browser compatibility but I thought I’d post to
    let you know. The style and design look great though!
    Hope you get the issue fixed soon. Kudos

  12. First off I would like to say excellent blog! I had a quick question which I’d like to ask
    if you don’t mind. I was interested to know how you center yourself
    and clear your thoughts before writing. I’ve had
    a hard time clearing my mind in getting my ideas out. I do enjoy
    writing but it just seems like the first 10 to
    15 minutes are generally wasted just trying to figure out how to begin. Any recommendations or tips?
    Thank you!

  13. What’s Taking place i’m new to this, I stumbled upon this I
    have discovered It positively helpful and it has helped me out loads.
    I hope to contribute & aid different customers
    like its aided me. Great job.

  14. magnificent post, very informative. I wonder why the opposite experts of this sector don’t realize this.
    You must continue your writing. I’m sure, you have a great readers’ base already!

  15. May I simply say what a comfort to discover someone who genuinely knows what they are
    discussing on the web. You actually know how to bring a problem to light and make it important.
    More and more people should read this and understand this side of the story.
    I was surprised you are not more popular given that you most certainly possess the
    gift.

  16. Hello! I’ve been following your web site for a long time now and finally got the bravery to go ahead and
    give you a shout out from Dallas Texas! Just wanted to say
    keep up the fantastic job!

  17. fantastic publish, very informative. I’m wondering why the
    other specialists of this sector don’t notice this. You must proceed your writing.
    I’m sure, you have a huge readers’ base already!

  18. whoah this weblog is magnificent i really like studying your articles.
    Stay up the great work! You understand, lots of persons are looking around for
    this info, you can aid them greatly.

  19. I’m extremely impressed with your writing skills as well
    as with the layout on your weblog. Is this a paid theme or
    did you modify it yourself? Either way keep up the nice quality writing, it is rare to see a great blog like this one these days.

  20. Hello! Quick question that’s completely off topic. Do you know how to make your site mobile friendly?
    My blog looks weird when browsing from my apple iphone.
    I’m trying to find a theme or plugin that might be able to resolve this problem.
    If you have any suggestions, please share. Cheers!

  21. Hi there i am kavin, its my first occasion to commenting anyplace, when i read this
    post i thought i could also create comment due to this good paragraph.

  22. I love your blog.. very nice colors & theme. Did you
    make this website yourself or did you hire someone to do it for you?

    Plz respond as I’m looking to design my own blog and would like
    to find out where u got this from. thanks a lot

  23. Link exchange is nothing else except it is just placing the other person’s web site link on your page at proper place and other person will also do similar for you.

  24. Right here is the right website for everyone who wants
    to find out about this topic. You know a whole lot its almost tough to argue with you (not that I actually will need to…HaHa).
    You certainly put a brand new spin on a topic that’s been discussed for a long time.
    Excellent stuff, just great!

  25. It is the best time to make some plans for the future and it is
    time to be happy. I have read this post and if I could I
    desire to suggest you few interesting things or advice.
    Perhaps you could write next articles referring to this article.
    I want to read more things about it!

  26. I enjoy what you guys are usually up too. This type
    of clever work and reporting! Keep up the fantastic works guys I’ve added you guys to my blogroll.

  27. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment.
    Is there any way you can remove people from that service? Many thanks!

  28. Great blog! Do you have any tips and hints for aspiring writers?
    I’m hoping to start my own blog soon but I’m a little lost on everything.
    Would you propose starting with a free platform like WordPress or
    go for a paid option? There are so many options
    out there that I’m completely overwhelmed .. Any tips?
    Kudos!

  29. Hey there! This is my first visit to your blog! We are a group of volunteers and starting
    a new project in a community in the same niche. Your blog provided us beneficial information to work on. You have done a
    outstanding job!

  30. My partner and I stumbled over here by a different web address and thought I should check things out.
    I like what I see so now i am following you.
    Look forward to going over your web page yet again.

  31. Hiya very nice website!! Man .. Excellent .. Superb
    .. I’ll bookmark your blog and take the feeds also?
    I’m happy to seek out a lot of useful info here in the publish,
    we need develop more techniques on this regard, thanks for sharing.
    . . . . .

  32. You really make it seem so easy with your presentation but I find this matter to be really something which I think
    I would never understand. It seems too complicated and extremely broad for me.
    I am looking forward for your next post, I will try
    to get the hang of it!

  33. Today, while I was at work, my cousin stole my apple ipad and tested to see if it can survive a 40 foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and
    she has 83 views. I know this is entirely off topic
    but I had to share it with someone!

  34. Hello There. I found your weblog using msn. This is an extremely well written article.
    I’ll make sure to bookmark it and return to read more of your useful info.
    Thank you for the post. I will certainly comeback.

  35. I am now not certain where you are getting your information, however good topic.

    I must spend some time finding out much more or understanding more.
    Thank you for great information I used to be searching for this information for my mission.

  36. Hey would you mind sharing which blog platform you’re working with?
    I’m going to start my own blog in the near future but I’m
    having a difficult time choosing between BlogEngine/Wordpress/B2evolution and Drupal.

    The reason I ask is because your layout seems different then most blogs and I’m looking for something unique.
    P.S Apologies for being off-topic but I had to ask!

  37. Hey just wanted to give you a quick heads up. The words
    in your post seem to be running off the screen in Internet explorer.

    I’m not sure if this is a format issue or something to do with web browser compatibility but
    I thought I’d post to let you know. The style and design look great though!
    Hope you get the issue resolved soon. Kudos

  38. Howdy I am so thrilled I found your blog page, I really
    found you by accident, while I was looking on Bing for something else, Anyhow I am here now and would just like to say cheers for a marvelous post and a all round exciting blog (I also love the theme/design), I don’t have time to
    go through it all at the moment but I have book-marked it and also
    added your RSS feeds, so when I have time I will be back to read
    much more, Please do keep up the awesome jo.

  39. It’s really very complicated in this full of activity life to listen news on Television, thus I just use the web
    for that reason, and get the most up-to-date information.

  40. Howdy this is kinda of off topic but I was wondering if blogs use WYSIWYG editors
    or if you have to manually code with HTML. I’m starting a blog soon but have no coding skills
    so I wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

  41. Right here is the perfect blog for anyone who hopes to understand this topic.
    You know so much its almost tough to argue with you (not that I really will need to…HaHa).
    You certainly put a brand new spin on a subject that has been written about for many years.

    Excellent stuff, just great!

THOÁT KHỎI BÌNH LUẬN

Please enter your comment!
Please enter your name here