Q201. Which keyword is used to define a function in Python?
- define
- def
- function
- func
Show answer and explanation
Correct answer: B. def
def begins a function definition.
Computer knowledge is tested in jobs ranging from clerical posts to IT positions. Practice MCQs on computer fundamentals, hardware, software, MS Office, networking, internet, databases and programming concepts, and see your score as soon as you finish.
Correct answer: B. def
def begins a function definition.
Correct answer: C. Fraudulent attempt to steal sensitive information
Phishing tricks users into revealing credentials.
Correct answer: D. James Gosling
Gosling created Java at Sun Microsystems.
Correct answer: D. A variable that stores a memory address
Pointers hold addresses.
Correct answer: D. A program that spreads by attaching to other files
Viruses replicate and spread.
Correct answer: A. MongoDB
MongoDB is a document NoSQL database.
Correct answer: A. Delete
Delete removes to the right.
Correct answer: D. 11
Multiplication has higher precedence.
Correct answer: D. A container for files
Folders organise files.
Correct answer: B. Router
A router connects networks.