Module_for_NBXS
.docx
keyboard_arrow_up
School
University of South Alabama *
*We aren’t endorsed by this school
Course
DRA 334
Subject
Computer Science
Date
Jan 9, 2024
Type
docx
Pages
5
Uploaded by LieutenantCrocodilePerson965
Q1: What does the unlink() function do??
a None
b The unlink() function is dedicated for file system handling. It simply deletes the
file given as entry.
c None
d None
e None
f The unlink() function is not dedicated for file system handling. It does not deletes
the file given as entry.
Q2: An <iframe> is used to display a web page within a web page.?
a None
b False
c True
d None
e None
f None
Q3: Which Is not a property of attribute behaviour of <Marquee> Tag??
a Alternate
b Blur
c None
d Slide
e Scroll
f None
Q4: What will be the effect of the query SELECT c.*,e.* FROM clients c INNER JOIN
employees e ON c.emp_no = e.emp_no;?
a return all the records from the clients table and only those that match the emp_no
from the employees table
b None
c return all the records from the employees table and only those that match the
emp_no from the clients table
d return only records that have matching emp_no values in both tables
e None
f The query will generate an error
Q5: You have to sort records in the descending order by field "rating". Which query will be
correct??
a SORT BY "rating"
b None
c ORDER BY "rating" DESC
d None
e ORDER BY "rating"
f SORT BY "rating" DESC
Q6: If we want to open a file for reading and writing which mode of the function fopen() are
we going to use:?
a x+
b r+
c r
The correct Answer is: None
e w+
f x
Q7: Which command is used to access a running container??
a docker exec -it container_id bash
b docker run container_id bash
c docker login container_id
d None
e docker fetch container
f None
Q8: In a LIKE clause, you can ask for any 6 Letter Value by writing:?
a None
b LIKE ______ (Six Underscore Characters)
c None
d LIKE ^.{6}$
e LIKE .{6}
f LIKE ??????
Q9: The WHERE clause is mandatory when using the SELECT command?
a None
b None
c None
d True
e None
f False
Q10: The HTML global attribute, "contenteditable" is used to:?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
JavaScript Loops
Create an HTML document called assignment2.html that implements a webpage that creates dynamically (using JavaScript code) a 15X15 HTML table and displays in each cell the (row, column) information for that cell.
Follow these guidelines to implement your assignment:
Create a JavaScript file called assignment2.js and write the code for a function that draws the table.
Invoke the function when the visitor clicks on the original page.
Load the assignment2.js file at the end of the body in assignment2.html.
(10% of the grade) Accept user input for the number of rows and columns in the table.
(10% of the grade) Use good web design practices to enhance visually your html page. Add a title, picture, colors, copyright line, etc.
arrow_forward
Php programming language
arrow_forward
Using PHP
Write a program using PHP programming language that reads the user name and password from a login form Login.html Login.php And then writes them in a text file(logos.txt).
arrow_forward
Use python language for a program that modifies and sorts the content of a specific csv file based on the inputted column name. The program should ask Enter filename: Enter column name to be sorted: Additionally, the csv file must be modified and no additional csv files must be created. The application will catch and display an error message "the file does not exist" if the csv file does not exist. *if possibe, do not use pandas*
arrow_forward
javascript please
//20. function initPage//a. Dependencies: getUsers, populateSelectMenu//b. Should be an async function//c. No parameters.//d. Call await getUsers//e. Result is the users JSON data//f. Passes the users JSON data to the populateSelectMenu function//g. Result is the select element returned from populateSelectMenu//h. Return an array with users JSON data from getUsers and the select element//result from populateSelectMenu: [users, select]
html
<body> <header> <h1>Acme Blogs</h1> <form id="filterForm"> <select id="selectMenu"> <option selected>Employees</option> </select> </form> </header> <main> <p class="default-text">Select an Employee to display their posts.</p> </main> <footer> <p>Acme Company</p> </footer> <div id="mocha" class="testResults"></div>…
arrow_forward
//18. refreshPosts//a. Dependencies: removeButtonListeners, deleteChildElements, displayPosts,//addButtonListeners//b. Is an async function//c. Receives posts JSON data as a parameter//d. Call removeButtonListeners//e. Result of removeButtonListeners is the buttons returned from this function//f. Call deleteChildElements with the main element passed in as the parameter//g. Result of deleteChildElements is the return of the main element//h. Passes posts JSON data to displayPosts and awaits completion//i. Result of displayPosts is a document fragment//j. Call addButtonListeners//k. Result of addButtonListeners is the buttons returned from this function//l. Return an array of the results from the functions called: [removeButtons, main,//fragment, addButtons]
Still fails help please
const refreshPosts = async (posts) => { if (!posts){ return undefined; } let buttons = removeButtonListeners(); let myMain = deleteChildElements(document.querySelector("main")); let…
arrow_forward
PYTHON-Assume you have a file that has two columns separated by a comma. The first column contains gene accession numbers, and the second column contain their nucleotide sequence.
For example:
ABC123, AAGTCTTCCCTAAGCCC... KHJ456, TTCGGTCATACTATTC... NMG789, GCTACTCGATGCTA.... ....
The file can contain any number of rows.
Write a program that reads in this file (you can create one to test your code with, use TextEdit or Notepad) and creates a dictionary, where the keys are the accession numbers and the values are the sequences.
Print out to the screen the dictionary pairs that you created.
arrow_forward
UNIX ASSIGNMENT - IXQuestion 5 : Rename all files which contain the sub-string 'foo', replacing it with 'bar' within a given folder.
arrow_forward
Python
The program should open a specified text file, read its contents, then use the dictionary to writean encrypted version of the file’s contents to a second file. Each character in the second file should contain the code for the corresponding character in the first file.
Your program contains both encryption AND decryption functions. Please do not put them in separate programs.
Your program provides a MENU that offers the user a choice to encrypt or decrypt the file and call the respective function.
Your encoder function will use the Caesar Ciphe to translate the file
Your encoder function will first convert all input characters to upper case. This means that the output of encrypted text should be in CAPITALS. You must use a string method to convert!
Your implementation must use a dictionary
Your implementation must use string methods for converting case
arrow_forward
Can you please help me do this program, its for a class called Object Oriented Programming
arrow_forward
HMM Viterbi MLS Calcucation
Write a program named hmm_viterbi that takes two command-line arguments: a
model file name and a text file name that contains a single untagged sentence.
This program should load the given model, then use the viterbi algorithm to find
the most likely POS tag sequence for the given sentence.
arrow_forward
JavaScript Loops
Create an HTML
document called
assignment2.html
that implements a webpage that
dynamically creates (using JavaScript code) a 15X15 HTML table and displays in each
cell the (row, column) information for that cell. Allow the user to select the number of
rows and columns to redraw a new table.
Follow these guidelines to implement your assignment:
1.
Create a JavaScript file called assignment2.js and write the code for a function
that draws the table.
2.
Invoke the function when the visitor clicks on the assignment2.html page.
3.
Load the assignment2.js file at the end of the body in assignment2.html.
4.
(
10% of the grade
) Accept user input for the number of rows and columns in the
table.
5.
(
10% of the grade
) Use good web design practices to enhance visually your
html page. Add a title, picture, colors, copyright line, etc.
arrow_forward
answer in c++
arrow_forward
/**
* The file path that is IOManager read and write an object from. This
*file location will is used by @link #read()} and {@link #write(Object)}.
* This method may not return a null value. If the path is not set this should
return an empty string.
*
@param path The file location to be read and written to
}
#
*1
public string getPath();
otFoundException, IllegalArgumentE;
/*
* Reads the object saved in the file located at the path returned by {@link #getPatF
* @return An object saved in the file.
3*
@throws IOException when something goes wrong in the IO process
@throws ClassNotFoundException If the object located at the is a class that is not
* by this version of your software
@throws Illegal state Exception If the file path has not been set yet
*
*/
public T read() throws IOException, ClassNotFoundException, IllegalStateException;
/**
* Writes and object to saved at the file located at the path returned by {@link #getPath(
@param object The object saved in the file
* @throws…
arrow_forward
If wrong answer this time will downvote it
Create a class with a static main that tests the ability to resolve and print a Path:
• Create an instance of a FileSystem class.
• Resolve an instance of a Path interface from a directory path and filename.
• Print the constructed Path with System.out.println() method.
2. Create a class with a static main that tests the ability to resolve and print a Path:
• Create an array of Path class.
• Instantiate instances of Path with absolute and relative paths.
• Print the constructed elements of the array of Path class with System.out.println() method.
3. Create a class to test serialisation class that implements serializable, it should implement the following:
• A static void method that serialises an object.
• A static void method that deserializes an object.
• A static main method that tests the two by moving an object from one to the other
arrow_forward
python
arrow_forward
close all;clear all;clc;current_script = mfilename('fullpath');script_directory = fileparts(current_script);file_name0 = 'data_00.csv';file_name1 = 'data_01.csv';file_name2 = 'data_02.csv';file_name3 = 'data_03.csv';data0 = csvread([script_directory '\' file_name0]);data1 = csvread([script_directory '\' file_name1]);data2 = csvread([script_directory '\' file_name2]);data3 = csvread([script_directory '\' file_name3]);avg_data = (data1 + data2 + data3) / 3;figure;% plot (data0(:,1), data0(:,2), 'b-', 'LineWidth', 2, 'DisplayName', 'Parabolic Curve');hold on;% plot(avg_data(:, 1), avg_data(:, 2), 'k-', 'Linewidth', 1, 'DisplayName', 'Average Data Points');plot(smooth_data(:, 1), smooth_data(:, 2), 'k-', 'Linewidth', 1, 'DisplayName', 'Smoothed Data');scatter(data1(:,1), data1(:,2), 5, 'r', 'filled', 'DisplayName', 'Sample Data Points 1');scatter(data2(:,1), data2(:,2), 5, 'g', 'filled', 'DisplayName', 'Sample Data Points 2');scatter(data3(:,1), data3(:,2), 5, 'y', 'filled', 'DisplayName',…
arrow_forward
close all; clear all; clc; current_script = mfilename('fullpath'); script_directory = fileparts(current_script);file_name0 = 'data_00.csv'; file_name1 = 'data_01.csv'; file_name2 = 'data_02.csv'; file_name3 = 'data_03.csv'; data0 = csvread([script_directory '\' file_name0]); data1 = csvread([script_directory '\' file_name1]); data2 = csvread([script_directory '\' file_name2]); data3 = csvread([script_directory '\' file_name3]); avg_data = (data1 + data2 + data3) / 3; figure; % plot (data0(:,1), data0(:,2), 'b-', 'LineWidth', 2, 'DisplayName', 'Parabolic Curve');hold on; % plot(avg_data(:, 1), avg_data(:, 2), 'k-', 'Linewidth', 1, 'DisplayName', 'Average Data Points'); plot(smooth_data(:, 1), smooth_data(:, 2), 'k-', 'Linewidth', 1, 'DisplayName', 'Smoothed Data'); scatter(data1(:,1), data1(:,2), 5, 'r', 'filled', 'DisplayName', 'Sample Data Points 1'); scatter(data2(:,1), data2(:,2), 5, 'g', 'filled', 'DisplayName', 'Sample Data Points 2'); scatter(data3(:,1), data3(:,2), 5, 'y',…
arrow_forward
createDatabaseOfProfiles(String filename) This method creates and populates the database array with the profiles from the input file (profile.txt) filename parameter. Each profile includes a persons' name and two DNA sequences. 1. Reads the number of profiles from the input file AND create the database array to hold that number profiles.
2. Reads the profiles from the input file.
3. For each person in the file
1. creates a Profile object with the information from file (see input file format below).
2. insert the newly created profile into the next position in the database array (instance variable).
arrow_forward
In java create a function searchstd() that reads a search record from a text file file.txt when the function is called in main
arrow_forward
//19. selectMenuChangeEventHandler//a. Dependencies: getUserPosts, refreshPosts//b. Should be an async function//c. Automatically receives the event as a parameter (see cheatsheet)//d. Defines userId = event.target.value || 1; (see cheatsheet)//e. Passes the userId parameter to await getUserPosts//f. Result is the posts JSON data//g. Passes the posts JSON data to await refreshPosts//h. Result is the refreshPostsArray//i. Return an array with the userId, posts and the array returned from refreshPosts://[userId, posts, refreshPostsArray]
This is what I have but it fails help please
const selectMenuChangeEventHandler = async (e) => { let userId = e?.target?.value || 1; let posts = await getUserPosts(userId); let refreshPostsArray = await refreshPosts(posts); return [userId, posts, refreshPostsArray];}
arrow_forward
Given a valid file object, f, which of the following calls will return the entire contents of the file in a
scalar x?
x = f.readline()
x = f.readlines()
x = f.read()
X = read(f)
arrow_forward
Python
arrow_forward
IN PYTHON LANGUAGE
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Related Questions
- JavaScript Loops Create an HTML document called assignment2.html that implements a webpage that creates dynamically (using JavaScript code) a 15X15 HTML table and displays in each cell the (row, column) information for that cell. Follow these guidelines to implement your assignment: Create a JavaScript file called assignment2.js and write the code for a function that draws the table. Invoke the function when the visitor clicks on the original page. Load the assignment2.js file at the end of the body in assignment2.html. (10% of the grade) Accept user input for the number of rows and columns in the table. (10% of the grade) Use good web design practices to enhance visually your html page. Add a title, picture, colors, copyright line, etc.arrow_forwardPhp programming languagearrow_forwardUsing PHP Write a program using PHP programming language that reads the user name and password from a login form Login.html Login.php And then writes them in a text file(logos.txt).arrow_forward
- Use python language for a program that modifies and sorts the content of a specific csv file based on the inputted column name. The program should ask Enter filename: Enter column name to be sorted: Additionally, the csv file must be modified and no additional csv files must be created. The application will catch and display an error message "the file does not exist" if the csv file does not exist. *if possibe, do not use pandas*arrow_forwardjavascript please //20. function initPage//a. Dependencies: getUsers, populateSelectMenu//b. Should be an async function//c. No parameters.//d. Call await getUsers//e. Result is the users JSON data//f. Passes the users JSON data to the populateSelectMenu function//g. Result is the select element returned from populateSelectMenu//h. Return an array with users JSON data from getUsers and the select element//result from populateSelectMenu: [users, select] html <body> <header> <h1>Acme Blogs</h1> <form id="filterForm"> <select id="selectMenu"> <option selected>Employees</option> </select> </form> </header> <main> <p class="default-text">Select an Employee to display their posts.</p> </main> <footer> <p>Acme Company</p> </footer> <div id="mocha" class="testResults"></div>…arrow_forward//18. refreshPosts//a. Dependencies: removeButtonListeners, deleteChildElements, displayPosts,//addButtonListeners//b. Is an async function//c. Receives posts JSON data as a parameter//d. Call removeButtonListeners//e. Result of removeButtonListeners is the buttons returned from this function//f. Call deleteChildElements with the main element passed in as the parameter//g. Result of deleteChildElements is the return of the main element//h. Passes posts JSON data to displayPosts and awaits completion//i. Result of displayPosts is a document fragment//j. Call addButtonListeners//k. Result of addButtonListeners is the buttons returned from this function//l. Return an array of the results from the functions called: [removeButtons, main,//fragment, addButtons] Still fails help please const refreshPosts = async (posts) => { if (!posts){ return undefined; } let buttons = removeButtonListeners(); let myMain = deleteChildElements(document.querySelector("main")); let…arrow_forward
- PYTHON-Assume you have a file that has two columns separated by a comma. The first column contains gene accession numbers, and the second column contain their nucleotide sequence. For example: ABC123, AAGTCTTCCCTAAGCCC... KHJ456, TTCGGTCATACTATTC... NMG789, GCTACTCGATGCTA.... .... The file can contain any number of rows. Write a program that reads in this file (you can create one to test your code with, use TextEdit or Notepad) and creates a dictionary, where the keys are the accession numbers and the values are the sequences. Print out to the screen the dictionary pairs that you created.arrow_forwardUNIX ASSIGNMENT - IXQuestion 5 : Rename all files which contain the sub-string 'foo', replacing it with 'bar' within a given folder.arrow_forwardPython The program should open a specified text file, read its contents, then use the dictionary to writean encrypted version of the file’s contents to a second file. Each character in the second file should contain the code for the corresponding character in the first file. Your program contains both encryption AND decryption functions. Please do not put them in separate programs. Your program provides a MENU that offers the user a choice to encrypt or decrypt the file and call the respective function. Your encoder function will use the Caesar Ciphe to translate the file Your encoder function will first convert all input characters to upper case. This means that the output of encrypted text should be in CAPITALS. You must use a string method to convert! Your implementation must use a dictionary Your implementation must use string methods for converting casearrow_forward
- Can you please help me do this program, its for a class called Object Oriented Programmingarrow_forwardHMM Viterbi MLS Calcucation Write a program named hmm_viterbi that takes two command-line arguments: a model file name and a text file name that contains a single untagged sentence. This program should load the given model, then use the viterbi algorithm to find the most likely POS tag sequence for the given sentence.arrow_forwardJavaScript Loops Create an HTML document called assignment2.html that implements a webpage that dynamically creates (using JavaScript code) a 15X15 HTML table and displays in each cell the (row, column) information for that cell. Allow the user to select the number of rows and columns to redraw a new table. Follow these guidelines to implement your assignment: 1. Create a JavaScript file called assignment2.js and write the code for a function that draws the table. 2. Invoke the function when the visitor clicks on the assignment2.html page. 3. Load the assignment2.js file at the end of the body in assignment2.html. 4. ( 10% of the grade ) Accept user input for the number of rows and columns in the table. 5. ( 10% of the grade ) Use good web design practices to enhance visually your html page. Add a title, picture, colors, copyright line, etc.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,