1) Given a text file opened as file_in, which of the following will print the entire file? (Select ALL that apply.)What is the correct way to open the file file_in.txt for reading? a) open('file_in.txt', 'r') b) open('file_in.txt','w') c) open('file_in.txt','r+') d) open('file_in.txt','a') 2) Given the file dog_breeds.txt, which of the following is the correct way to open the file for reading as a text file? Select all that apply. a) open('dog_breeds.txt', 'w') b) open('dog_breeds.txt', 'r') c) open('dog_breeds.txt', 'rb') d) open('dog_breeds.txt') e) open('dog_breeds.txt', 'wb') 3) What error is returned by the following statement if the file does not exist? f=open.("a.txt") a) file not found error b) not found error c) no display d) found error 4) Fill in the blank in the following code of writing data in binary file for 1st. a) csv b) unpickle c) pickle d) load 5) which character will read 5 character from file a) f.read() b) f.read(5) c) f.reads(5)
0%
cs activity
共有
共有
共有
Vansh6793
さんの投稿です
コンテンツの編集
印刷
埋め込み
もっと見る
割り当て
リーダーボード
もっと表示する
表示を少なくする
このリーダーボードは現在非公開です。公開するには
共有
をクリックしてください。
このリーダーボードは、リソースの所有者によって無効にされています。
このリーダーボードは、あなたのオプションがリソースオーナーと異なるため、無効になっています。
オプションを元に戻す
クイズ
は自由形式のテンプレートです。リーダーボード用のスコアは生成されません。
ログインが必要です
表示スタイル
フォント
サブスクリプションが必要です
オプション
テンプレートを切り替える
すべてを表示
アクティビティを再生すると、より多くのフォーマットが表示されます。
オープン結果
リンクをコピー
QRコード
削除
自動保存:
を復元しますか?