Files can be imported:
Suggested Answer: A
Get Premium CBDE Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
31 comments · newest first
GO
Goldie
11 months ago
I thought you could import files in other ways too, not just those!
LE
Letha
11 months ago
C is interesting, but I've never used requirefile(...) before.
XO
Xochitl
11 months ago
Wait, can you really only import via GitHub? Sounds off.
AB
Abel
12 months ago
Totally agree with A, it's how I always do it.
RO
Rodolfo
12 months ago
A is correct, relative and absolute paths are essential!
TO
Toi
12 months ago
I don't think files can only be imported via GitHub; that seems too limiting. I'm leaning towards option A being correct.
LU
Luz
1 year ago
I feel like I've seen something about the requirefile(...) statement before, but I can't recall if that's the right way to import files.
BU
Bulah
1 year ago
I remember practicing a question about importing files, and I think option A sounds familiar, but I might be mixing it up with something else.
DA
Dahlia
1 year ago
I think files can be imported using relative and absolute paths, but I'm not entirely sure how the '.' and '..' work in that context.
CA
Cammy
1 year ago
Whoa, I don't recall ever seeing that 'requirefile()' function before. I'm a bit confused by that option, so I'll need to think it through carefully.
HO
Holley
1 year ago
Ah, I remember learning about the '.' and '..' notation for relative paths. I think I've got a good handle on this question.
NY
Nydia
1 year ago
Okay, the key here is to identify the correct way to import files. I think I'll start by eliminating the options that don't sound right, then focus on the remaining one.
HE
Heike
1 year ago
Hmm, I'm a little unsure about the differences between relative and absolute paths. I'll need to review that concept before answering.
DE
Dell
1 year ago
This seems like a straightforward question about file imports. I'm pretty confident I can handle this one.
ER
Ernest
1 year ago
Wait, there are other ways to import files besides just using the file system? Mind. Blown.
LA
Lavelle
1 year ago
Each method has its own advantages and use cases.
HE
Herminia
1 year ago
It's always good to know the different options available for importing files.
EL
Elly
1 year ago
You can use relative and absolute paths, or even import files from a specific library path.
EF
Effie
1 year ago
Yes, there are different ways to import files depending on the context.
KI
King
1 year ago
Haha, option B? What is this, a certification exam for GitHub experts? I'll stick with the classic path imports, thank you very much.
OR
Orville
1 year ago
Hmm, I'm not sure. Option B about GitHub seems a bit odd for a basic file import question. I'll have to think this one over.
ST
Stephaine
1 year ago
I think option C is the way to go. That requirefile() statement sounds like a neat way to keep your imports organized and centralized.
AN
Angelyn
1 year ago
I think GitHub is the easiest way to import files, it's convenient and efficient.
KA
Kayleigh
1 year ago
I prefer using relative paths for importing files, it gives me more control over the file structure.
MA
Margarita
1 year ago
I agree, using requirefile() seems like a good way to manage imports.
WH
Whitney
2 years ago
Definitely option A. Relative and absolute paths are the standard way to import files, not some special GitHub or library path nonsense.
MA
Maile
1 year ago
Yeah, it's definitely the most straightforward method for importing files.
DE
Detra
1 year ago
I agree, using relative and absolute paths is the most common and reliable way to import files.
AL
Aliza
2 years ago
I'm not sure about the special requirefile(...) statement, it seems a bit confusing.
QU
Queen
2 years ago
I agree with Jenise, using '.' and '..' for relative paths makes sense.
JE
Jenise
2 years ago
I think files can be imported using relative and absolute paths.