Đề Thi FE PRP201c - SP26 - FE

adminadmin is verified member.

Member
Thành viên BQT
Administrator
Học kỳ
SP2026
Thời Gian
9/5/26
Loại tài liệu
FE
PRP201c SP26 FE
Dưới đây là toàn bộ các câu hỏi trắc nghiệm từ file tài liệu của bạn, được sắp xếp theo thứ tự câu hỏi tăng dần và giữ nguyên yêu cầu về số lượng đáp án lựa chọn:


Danh sách câu hỏi trắc nghiệm PRP201c_SP26_FE​

Question 1

(Choose 1 answer)

Which of the following commands would update a column named "name" in a table named "Users"?

  • A. Users name 'new name' WHERE
  • B. Users name new name WHERE
  • C. UPDATE Users SET name='new name' WHERE
  • D. UPDATE Users (name) VALUES ('new name') WHERE


Question 2

(Choose 1 answer)

Which statement is used to stop a loop?

  • A. exit
  • B. break
    • C. stop
  • D. return


Question 3

(Choose 1 answer)

What is the value of the following expression? 42 % 10

  • A. 4
  • B. 2
  • C. 42
  • D. 0.42


Question 4

(Choose 1 answer)

What is the output of print("X\nY")?

  • A. XnY
  • B. XY
  • C. X newline Y
  • D. Error


Question 5

(Choose 1 answer)

How would you use string slicing [] to print out 'uct' from the following string?

x = From [email protected]

  • A. print(x(14/17])
  • B. print(x[14:17])
  • C. print(x[14:31])
  • D. print(x[14+3])


Question 6

(Choose 1 answer)

In the following XML, which node is the parent node of node e?

XML

<span>&lt;<span>a</span>&gt;</span><br> <span>&lt;<span>b</span>&gt;</span>X<span>&lt;/<span>b</span>&gt;</span><br> <span>&lt;<span>c</span>&gt;</span><br> <span>&lt;<span>d</span>&gt;</span>Y<span>&lt;/<span>d</span>&gt;</span><br> <span>&lt;<span>e</span>&gt;</span>Z<span>&lt;/<span>e</span>&gt;</span><br> <span>&lt;/<span>c</span>&gt;</span><br><span>&lt;/<span>a</span>&gt;</span><br>
  • A. b
  • B. a
  • C. c
  • D. e


Question 7

(Choose 1 answer)

Which Python code is used to capture username from a Cisco Router through a prompt in Python 3?

  • A. tn.read_until(b"Login")
  • B. tn.read_until(b"user")
  • C. tn.read_until(b"user")
  • D. tn.read_until(b"Username: ")


Question 8

(Choose 1 answer)

Which method can be used to return a string in upper case letters?

  • A. upper()
  • B. uppercase()
  • C. toUpperCase()
  • D. upperCase()


Question 9

(Choose 1 answer)

What is the default sorting mode of the ORDER BY clause?

  • A. Ascending
  • B. Descending
  • C. SORT
  • D. ORDER


Question 10

(Choose 1 answer)

Assume x and y are assigned as follows: x = 5, y = -5. What is the effect of this statement: (x, y) = (y, x)?

  • A. The values of x and y are unchanged
  • B. Both x and y are -5
  • C. Both x and y are 5
  • D. The values of x and y are swapped


Question 11

(Choose 1 answer)

How do you read a file line by line?

  • A. file.read()
  • B. for line in file:
  • C. file.write()
  • D. file.line()


Question 12

(Choose 1 answer)

What would the following code print if the word is "brontosaurus"?

word="brontosaurus" d=dict() for c in word: d[c] = d.get(c, 0) + 1 print(d)

  • A. (b: 1, r: 2, o: 2, n: 1, t: 1, s: 2, a: 1, u: 2)
  • B. {'b': 1, 'r': 2, 'o': 2, 'n': 1, 't': 1, 's': 2, 'a': 1, 'u': 2}
  • C. {'b': 1, 'r': 2, 'o': 2, 'n': 1, 't': 1, 's': 2, 'a': 1, 'u': 2} (Dạng dictionary)
  • D. (b: 1, r: 1, o: 1, n: 1, t: 1, s: 1, a: 1, u: 1)


Question 13

(Choose 1 answer)

Which of the following is the database software used in this class?

  • A. Postgres
  • B. Oracle
  • C. SQL Server
  • D. SQLite
  • E. MySQL


Question 14

(Choose 1 answer)

Which function can be used on the file to display a dialog for saving a file?

  • A. Filename.savefilename()
  • B. Filename.asksavefilename()
  • C. Filename.asksaveasfilename()
  • D. No such option in python


Question 15

(Choose 1 answer)

What is the most common Unicode encoding when moving data between systems?

  • A. UTF-128
  • B. UTF-8
  • C. UTF-32
  • D. UTF-64


Question 16

(Choose 1 answer)

Which is the correct command for a statement that will select data from the Breed column in the Cats table?

  • A. SELECT FROM Breed, Cats
  • B. SELECT Cats FROM Breed
  • C. FROM Cats SELECT Breed
  • D. SELECT Breed FROM Cats


Question 17

(Choose 1 answer)

What do we do to a Python statement that is immediately after an if statement to indicate that the statement is to be executed only when the if statement is true?

  • A. Underline all of the conditional code
  • B. Indent the line below the if statement
  • C. Start the statement with a "#" character
  • D. Begin the statement with a curly brace


Question 18

(Choose 1 answer)

What is the proper way to say "good-bye" to Python?

  • A. quit()
  • B. stop()
  • C. exit()
  • D. end()


Question 19

(Choose 1 answer)

Which of these collections defines a LIST?

  • A. ("apple", "banana", "cherry")
  • B. {"name": "apple", "color": "green"}
  • C. ["apple", "banana", "cherry"]
  • D. ("apple", "banana", "cherry")


Question 20

(Choose 1 answer)

What does the following Python code print out?

a=[1,2,3,8]

b=[4,5,6]

c=a+b

print(c)

  • A. 28
  • B. [1, 2, 3, 8, 4, 5, 6]
  • C. It raises an exception
  • D. 7


Question 21

(Choose 1 answer)

When reading data across the network (ie from a URL) in Python 3, what method must be used to convert it to the internal format used by strings?

  • A. find()
  • B. encode()
  • C. decode()
  • D. upper()


Question 22

(Choose 1 answer)

What is the output of print(list) if list = ['abcd', 786, 2.23, 'john', 70.2]?

  • A. ['abcd', 786, 2.23, 'john', 70.2]
  • B. list
  • C. Error
  • D. None of the others


Question 23

(Choose 1 answer)

How can you delete all of the rows where the "name" is "Ruby" in the Cats Table?

  • A. DELETE FROM Cats WHERE name = "Ruby"
  • B. DELETE name='Ruby' FROM Cats
  • C. DELETE ROW name = 'Ruby' FROM Cats
  • D. DELETE FROM Cats WHERE name == "Ruby"


Question 24

(Choose 1 answer)

Which HTTP header tells the browser the kind of document that is being returned?

  • A. Document-Type
  • B. Content-Type
  • C. Metadata
  • D. ETag
  • E. HTML-Document


Question 25

(Choose 1 answer)

What is the correct way to create a function in Python?

  • A. create myFunction():
  • B. def myFunction():
  • C. function myFunction():
  • D. def function myFunction()


Question 26

(Choose 1 answer)

What is true about the following code segment?

if x == 5:

print('Is 5')

print('Is Still 5')

print('Third 5')

  • A. Depending on the value of x, either all three of the print statements will execute or none of the statements will execute
  • B. The string 'Is 5' will always print out regardless of the value for x.
  • C. The string 'Is 5' will never print out regardless of the value for x.
  • D. Only two of the three print statements will print out if the value of x is less than zero.


Question 27

(Choose 1 answer)

What is the default port number for HTTP?

  • A. 80
  • B. 25
  • C. 110
  • D. 443


Question 28

(Choose 1 answer)

What is the file extension of Python executable on Windows?

  • A. .bin
  • B. .p3
  • C. .dll
  • D. .exe


Question 29

(Choose 1 answer)

Which collection is ordered, changeable, and allows duplicate members?

  • A. SET
  • B. TUPLE
  • C. LIST
  • D. DICTIONARY


Question 30

(Choose 1 answer)

What is the correct way to prevent deletion of linked data across tables?

  • A. Use constraints
  • B. Avoid using JOIN
  • C. Use SELECT instead of DELETE
  • D. Run rollback


Question 31

(Choose 1 answer)

In the following code (numbers added) - which will be the last line to execute successfully?

(1) astr = 'Hello Bob'

(2) istr = int(astr)

(3) print('First', istr)

(4) astr = '123'

(5) istr = int(astr)

(6) print('Second', istr)

  • A. 2
  • B. 1
  • C. 6
  • D. 3


Question 32

(Choose 1 answer)

What should you check before scraping a web site?

  • A. That the web site supports the HTTP GET command
  • B. That the web site allows scraping
  • C. That the web site returns HTML for all pages
  • D. That the web site only has links


Question 33

(Choose 1 answer)

Which SQL command is used to insert a new row into a table?

  • A. INSERT INTO
  • B. INSERT ROW
  • C. ADD ROW
  • D. INSERT TABLE


Question 34

(Choose 1 answer)

Which of the following is NOT a valid comparison operator in Python?

  • A. ==
  • B. !=
  • C. <>
  • D. >=


Question 35

(Choose 1 answer)

Which of these collections defines a TUPLE?

  • A. {"apple", "banana", "cherry"}
  • B. {"name": "apple", "color": "green"}
  • C. ["apple", "banana", "cherry"]
  • D. ("apple", "banana", "cherry")


Question 36

(Choose 1 answer)

When you have multiple lines in an if block, how do you indicate the end of the if block?

  • A. You omit the semicolon on the last line of the if block
  • B. You de-indent the next line past the if block to the same level of indent as the original if statement
  • C. You put the colon character on a line by itself to indicate we are done with the if block
  • D. You use a curly brace after the last line of the if block


Question 37

(Choose 1 answer)

What is the ASCII character that is associated with the decimal value 42?

  • A. *
  • B. +
  • C. -
  • D. /


Question 38

(Choose 1 answer)

What is the result of the following statement: list((b'abcde' + b'fghi')[3:6])?

  • A. [b'd', b'e', b'f']
  • B. b'def'
  • C. [100, 101, 102]
  • D. It raises an exception


Question 39

(Choose 1 answer)

Which function from urllib retrieves the contents of a URL?

  • A. urlopen()
  • B. connect()
  • C. request()
  • D. readurl()


Question 40

(Choose 1 answer)

Why should humans learn the language of computers (programming)?

  • A. So they can repair hardware
  • B. To help computers do boring tasks efficiently
  • C. To replace all manual work
  • D. To teach computers how to feel emotions


Question 41

(Choose 1 answer)

In the example (0, 1, 2) &lt; (0, 3, 4), why does Python return True?

  • A. Python compares the second element and finds 1 < 3
  • B. Python compares the third element and finds 2 < 4
  • C. Python compares the first element and finds 0 < 0
  • D. Python compares the second element and finds 1 > 3


Question 42

(Choose 1 answer)

What makes JSON more suitable than XML for REST APIs?

  • A. Its syntax is simpler and aligns with JavaScript
  • B. It is more verbose
  • C. It is human-unreadable
  • D. It requires no formatting


Question 43

(Choose 1 answer)

What does the Python int() function do?

  • A. Returns an integer object from any number or string
  • B. Connect to the network and retrieve a web page.
  • C. Read the memory of the running program
  • D. Take a screen shot from an area of the screen


Question 44

(Choose 1 answer)

If you have the list numbers = [17, 123], what will be the result of numbers[1] = 5?

  • A. [17, 123]
  • B. [5, 17]
  • C. [17, 5]
  • D. IndexError


Question 45

(Choose 1 answer)

Which of the following HTTP requests are correct?

Question 46

(Choose 1 answer)

What character do you add to the + or * to indicate that the match is to be done in a non-greedy manner?

  • A. +
  • B. $
  • C. ?
  • D. ^


Question 47

(Choose 1 answer)

Which of the following is most like an open socket in an application?

  • A. An "in-progress" phone conversation
  • B. Fiber optic cables
  • C. The wheels on an automobile
  • D. The chain on a bicycle
  • E. The ringer on a telephone


Question 48

(Choose 1 answer)

Which of the following are valid ways to specify the string literal foo'bar in Python:

  • A. "foo'bar"
  • B. 'foo"bar"'
  • C. foo'bar
  • D. foobar


Question 49

(Choose 1 answer)

What is the correct syntax to output the type of a variable or object in Python?

  • A. print(typeof(x))
  • B. print(type(x))
  • C. print(typeof x)
  • D. print(typeOf(x))


Question 50

(Choose 1 answer)

Which one is NOT a legal variable name?

  • A. myvar
  • B. Myvar
  • C. My var
  • D. My-var


 

Đính kèm

  • PRP201c SP26 FE_001.webp
    PRP201c SP26 FE_001.webp
    20.2 KB · Lượt xem: 1
  • PRP201c SP26 FE_002.webp
    PRP201c SP26 FE_002.webp
    17.8 KB · Lượt xem: 1
  • PRP201c SP26 FE_003.webp
    PRP201c SP26 FE_003.webp
    21.7 KB · Lượt xem: 0
  • PRP201c SP26 FE_004.webp
    PRP201c SP26 FE_004.webp
    17.6 KB · Lượt xem: 0
  • PRP201c SP26 FE_005.webp
    PRP201c SP26 FE_005.webp
    16.6 KB · Lượt xem: 0
  • PRP201c SP26 FE_006.webp
    PRP201c SP26 FE_006.webp
    22.5 KB · Lượt xem: 0
  • PRP201c SP26 FE_007.webp
    PRP201c SP26 FE_007.webp
    15.1 KB · Lượt xem: 0
  • PRP201c SP26 FE_008.webp
    PRP201c SP26 FE_008.webp
    26.6 KB · Lượt xem: 0
  • PRP201c SP26 FE_009.webp
    PRP201c SP26 FE_009.webp
    17.8 KB · Lượt xem: 0
  • PRP201c SP26 FE_010.webp
    PRP201c SP26 FE_010.webp
    21.4 KB · Lượt xem: 0
  • PRP201c SP26 FE_011.webp
    PRP201c SP26 FE_011.webp
    17.5 KB · Lượt xem: 0
  • PRP201c SP26 FE_012.webp
    PRP201c SP26 FE_012.webp
    23.4 KB · Lượt xem: 0
  • PRP201c SP26 FE_013.webp
    PRP201c SP26 FE_013.webp
    28.2 KB · Lượt xem: 0
  • PRP201c SP26 FE_014.webp
    PRP201c SP26 FE_014.webp
    15.6 KB · Lượt xem: 0
  • PRP201c SP26 FE_015.webp
    PRP201c SP26 FE_015.webp
    19.7 KB · Lượt xem: 0
  • PRP201c SP26 FE_016.webp
    PRP201c SP26 FE_016.webp
    18.6 KB · Lượt xem: 0
  • PRP201c SP26 FE_017.webp
    PRP201c SP26 FE_017.webp
    20.9 KB · Lượt xem: 0
  • PRP201c SP26 FE_018.webp
    PRP201c SP26 FE_018.webp
    18.3 KB · Lượt xem: 0
  • PRP201c SP26 FE_019.webp
    PRP201c SP26 FE_019.webp
    24.7 KB · Lượt xem: 0
  • PRP201c SP26 FE_020.webp
    PRP201c SP26 FE_020.webp
    19.8 KB · Lượt xem: 0
  • PRP201c SP26 FE_021.webp
    PRP201c SP26 FE_021.webp
    19.1 KB · Lượt xem: 0
  • PRP201c SP26 FE_022.webp
    PRP201c SP26 FE_022.webp
    35.1 KB · Lượt xem: 0
  • PRP201c SP26 FE_023.webp
    PRP201c SP26 FE_023.webp
    14.3 KB · Lượt xem: 0
  • PRP201c SP26 FE_024.webp
    PRP201c SP26 FE_024.webp
    15.5 KB · Lượt xem: 0
  • PRP201c SP26 FE_025.webp
    PRP201c SP26 FE_025.webp
    16.9 KB · Lượt xem: 0
  • PRP201c SP26 FE_026.webp
    PRP201c SP26 FE_026.webp
    19.7 KB · Lượt xem: 0
  • PRP201c SP26 FE_027.webp
    PRP201c SP26 FE_027.webp
    23.1 KB · Lượt xem: 0
  • PRP201c SP26 FE_028.webp
    PRP201c SP26 FE_028.webp
    22.5 KB · Lượt xem: 0
  • PRP201c SP26 FE_029.webp
    PRP201c SP26 FE_029.webp
    17.7 KB · Lượt xem: 0
  • PRP201c SP26 FE_030.webp
    PRP201c SP26 FE_030.webp
    15.4 KB · Lượt xem: 0
  • PRP201c SP26 FE_031.webp
    PRP201c SP26 FE_031.webp
    19.9 KB · Lượt xem: 0
  • PRP201c SP26 FE_032.webp
    PRP201c SP26 FE_032.webp
    31.2 KB · Lượt xem: 0
  • PRP201c SP26 FE_033.webp
    PRP201c SP26 FE_033.webp
    15.6 KB · Lượt xem: 0
  • PRP201c SP26 FE_034.webp
    PRP201c SP26 FE_034.webp
    18.3 KB · Lượt xem: 0
  • PRP201c SP26 FE_035.webp
    PRP201c SP26 FE_035.webp
    16.6 KB · Lượt xem: 0
  • PRP201c SP26 FE_036.webp
    PRP201c SP26 FE_036.webp
    22.6 KB · Lượt xem: 0
  • PRP201c SP26 FE_037.webp
    PRP201c SP26 FE_037.webp
    25.4 KB · Lượt xem: 0
  • PRP201c SP26 FE_038.webp
    PRP201c SP26 FE_038.webp
    20.8 KB · Lượt xem: 0
  • PRP201c SP26 FE_039.webp
    PRP201c SP26 FE_039.webp
    23.3 KB · Lượt xem: 0
  • PRP201c SP26 FE_040.webp
    PRP201c SP26 FE_040.webp
    17.2 KB · Lượt xem: 0
  • PRP201c SP26 FE_041.webp
    PRP201c SP26 FE_041.webp
    30.7 KB · Lượt xem: 0
  • PRP201c SP26 FE_042.webp
    PRP201c SP26 FE_042.webp
    17.3 KB · Lượt xem: 0
  • PRP201c SP26 FE_043.webp
    PRP201c SP26 FE_043.webp
    22.5 KB · Lượt xem: 0
  • PRP201c SP26 FE_044.webp
    PRP201c SP26 FE_044.webp
    17.8 KB · Lượt xem: 0
  • PRP201c SP26 FE_045.webp
    PRP201c SP26 FE_045.webp
    19.2 KB · Lượt xem: 0
  • PRP201c SP26 FE_046.webp
    PRP201c SP26 FE_046.webp
    15.1 KB · Lượt xem: 0
  • PRP201c SP26 FE_047.webp
    PRP201c SP26 FE_047.webp
    25.6 KB · Lượt xem: 0
  • PRP201c SP26 FE_048.webp
    PRP201c SP26 FE_048.webp
    14.4 KB · Lượt xem: 0
  • PRP201c SP26 FE_049.webp
    PRP201c SP26 FE_049.webp
    14.7 KB · Lượt xem: 1
  • PRP201c SP26 FE_050.webp
    PRP201c SP26 FE_050.webp
    14.2 KB · Lượt xem: 1

Tạo tài khoản hoặc đăng nhập để bình luận

Bạn phải là thành viên mới có thể bình luận.

Tạo tài khoản

Hãy tạo tài khoản trên cộng đồng của chúng tôi. Thật dễ dàng!

Đăng nhập

Bạn đã có tài khoản? Đăng nhập tại đây.

Back
Top