Độ Dài Tối đa Của Xâu Kí Tự Trong Pascal Là? | Cungthi.online

  • Bạn cần trợ giúp không?
  • [email protected]
  • Đăng nhập
  • Đăng ký
  • Liên hệ
logo cungthi.online Đăng nhập
  • Trang chủ
  • Độ dài tối đa của xâu kí tự trong Pascal là?
Câu 1: Độ dài tối đa của xâu kí tự trong Pascal là? A. 255 B. 256 C. 0 D. Không giới hạn

Những câu hỏi này đến từ bài kiểm tra này. Bạn có muốn thực hiện bài kiểm tra thử không?

Bài tập trắc nghiệm 45 phút Bài 12: Kiểu xâu - CHƯƠNG IV: KIỂU DỮ LIỆU CÓ CẤU TRÚC - Tin học 11 - Đề số 5
  • 45 phút
  • 25 câu hỏi
Làm bài kiểm tra

Một số câu hỏi từ cùng một bài kiểm tra

  • Cho biết kết quả của biểu thức sau: LENGTH(’THPT TAM NGAI’);
  • Trong ngôn ngữ lập trình pascal, để xóa đi ký tự thứ 6 của xâu ký tự S ta viết:
  • Độ dài tối đa của xâu kí tự trong Pascal là?
  • Trong ngôn ngữ lập trình pascal, để xóa đi ký tự thứ 2 của xâu ký tự S ta viết:
  • Trong ngôn ngữ lập trình pascal, khai báo nào trong các khai báo sau là sai khi khai báo xâu ký tự?
  • Trong ngôn ngữ lập trình pascal, sau khi chương trình thực hiện xong đoạn chương trình sau, giá trị của biến S là? S:= ’Ha Noi Mua La Do’; Delete(S,7,10);
  • Trong ngôn ngữ lập trình pascal, thủ tục chèn xâu s1 vào xâu s2 bắt đầu từ vị trí vt được viết:
  • Trong ngôn ngữ lập trình pascal, thủ tục Delete(a,b,c) thực hiện công việc gì trong các việc sau?
  • Cho biết kết quả của biểu thức sau: COPY (’TRUONG THPT TAM NGAI’,8,4)?
  • Đoạn chương trình sau in ra kết quả nào ? Program Welcome ; Var a : string[20]; Begin a := ‘tin hoc 11’; writeln(length(a)); End.
  • Trong ngôn ngữ lập trình Pascal, xâu ký tự là?
  • Trong ngôn ngữ lập trình pascal, hàm Length(S) cho kết quả là gì?
  • Cho xâu S1:= 'abdegbcdeg'; Em hãy cho biết sau khi thực hiện câu lệnh pos( 'deg-',S1); thì kết quả trả về là gì?
  • Trong ngôn ngữ lập trình pascal, sau khi chương trình thực hiện xong đoạn chương trình sau, giá trị của biến S là? S:= ’Ha Noi mua thu’; Delete(S,7,8);
  • Trong ngôn ngữ lập trình Pascal, đoạn chương trình sau thực hiện công việc gì ? X := length(S) ; For i := X downto 1 do If S[i] = ‘ ’ then Delete(S, i, 1) ;{ ‘ ’ là một dấu cách }
  • Cho biết kết quả của biểu thức sau: LENGTH(’CHUC BAN THANH CONG’);
  • Trong ngôn ngữ lập trình pascal, để in một xâu ký tự ra màn hình theo thứ tự ngược lại của các ký tự trong xâu S (VD: abcd thì in ra là dcba), đoạn chương trình nào sau đây thực hiện việc này?
  • Đoạn chương trình sau thực hiện việc gì? ('  ' là kí tự trắng) X:= length(S); For i:= X downto 1 do If S[i] = '  ' then Delete(S,i,1); 
  • Xâu S1:= ‘Mot chieu’; cú pháp truy xuất đến phần tử ‘i’ của xâu S1 là:
  • Cho biết kết quả của biểu thức sau: COPY (’TRUONG PHAM THAI BUONG’,8,4)?
  • Cho s = ‘123456789’ hàm Copy(s,2,3) cho giá trị là?
  • Hãy cho biết đoạn chương trình sau cho kết quả là gì? USES CRT; VAR S1, S2 : STRING; VT : BYTE; BEGIN CLRSCR; WRITE (‘NHAP VAO XAU S1: ); READLN (S1); WRITE(‘NHAP VAO XAU S2: ’); READLN(S2); WRITE(‘NHAP VI TRI CAN CHEN TRONG XAU S1 VAO XAU S2’); READLN(VT); INSERT(S1, S2, VT); WRITE(S2); READLN END.
  • Trong ngôn ngữ lập trình Pascal, cách khai báo xâu ký tự nào sau đây là đúng? Const n =50;
  • Trong ngôn ngữ lập trình pascal, để xóa đi ký tự thứ i của xâu ký tự S ta viết:
  • Đoạn chương trình sau làm gì: For i := 1 to length(a) do Write( Upcase (a[i]));

Một số câu hỏi khác bạn có thể quan tâm

  • Đâu là ví dụ cho thấy chất khí dễ bị nén:

  • Mark the letter A, B, C, or D on your answer sheet to indicate the word(s) CLOSEST in meaning to the underlined word(s) in each of the following questions.

    They were unable to detect the problem with the airplane’s engine.

  • Tây Nguyên, các cao nguyên cao 400 - 500 m khí hậu khá nóng thuận lợi nhất cho phát triển cây công nghiệp nào sau đây?

  • Read the following passage and mark the letter A, B, C, or D on your answer sheet to indicate the correct answer to each of the questions.

    We get great pleasure from reading. The more advanced a man is, the greater delight he will find in reading. The ordinary man may think that subjects like philosophy or science are very difficult and that if philosophers and scientists read these subjects, it is not for pleasure. But this is not true. The mathematician finds the same pleasure in his mathematics as the school boy in an adventure story. For both, it is a play of the imagination, a mental recreation and exercise.

    The pleasure derived from this activity is common to all kinds of reading. But different types of books give us different types of pleasure. First in order of popularity is novel-reading. Novels contain pictures of imaginary people in imaginary situations, and give us an opportunity of escaping into a new world very much like our world and yet different from it. Here we seem to live a new life, and the experience of this new life gives us a thrill of pleasure.

    Next in order of popularity are travel books, biographies and memoirs. These tell us tales of places we have not seen and of great men in whom we are interested.Some of these books are as wonderful as novels, and they have an added value that they are true. Such books give us knowledge, and we also find immense pleasure in knowing details of lands we have not seen and of great men we have only heard of.

    Reading is one of the greatest enjoyments of life. To book-lovers, nothing is more fascinating than a favorite book. And, the ordinary educated man who is interested and absorbed in his daily occupation wants to occasionally escape from his drudgery into the wonderland of books for recreation and refreshment.

    (Source: http://www.importantindia.com)

    According to paragraph 1, which of the following is NOT true?                

  • awareness – destroy – heavy – typhoon – also – occur – winds            Vietnam usually has a dozen storms every year from June through the end of November, and most of which (1) _____ in the Central and northern provinces. November 2nd, 1997, however, was an unexpected day when the major storm Linda raged in the South. Linda was the worst (2) _____ in Southern Vietnam over 100 years. Formed in the sea of the Philippines, Linda strengthened as it moved westward. Later, it struck extreme Southern Vietnam with (3) _____ of 100 kilometres an hour. Over 3000 people were reported lost and died. Ca Mau province, suffered a direct hit by the storm, had the most damage. Gusts and (4) _____ rainfalls caused flooding, destroyed crops, damaged about 200,000 houses and left about 383,000 people homeless. Linda later struck Thailand, causing flash flooding and at least 164 deaths. The storm (5) _____ affected Myanmar, Indonesia, Malaysia, and Cambodia to a lesser degree. Today, residents in Mekong Delta still remember Linda after 20 years. The duration of the time is enough for a kid to grow up from an unforgettable event. The memory of a particular typhoon improves everyone’s (6) _____ of natural disasters.  The memory of a particular typhoon improves everyone’s (6) _____ of natural disasters.
  • d) Đồ vật nhiều tiền nhất hơn món đồ vật ít tiền nhất số tiền là: ..................

Từ khóa » độ Dài Tối đa Của Xâu Ký Tự Là