ログイン

(Pre-Finals)Event-Driven Programming Mocktest BSIT 505
59問 • 2ヶ月前
  • Xai Alexandrei Delos Reyes
  • 通報

    問題一覧

  • 1

    They represent a source that provides a sequence of bytes, such as a file, an input/output (I/O) device, an interprocess communication pipe, or a TCP/IP socket

    Streams

  • 2

    It refers to a printer, remote server location, or a printer where the data is written.

    Output streams

  • 3

    It refers to a file or any source where the data can be read and assigned to the memory variables in the program.

    Input streams

  • 4

    Which statement best describes System.IO namespace when it comes to filestreams?

    It contains classes that allow to write and read files. This needs to be included in all programs that use streams. All files are byte-oriented, meaning the data iswritten or read into the files in terms of bytes.

  • 5

    It is a class that is used to create a byte-oriented stream attached to a file.

    FileStream

  • 6

    What is the correct syntax for FileStream?

    FileStream(string filename,FileMode mode);

  • 7

    In FileStream, which parameter specifies how the file needs to be opened..

    mode

  • 8

    in FileMode for FileStream, It creates a new output file, which will be overwritten if a file already exists.

    FileMode.Create

  • 9

    in FileMode for FileStream, It creates a new output file that is not existing.

    FileMode.CreateNew

  • 10

    in FileMode for FileStream,It opens an existing file.

    FileMode.Open

  • 11

    in FileMode for FileStream,It opens an existing. If not, it creates a new one.

    FileMode.OpenOrCreate

  • 12

    in FileMode for FileStream,It opens an existing file and truncates the content that already exists

    FileMode.Truncate

  • 13

    In methods for FileStream, This method reads a single byte from a file and returns as an integer value.

    ReadByte()

  • 14

    In methods for FileStream, This method reads the specified number of bytes from a file into an array.

    Read()

  • 15

    In methods for FileStream, It writes the specified byte into the file

    WriteByte()

  • 16

    In methods for FileStream, It writes an array of bytes into the file

    Write()

  • 17

    In methods for FileStream, This method instantly writes the data into the file.

    Flush()

  • 18

    In methods for FileStream, This method closes the file, releasing the system resources that are allocated to it.

    void Close()

  • 19

    This method is used to relocate the file pointer in the file

    Seek

  • 20

    it is a method that allows setting the file position indicator of file pointer to the preferred location in the file.

    Seek()

  • 21

    What is the correct syntax for seek?

    long Seek(long n, SeekOrigin location);

  • 22

    In properties of Seek, It returns true if the stream can be read.

    bool CanRead

  • 23

    In properties of Seek, It returns true if the stream supports position requests

    bool CanSeek

  • 24

    In properties of Seek, It returns true if the stream can time out.

    bool CanTimeout

  • 25

    In properties of Seek, It returns true if the stream can be written.

    bool CanWrite

  • 26

    In properties of Seek, It contains the size of the stream.

    long length

  • 27

    In properties of Seek, It indicates the time before a timeout occurs for read operations.

    int ReadTimeout

  • 28

    In properties of Seek, It indicates the time before a timeout occurs for write operations.

    int WriteTimeout

  • 29

    in Performing Character-BasedFile I/O, this writes characters to a stream.

    StreamWriter

  • 30

    in Performing Character-BasedFile I/O, which StreamWriter constructor is used to create a character-based output stream.

    StreamWriter(Stream stream)

  • 31

    in Performing Character-BasedFile I/O, which StreamWriter constructor is used to open a file directly.

    StreamWriter(string fileName)

  • 32

    in Performing Character-BasedFile I/O, which StreamWriter method closes the file.

    Close()

  • 33

    in Performing Character-BasedFile I/O, which StreamWriter method instantly saves the file content from buffer to memory

    Flush()

  • 34

    in Performing Character-BasedFile I/O, which StreamWriter method is using a File stream class, this writes into the specified file.

    Write()

  • 35

    in Performing Character-BasedFile I/O, which StreamWriter method is when Line by line, it writes into a file

    WriteLine()

  • 36

    in Performing Character-BasedFile I/O, this is a class that reads characters from a byte stream.

    StreamReader

  • 37

    in Performing Character-BasedFile I/O, which StreamReader constructor uses the name of an open stream such I/O devices or a file.

    StreamReader(Stream stream)

  • 38

    in Performing Character-BasedFile I/O, which StreamReader constructor specifies the name of the file to open.

    StreamReader(string fileName)

  • 39

    in Performing Character-BasedFile I/O, which StreamReader method is from buffer to memory, it instantly saves the file content.

    Flush()

  • 40

    in Performing Character-BasedFile I/O, which StreamReader method closes the file and is mandatory to this class.

    Close()

  • 41

    in Performing Character-BasedFile I/O, which StreamReader method is from the file stream, it reads the content.

    Read()

  • 42

    in Performing Character-BasedFile I/O, which StreamReader method is from the given file stream, it reads the content line by line.

    ReadLine()

  • 43

    in Performing Character-BasedFile I/O, which StreamReader method is described? "From the current location until the end of the stream, it reads all characters."

    ReadToEnd()

  • 44

    in Performing Character-BasedFile I/O, which StreamReader method is described? "It returns the value in the stream without moving the file pointer."

    Peek()

  • 45

    in Performing Character-BasedFile I/O, which StreamReader method is described? "Sets the file pointer at the desired position in a file."

    Seek()

  • 46

    Which statement is NOT TRUE about Assemblies?

    It represent a source that provides a sequence of bytes, such as a file, an input/output (I/O) device, an interprocess communication pipe, or a TCP/IP socket

  • 47

    It includes information about the data types of the program that are being used.

    Metadata

  • 48

    It holds the information of the assembly, which consists of the name, version number, and the type of mapping information

    Manifest

  • 49

    It is for standalone applications

    .exe

  • 50

    It is for reusable components.

    .dll

  • 51

    .NET Frameworks’ core assemblies location can be found in ____?

    C:\Windows\assembly

  • 52

    Which statement is NOT TRUE about Private Assembly?

    These are libraries that other applications can commonly use.

  • 53

    Which statement is FALSE about Shared Assembly?

    Simplest type of assembly

  • 54

    Which Statement NOT TRUE about Name Collision?

    It enables several applications to share shared assembly.

  • 55

    Which statement is NOT TRUE about Global Assembly Cache

    It is a common problem in shared assembly wherein other classes or variables have the same name that matches with the other shared assembly.

  • 56

    What is the FIRST STEP in Creating a Shared Assembly?

    Create a project containing a class file. The class file contains the methods and properties that you want other applications to access.

  • 57

    What is the SECOND STEP in Creating a Shared Assembly?

    Generate a strong name for the project. The strong name is saved in a strong key filename (e.g., ShareAssemblyMessageKeyFile). The strong key file is created named ShareAssemblyMessageKeyFile.snk and located at the solutions explorer.

  • 58

    What is the THIRD STEP in Creating a Shared Assembly?

    Specify the key filename in the project by indicating its strong key filename in the AssemblyInfo.cs file.

  • 59

    What is the FOURTH STEP in Creating a Shared Assembly?

    Compile the project to generate an assembly. The assembly is generated with the extension .dll.

  • The Contemporary World Mock test (Prelims)

    The Contemporary World Mock test (Prelims)

    Xai Alexandrei Delos Reyes · 58問 · 2年前

    The Contemporary World Mock test (Prelims)

    The Contemporary World Mock test (Prelims)

    58問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock test (Prelims)

    Computing Mock test (Prelims)

    Xai Alexandrei Delos Reyes · 67問 · 2年前

    Computing Mock test (Prelims)

    Computing Mock test (Prelims)

    67問 • 2年前
    Xai Alexandrei Delos Reyes

    Programming Mock Test (Prelims)

    Programming Mock Test (Prelims)

    Xai Alexandrei Delos Reyes · 64問 · 2年前

    Programming Mock Test (Prelims)

    Programming Mock Test (Prelims)

    64問 • 2年前
    Xai Alexandrei Delos Reyes

    Entrepreneurship Mock Test (Prelims)

    Entrepreneurship Mock Test (Prelims)

    Xai Alexandrei Delos Reyes · 23問 · 2年前

    Entrepreneurship Mock Test (Prelims)

    Entrepreneurship Mock Test (Prelims)

    23問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock Test (Midterms) BSIT 107

    Computing Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 76問 · 2年前

    Computing Mock Test (Midterms) BSIT 107

    Computing Mock Test (Midterms) BSIT 107

    76問 • 2年前
    Xai Alexandrei Delos Reyes

    Math Mock Test (Prelims)

    Math Mock Test (Prelims)

    Xai Alexandrei Delos Reyes · 48問 · 2年前

    Math Mock Test (Prelims)

    Math Mock Test (Prelims)

    48問 • 2年前
    Xai Alexandrei Delos Reyes

    Programming Mock Test (Midterms) BSIT 107

    Programming Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 52問 · 2年前

    Programming Mock Test (Midterms) BSIT 107

    Programming Mock Test (Midterms) BSIT 107

    52問 • 2年前
    Xai Alexandrei Delos Reyes

    UTS Mock Test (Midterms) BSIT107

    UTS Mock Test (Midterms) BSIT107

    Xai Alexandrei Delos Reyes · 40問 · 2年前

    UTS Mock Test (Midterms) BSIT107

    UTS Mock Test (Midterms) BSIT107

    40問 • 2年前
    Xai Alexandrei Delos Reyes

    Entrepreneurship Mock Test (Midterms) BSIT 107

    Entrepreneurship Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 38問 · 2年前

    Entrepreneurship Mock Test (Midterms) BSIT 107

    Entrepreneurship Mock Test (Midterms) BSIT 107

    38問 • 2年前
    Xai Alexandrei Delos Reyes

    Contemporary World Mock Test (Midterms) BSIT 107

    Contemporary World Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 28問 · 2年前

    Contemporary World Mock Test (Midterms) BSIT 107

    Contemporary World Mock Test (Midterms) BSIT 107

    28問 • 2年前
    Xai Alexandrei Delos Reyes

    Math Mocktest (Midterms) BSIT 107

    Math Mocktest (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 24問 · 2年前

    Math Mocktest (Midterms) BSIT 107

    Math Mocktest (Midterms) BSIT 107

    24問 • 2年前
    Xai Alexandrei Delos Reyes

    Computer Programming Mocktest (Pre-finals)

    Computer Programming Mocktest (Pre-finals)

    Xai Alexandrei Delos Reyes · 26問 · 2年前

    Computer Programming Mocktest (Pre-finals)

    Computer Programming Mocktest (Pre-finals)

    26問 • 2年前
    Xai Alexandrei Delos Reyes

    Math Mocktest (Pre-Finals)

    Math Mocktest (Pre-Finals)

    Xai Alexandrei Delos Reyes · 19問 · 2年前

    Math Mocktest (Pre-Finals)

    Math Mocktest (Pre-Finals)

    19問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock Test (Pre-finals)

    Computing Mock Test (Pre-finals)

    Xai Alexandrei Delos Reyes · 36問 · 2年前

    Computing Mock Test (Pre-finals)

    Computing Mock Test (Pre-finals)

    36問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock Test Finals

    Computing Mock Test Finals

    Xai Alexandrei Delos Reyes · 26問 · 2年前

    Computing Mock Test Finals

    Computing Mock Test Finals

    26問 • 2年前
    Xai Alexandrei Delos Reyes

    Comprog 2nd sem (prelims) BSIT 205

    Comprog 2nd sem (prelims) BSIT 205

    Xai Alexandrei Delos Reyes · 63問 · 1年前

    Comprog 2nd sem (prelims) BSIT 205

    Comprog 2nd sem (prelims) BSIT 205

    63問 • 1年前
    Xai Alexandrei Delos Reyes

    Discrete Math 2nd sem (prelims) BSIT 205

    Discrete Math 2nd sem (prelims) BSIT 205

    Xai Alexandrei Delos Reyes · 36問 · 1年前

    Discrete Math 2nd sem (prelims) BSIT 205

    Discrete Math 2nd sem (prelims) BSIT 205

    36問 • 1年前
    Xai Alexandrei Delos Reyes

    Art Appreciation (Prelim) BSIT 205

    Art Appreciation (Prelim) BSIT 205

    Xai Alexandrei Delos Reyes · 56問 · 1年前

    Art Appreciation (Prelim) BSIT 205

    Art Appreciation (Prelim) BSIT 205

    56問 • 1年前
    Xai Alexandrei Delos Reyes

    Ethics 2nd sem (Prelims) BSIT 205

    Ethics 2nd sem (Prelims) BSIT 205

    Xai Alexandrei Delos Reyes · 45問 · 1年前

    Ethics 2nd sem (Prelims) BSIT 205

    Ethics 2nd sem (Prelims) BSIT 205

    45問 • 1年前
    Xai Alexandrei Delos Reyes

    STS 2nd Sem (Prelim) BSIT 205

    STS 2nd Sem (Prelim) BSIT 205

    Xai Alexandrei Delos Reyes · 40問 · 1年前

    STS 2nd Sem (Prelim) BSIT 205

    STS 2nd Sem (Prelim) BSIT 205

    40問 • 1年前
    Xai Alexandrei Delos Reyes

    問題一覧

  • 1

    They represent a source that provides a sequence of bytes, such as a file, an input/output (I/O) device, an interprocess communication pipe, or a TCP/IP socket

    Streams

  • 2

    It refers to a printer, remote server location, or a printer where the data is written.

    Output streams

  • 3

    It refers to a file or any source where the data can be read and assigned to the memory variables in the program.

    Input streams

  • 4

    Which statement best describes System.IO namespace when it comes to filestreams?

    It contains classes that allow to write and read files. This needs to be included in all programs that use streams. All files are byte-oriented, meaning the data iswritten or read into the files in terms of bytes.

  • 5

    It is a class that is used to create a byte-oriented stream attached to a file.

    FileStream

  • 6

    What is the correct syntax for FileStream?

    FileStream(string filename,FileMode mode);

  • 7

    In FileStream, which parameter specifies how the file needs to be opened..

    mode

  • 8

    in FileMode for FileStream, It creates a new output file, which will be overwritten if a file already exists.

    FileMode.Create

  • 9

    in FileMode for FileStream, It creates a new output file that is not existing.

    FileMode.CreateNew

  • 10

    in FileMode for FileStream,It opens an existing file.

    FileMode.Open

  • 11

    in FileMode for FileStream,It opens an existing. If not, it creates a new one.

    FileMode.OpenOrCreate

  • 12

    in FileMode for FileStream,It opens an existing file and truncates the content that already exists

    FileMode.Truncate

  • 13

    In methods for FileStream, This method reads a single byte from a file and returns as an integer value.

    ReadByte()

  • 14

    In methods for FileStream, This method reads the specified number of bytes from a file into an array.

    Read()

  • 15

    In methods for FileStream, It writes the specified byte into the file

    WriteByte()

  • 16

    In methods for FileStream, It writes an array of bytes into the file

    Write()

  • 17

    In methods for FileStream, This method instantly writes the data into the file.

    Flush()

  • 18

    In methods for FileStream, This method closes the file, releasing the system resources that are allocated to it.

    void Close()

  • 19

    This method is used to relocate the file pointer in the file

    Seek

  • 20

    it is a method that allows setting the file position indicator of file pointer to the preferred location in the file.

    Seek()

  • 21

    What is the correct syntax for seek?

    long Seek(long n, SeekOrigin location);

  • 22

    In properties of Seek, It returns true if the stream can be read.

    bool CanRead

  • 23

    In properties of Seek, It returns true if the stream supports position requests

    bool CanSeek

  • 24

    In properties of Seek, It returns true if the stream can time out.

    bool CanTimeout

  • 25

    In properties of Seek, It returns true if the stream can be written.

    bool CanWrite

  • 26

    In properties of Seek, It contains the size of the stream.

    long length

  • 27

    In properties of Seek, It indicates the time before a timeout occurs for read operations.

    int ReadTimeout

  • 28

    In properties of Seek, It indicates the time before a timeout occurs for write operations.

    int WriteTimeout

  • 29

    in Performing Character-BasedFile I/O, this writes characters to a stream.

    StreamWriter

  • 30

    in Performing Character-BasedFile I/O, which StreamWriter constructor is used to create a character-based output stream.

    StreamWriter(Stream stream)

  • 31

    in Performing Character-BasedFile I/O, which StreamWriter constructor is used to open a file directly.

    StreamWriter(string fileName)

  • 32

    in Performing Character-BasedFile I/O, which StreamWriter method closes the file.

    Close()

  • 33

    in Performing Character-BasedFile I/O, which StreamWriter method instantly saves the file content from buffer to memory

    Flush()

  • 34

    in Performing Character-BasedFile I/O, which StreamWriter method is using a File stream class, this writes into the specified file.

    Write()

  • 35

    in Performing Character-BasedFile I/O, which StreamWriter method is when Line by line, it writes into a file

    WriteLine()

  • 36

    in Performing Character-BasedFile I/O, this is a class that reads characters from a byte stream.

    StreamReader

  • 37

    in Performing Character-BasedFile I/O, which StreamReader constructor uses the name of an open stream such I/O devices or a file.

    StreamReader(Stream stream)

  • 38

    in Performing Character-BasedFile I/O, which StreamReader constructor specifies the name of the file to open.

    StreamReader(string fileName)

  • 39

    in Performing Character-BasedFile I/O, which StreamReader method is from buffer to memory, it instantly saves the file content.

    Flush()

  • 40

    in Performing Character-BasedFile I/O, which StreamReader method closes the file and is mandatory to this class.

    Close()

  • 41

    in Performing Character-BasedFile I/O, which StreamReader method is from the file stream, it reads the content.

    Read()

  • 42

    in Performing Character-BasedFile I/O, which StreamReader method is from the given file stream, it reads the content line by line.

    ReadLine()

  • 43

    in Performing Character-BasedFile I/O, which StreamReader method is described? "From the current location until the end of the stream, it reads all characters."

    ReadToEnd()

  • 44

    in Performing Character-BasedFile I/O, which StreamReader method is described? "It returns the value in the stream without moving the file pointer."

    Peek()

  • 45

    in Performing Character-BasedFile I/O, which StreamReader method is described? "Sets the file pointer at the desired position in a file."

    Seek()

  • 46

    Which statement is NOT TRUE about Assemblies?

    It represent a source that provides a sequence of bytes, such as a file, an input/output (I/O) device, an interprocess communication pipe, or a TCP/IP socket

  • 47

    It includes information about the data types of the program that are being used.

    Metadata

  • 48

    It holds the information of the assembly, which consists of the name, version number, and the type of mapping information

    Manifest

  • 49

    It is for standalone applications

    .exe

  • 50

    It is for reusable components.

    .dll

  • 51

    .NET Frameworks’ core assemblies location can be found in ____?

    C:\Windows\assembly

  • 52

    Which statement is NOT TRUE about Private Assembly?

    These are libraries that other applications can commonly use.

  • 53

    Which statement is FALSE about Shared Assembly?

    Simplest type of assembly

  • 54

    Which Statement NOT TRUE about Name Collision?

    It enables several applications to share shared assembly.

  • 55

    Which statement is NOT TRUE about Global Assembly Cache

    It is a common problem in shared assembly wherein other classes or variables have the same name that matches with the other shared assembly.

  • 56

    What is the FIRST STEP in Creating a Shared Assembly?

    Create a project containing a class file. The class file contains the methods and properties that you want other applications to access.

  • 57

    What is the SECOND STEP in Creating a Shared Assembly?

    Generate a strong name for the project. The strong name is saved in a strong key filename (e.g., ShareAssemblyMessageKeyFile). The strong key file is created named ShareAssemblyMessageKeyFile.snk and located at the solutions explorer.

  • 58

    What is the THIRD STEP in Creating a Shared Assembly?

    Specify the key filename in the project by indicating its strong key filename in the AssemblyInfo.cs file.

  • 59

    What is the FOURTH STEP in Creating a Shared Assembly?

    Compile the project to generate an assembly. The assembly is generated with the extension .dll.