Which of the following method is not associated to handling the memory ________________ a. NPN_MemFlush b. NPN_MemAlloc c. NPN_MemFree d. NPP_HandleEvent
Q: File Assignments Menu Create Schedule File Create Report File Exit Please enter your choice:…
A: PROGRAM import pathlibfile = pathlib.Path("schedule.txt")def schedule():#read class name, class…
Q: Which of the following is TRUE about a class? Oa class created in one source code file can be used…
A: A class is a collection of items with similar characteristics. It serves as a model or blueprint…
Q: Kivy
A: import kivy import random from kivy.app import App from kivy.uix.button import Button from…
Q: arameters (integers) and displays the median number. If the number of parameters is not three, it…
A: Write a shell script that takes three parameters (integers) and displays the median number. If the…
Q: Based on what you took thus far in this chapter, your boss(me) needs you to create an application…
A: Given data, Create an application that will that accept a student’s 2019 Spring schedule thru input.…
Q: Which of the following is a method of the Object class? O a. super) O b. encrypt( O c. equals) O d.…
A: Which of the following is a method of the Object class? a.) super() b.) encrypt c.) equals() d.)…
Q: The script in the bash shell of Linux Write a calculator script using if and elif statements…
A: #!/bin/bash #bash calculator if [ "$1" = "add" ]; then res=$(($2 + $3)) echo$2 + $3 = $res elif […
Q: -Which of the following commands are used for external input? Osetlocale Ofor Ocout Oprintf Ocin…
A: Answer 1: a). set locale: The setlocale() function is used to set or query the program's current…
Q: Your client owns a bookstore, and you will find attached; a text file called Samsbooks.txt with…
A: Answer is given below.
Q: Problem Write code that when executed in PowerShell, will satisfy the following requirements: •…
A: We have to write and complete the code for PowerShell to display the disk size in the formatted…
Q: Which of the following is not a runtime exception in java? O NullPointerException O…
A: INTRODUCTION: In the given below statement, we are asked one question in which we are given with one…
Q: Q. Create a scientific calculator on Console Application C# containing following functions using OOP…
A: Problem Description: Create a scientific calculator on Console Application C# containing the…
Q: rom url [{"id":"xxxxxxxxxxxxx","text":"Untitled folder","textCount":0}] How to get "id" by using…
A: Lets see the solution.
Q: How do you make this into a flowchart? //interface cout > Applicant; cout > Password;…
A: A flowchart depicts the individual phases of a process in a sequential manner. It is a…
Q: 1. Create a falder named Lastvame_Firstame in your local drive. (ex. Reyes_Mark) 2. Lsing Netleans,…
A: Solution: Given,
Q: Which of the following code is weed to check the if the web worker object is not exists it will…
A: A web worker is basically a Javascript that operates in the background, separately of other scripts,…
Q: Create an application named ConvertMilesToKilometers whose Main() method prompts a user for a number…
A: C# CODE TO COPY:- using System.IO;using System; class ConvertMilesToKilometers{static void…
Q: Which of the following is a build-in data structure is the library Bokeh? O a RowDataSource O b.…
A: Let's see the solution in the next steps
Q: Hi just need the following code of each method which is at page 3. The specifications on what to do…
A: As you have posted question with multiple parts, we are solving the first 3 parts . The code for…
Q: #phyton ''' Please help me to solve this error. Error: Traceback (most recent call last): File…
A: Error comes due this line print('invalid input! Must be posative')z = int(input('Enter 3rd posative…
Q: QUESTION 23 Which statement copies the contents of sw to userlnput? StringWriter sw = new…
A: sw contains the string and pw prints them
Q: Which of the following members take * :values in test object Class Test (int xyz,; Static int xyz2;…
A: The above question involves the class and the members and methods that are created in the class.…
Q: en the 2 class files below, if there is a compiling (syntax) error found at rtain line, what…
A: Program Approach/Description: 1- There are two packages dataBase and accounting. 2- The employee…
Q: Which java keyword is used to refer a class’s hidden data fields? super static void this
A: Task :- Choose the correct option for given question.
Q: Private Sub btnM ileage_Click(By Val sender As System.Object, ByVal e As System.Eventargs) Handles…
A: The difference between subprocedure and function is that the subprocedures do not return any value…
Q: WHAT IS THE OUTPUT OF THE FOLLOWING CODE? #include using namespace std; class secretType {…
A: According to the asked question, the solution is given below with a proper explanation.
Q: Private Subbinlola_Click(ByVal sender As SystemObject, ByVal e As System. EventArga) Handles btni…
A: Objective: A code segment is provided and it includes GUI components like buttons and labels. The…
Q: Which of the following types of operation does NOT alter the state of an object? O a. Iterator O b.…
A: Answer: c
Q: The calculator should have the features and functions similar to the calculator found in Windows OS.…
A: Solution:-- 1)The given question has required for the solution which is to be provided with the…
Q: Which of the following is TRUE statement? O a. The javac command compiles a java file into a .class…
A: Which of the following is TRUE statement? a. The javac command compiles a java file into a class…
Q: I am looking for the following in your program: Python GUI-based MP3 Player Project #3: Python…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
Q: which of the following statement is True java regarding creation script Array Object All of these…
A: All of this
Q: Create a folder named LastName_FirstName on your local drive. (ex. Reyes_Mark) Using NetBeans,…
A: Use add method to add the elements to priority queue and then use poll to remove the element from…
Q: Which of the following is true about using color with the classes in the Graphics.py module? OYou…
A: There are several "canned" color options available, specified as a string such as 'RED', 'BLUE' and…
Q: Which of the following declarations does not follow the Java conventions? Select 4 correct…
A: The following declarations is java conventions a. double costValue b. double costvalue c. int…
Q: -Which of the following commands are used for external input? Oint Ofor Ofloat Oscanf Oprintf -Which…
A: C programming is a general-purpose programming language and it is called functional programming…
Q: Create an application that calculates and displays the starting and ending monthly balances for a…
A: import java.text.DecimalFormat; import java.util.Scanner; class Console{ public static void…
Q: Which Java loop is appropriate to read all integer numbers from a file containing only integer…
A: In step 2, you will get the answer.
Q: What will be the output of the following code? Private Sub Form1_Load(sender As Object, e As…
A: - The question is to direct tye correct output of the provided code. - In the provided code the…
Q: Which of the following functions allocates multiple blocks of memory, each block of the same size?…
A: The Answer is
Q: private OnlineStudent readOnlineStudent(Scanner pIn) { String id = pIn.next(); String lname =…
A: We need to rectify the errors in the given code.
Q: Which one of the following represents a class in Python? O tuple O str O All of them O int O list
A: GIVEN Which one of the following represents a class in Python?
Q: You are given an array of words usually found in spam messages: private static final String []…
A: Answer: I have written code in JAVA programming language
Q: Which of the following is a method of the Object class? O a. super) O b. encrypt) O c. equals) O d.…
A: Answer is in Below Steps
Q: Assume the following values are stored at the indicated memory addresses and registers: Address…
A: addq - used to add the content of destination register with the content of source register and store…
Q: You are required to create a console application for a local minicipality that will allow a user to…
A: PROGRAM CODE: import java.util.*; // import java utility package public…
Q: In the python code below, Allow the user to chose which manner they want the results displayed. A…
A: Answer is given below .
Q: Which is the correct format to create object for character wrapper class with value ʼA'? a. char c =…
A: Answer: c. Character c = new Character('A');
Q: Create an application that lets you enter a new customer or a new employee. Console Welcome to the…
A: Create Class Person and its methods. Then create two classes customer and Employee which extends…
Q: Which of the following is Java archiver? O a. javadoc O b. jre O c. javac O d. jar
A: In the given question, We have to choose which one is java archiver in Javadoc, jre , javac and jar
Which of the following method is not associated to handling the memory ________________
a. NPN_MemFlush
b. NPN_MemAlloc
c. NPN_MemFree
d. NPP_HandleEvent
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Java OOP Write a complete address book maintenance application. The user of the program has four options: Add a new person, delete a person, modify the data of a person, and search for a person by giving the name. Use the AddressBook class, either the original one from the chapter or the modified one from the previous exercises. You have to decide how to allow the user to enter the values for a new person, display person information, and so forth.Build an application for a car rental company. It should offer the following features:• Maintain a customer database in a file:o Register / add new customers. Customer information should include▪ Customer ID number▪ Name▪ Phone numbero Search customer database by:▪ Customer ID number▪ Name▪ Phone numberAnd print out the matching records• Maintain a database in a file:o Add a new vehicle to the fleet. Vehicle information should include▪ Model year▪ Make▪ Model name▪ License plate number▪ Customer number who is currently renting vehicleo Delete a vehicle from the fleeto Rent a vehicle to a registered customero Receive rented vehicle back from customero Search vehicle database by any field:▪ Model year + Make + Model name▪ License plate number▪ Customer number who is currently renting vehicle pls u have to use FILE to solve this proplemAdd preconditions to the methods __getitem__ and __setitem__. The precondition of each method is 0 <= index < size(). Be sure to raise an IndexError exception if the precondition is not satisfied. To test your program run the main() method in the arrays.py file. Your program's output should look like the following: Physical size: 10 Logical size: 0 Items: [None, None, None, None, None, None, None, None, None, None] Traceback (most recent call last): File ".solution/arrays.py", line 69, in <module> main() File ".solution/arrays.py", line 66, in main print(a[0]) File ".solution/arrays.py", line 45, in __getitem__ raise IndexError("Array index out of bounds") IndexError: Array index out of bounds
- LabProgram.java:8: error: class HorseDatabase is public, should be declared in a file named HorseDatabase.java public class HorseDatabase { ^ 1 error Complete the Java program to create a Horse table, insert one row, and display the row. The main program calls four methods: createConnection() creates a connection to the database.createTable() creates the Horse table.insertHorse() inserts one row into Horse.selectAllHorses() outputs all Horse rows.Complete all four methods. Method parameters are described in the template. Do not modify the main program. The Horse table should have five columns, with the following names, data types, constraints, and values: Name Data type Constraints ValueId integer primary key, not null 1Name text 'Babe'Breed text 'Quarter horse'Height double 15.3BirthDate text '2015-02-10'The program output should be: All horses:(1, 'Babe', 'Quarter Horse', 15.3, '2015-02-10')This lab uses the SQLite database…Write a procedure named DumpMemory that encapsulates the DumpMem procedure in theIrvine32 library. Use declared parameters and the USES directive. The following is anexample of how it should be called: INVOKE DumpMemory, OFFSET array, LENGTHOFarray, TYPE arrayIf 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
- from dateutil import parserimport datetimefrom datetime import datetimeusernames = []passwords = [] def reg_user():"""Return for registering new user"""withopen('user.txt', 'a') asfile1: iflogin_username == "admin": new_username = input("Enter a username: ") whilenew_usernameinusernames:print("This username already exists.")new_username = input("Enter a username: ") new_password = input("Enter a password: ")confirm_password = input("Re-enter the password: ")whileconfirm_password != new_password:print("Passwords do not match.")new_password = input("Enter your password: ")confirm_password = input("Re-enter your password: ")else:print("Welcome ", new_username) whilenew_passwordinpasswords:print("This password already exists.")new_password = input("Enter a password: ")confirm_password = input("Re-enter the password: ") else:print("User not authorised to register a new user.")return file1.writelines(f"\n{new_username}, {new_password}") def add_task():"""Return for adding…Develop a program that will do the following using Java and Javaclasses of Filewriter and Arraylist: The program has the interface[A] Add[D] Delete[U] Update[S] Search[X] Exit Select Operation: A You are about to add a user. Enter the First name:Enter the Last name:Enter the username:Enter password: The user has been successfully added. Do you wish to do another operation? [Y/N]: Y ---------------------------------------------------------------------------------------------- [A] Add[U] Update[S] Search[D] Delete[X] Exit Select Operation: U You are about to update user information. Search ID: 3 User information:First name: GeraldLast name: MorenoUsername: igeraldPassword: egerald Enter new username: asxsEnter new password: erdasdfr Username and Password have been updated successfully. Do you wish to do another operation? [Y/N]: Y ---------------------------------------------------------------------------------------------------------- [A] Add[U] Update[S] Search[D] Delete[X] Exit Select…In java Browse Project Gutenberg (https://www.gutenberg.org/) for plain text versions of one or more works of literature of your choosing. Write a program that repeatedly searches a file for a target word or phrase.• Allow the user to supply the name of the file to search by means of a command-line argument; if the user does not supply a command line argument, ask for a file name interactively.• You may use either an array or an ArrayList to store each line in the file; but if you use an array, you’ll have to determine the array size (number of lines) before allocating the array. There are several ways to do this.• Report how many lines were read from the file.• Search for either individual words or phrases (Hint: use the .contains method, it’ll work for either a word or a phrase)• Show both the line number and the line itself for each line that contains the search target entered by the user (you may count the first line in the file as line 0).• If a search word is part of a larger…
- A reference parameter differs from an output parameter in that a reference parameter ______________________ but an output parameter does not. a. occupies a unique memory address b. must be a simple data type c. receives a memory address d. requires an initial valueAssume array of 5 dynamic objects has been created (dynarrObj[5]). Which of the following is the correct way to deallocate the object which resides in the 2nd location of the array. Select one: a.deletel] dynarrObj; O b.delete dynarrObj[2]; c.delete[1] dynarrObj; d.delete dynarrObj[1];__________ is a process that periodically runs, removing all unreferenced objects from memory. a. Systematic reallocation b. Memory cleanup c. Garbage collection d. Object maintenance