Java internship start on 5 May
Interview is started from 4
Kindly be ready for Interview with full preparation.
Who will qualify Interview,
He or she will get industrial training in Software Company campus
Interview is started from 4
Kindly be ready for Interview with full preparation.
Who will qualify Interview,
He or she will get industrial training in Software Company campus
DOC-20240428-WA0017_240428_223542.pdf
554.2 KB
Java Interview Questions for 4 May that is scheduled for
from tkinter import *
# Copyright : @vanienterprises458
import time
import random
from datetime import date
#price1,price2,price3,price4,price5,price6,price7,price8,
def price():
roo = Tk()
roo.geometry("600x280+0+0")
roo.title("Price List")
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="ITEM",
fg="black", bd=5)
lblinfo.grid(row=0, column=0)
lblinfo = Label(roo, font=('aria', 15,'bold'), text="_____",
fg="white", anchor=W)
lblinfo.grid(row=0, column=2)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="PRICE",
fg="black", anchor=W)
lblinfo.grid(row=0, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Drink",
fg="#ED420B", anchor=W)
lblinfo.grid(row=1, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="10",
fg="#ED420B", anchor=W)
lblinfo.grid(row=1, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Burger King",
fg="#ED420B", anchor=W)
lblinfo.grid(row=2, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="30",
fg="#ED420B", anchor=W)
lblinfo.grid(row=2, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Cherry",
fg="#ED420B", anchor=W)
lblinfo.grid(row=3, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="15",
fg="#ED420B", anchor=W)
lblinfo.grid(row=3, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Nacho Fries",
fg="#ED420B", anchor=W)
lblinfo.grid(row=4, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="20",
fg="#ED420B", anchor=W)
lblinfo.grid(row=4, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Pizza",
fg="#ED420B", anchor=W)
lblinfo.grid(row=5, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="30",
fg="#ED420B", anchor=W)
lblinfo.grid(row=5, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Biscuits",
fg="#ED420B", anchor=W)
lblinfo.grid(row=6, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="10",
fg="#ED420B", anchor=W)
lblinfo.grid(row=6, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="10",
fg="#ED420B", anchor=W)
lblinfo.grid(row=7, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Roll",
fg="#ED420B", anchor=W)
lblinfo.grid(row=7, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="10",
fg="#ED420B", anchor=W)
lblinfo.grid(row=8, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Tea",
fg="#ED420B", anchor=W)
lblinfo.grid(row=8, column=0)
roo.mainloop()
def clear():
text.delete(1.0,END)
def quit_fun():
root.destroy()
def total():
price1=int(dringE.get())
price2=int(burger_kingE.get())
price3=int(cherry.get())
price4=int(nacho_fries.get())
price5=int(pizza.get())
price6=int(biscuits.get())
price7=int(roll.get())
price8=int(tea.get())
#p1,p2,p3 etc means Price Per Person
p1=price1*10
p2=price1*30
p3=price1*25
p4=price1*20
p5=price1*30
p6=price1*10
p7=price1*10
p8=price1*5
#Cost
cost=p1+p2+p3+p4+p5+p6+p7+p8
display=cost
p1_label["text"]=display
#Service Tax
service_charge=cost/20
service_display=service_charge
p2_label["text"]=service_display
#Tax
tax_charge=int(cost/3)
# Copyright : @vanienterprises458
import time
import random
from datetime import date
#price1,price2,price3,price4,price5,price6,price7,price8,
def price():
roo = Tk()
roo.geometry("600x280+0+0")
roo.title("Price List")
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="ITEM",
fg="black", bd=5)
lblinfo.grid(row=0, column=0)
lblinfo = Label(roo, font=('aria', 15,'bold'), text="_____",
fg="white", anchor=W)
lblinfo.grid(row=0, column=2)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="PRICE",
fg="black", anchor=W)
lblinfo.grid(row=0, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Drink",
fg="#ED420B", anchor=W)
lblinfo.grid(row=1, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="10",
fg="#ED420B", anchor=W)
lblinfo.grid(row=1, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Burger King",
fg="#ED420B", anchor=W)
lblinfo.grid(row=2, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="30",
fg="#ED420B", anchor=W)
lblinfo.grid(row=2, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Cherry",
fg="#ED420B", anchor=W)
lblinfo.grid(row=3, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="15",
fg="#ED420B", anchor=W)
lblinfo.grid(row=3, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Nacho Fries",
fg="#ED420B", anchor=W)
lblinfo.grid(row=4, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="20",
fg="#ED420B", anchor=W)
lblinfo.grid(row=4, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Pizza",
fg="#ED420B", anchor=W)
lblinfo.grid(row=5, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="30",
fg="#ED420B", anchor=W)
lblinfo.grid(row=5, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Biscuits",
fg="#ED420B", anchor=W)
lblinfo.grid(row=6, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="10",
fg="#ED420B", anchor=W)
lblinfo.grid(row=6, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="10",
fg="#ED420B", anchor=W)
lblinfo.grid(row=7, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Roll",
fg="#ED420B", anchor=W)
lblinfo.grid(row=7, column=0)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="10",
fg="#ED420B", anchor=W)
lblinfo.grid(row=8, column=3)
lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Tea",
fg="#ED420B", anchor=W)
lblinfo.grid(row=8, column=0)
roo.mainloop()
def clear():
text.delete(1.0,END)
def quit_fun():
root.destroy()
def total():
price1=int(dringE.get())
price2=int(burger_kingE.get())
price3=int(cherry.get())
price4=int(nacho_fries.get())
price5=int(pizza.get())
price6=int(biscuits.get())
price7=int(roll.get())
price8=int(tea.get())
#p1,p2,p3 etc means Price Per Person
p1=price1*10
p2=price1*30
p3=price1*25
p4=price1*20
p5=price1*30
p6=price1*10
p7=price1*10
p8=price1*5
#Cost
cost=p1+p2+p3+p4+p5+p6+p7+p8
display=cost
p1_label["text"]=display
#Service Tax
service_charge=cost/20
service_display=service_charge
p2_label["text"]=service_display
#Tax
tax_charge=int(cost/3)
tax_display=tax_charge
p3_label["text"]=tax_charge
#Sub Total
sub_total=p1+p2+p3+p4+p5+p6+p7+p8
sub_display=sub_total
p4_label["text"]=sub_display
#Total
total=display+service_charge+tax_charge
total_display=total
p5_label["text"]=total_display
#Order Number
num=random.randint(1,10000)
order_label["text"]=num
def reset():
global total
dringE.delete(0,END)
burger_kingE.delete(0,END)
cherry.delete(0,END)
nacho_fries.delete(0,END)
pizza.delete(0,END)
biscuits.delete(0,END)
roll.delete(0,END)
tea.delete(0,END)
p1_label["text"]=""
p2_label["text"]=""
p3_label["text"]=""
p4_label["text"]=""
p5_label["text"]=""
order_label["text"]=""
def clock():
current=time.strftime("%H:%M:%S")
label1 ["text"]=current
root.after(1000,clock)
root=Tk()
root.geometry("1000x700")
root.minsize(1000,700)
root.maxsize(1000,700)
heading1=Label(root,text="Hotel Management",font="arial 30 bold",fg="#fc5a03")
heading2=Label(root,text="@python.coder_ Restaurant ",font="arial 18 bold",fg="#fc5a03")
frame1=Frame(root,height="420",width="330",bd=10,bg="#ED420B",highlightthickness=1,relief=SUNKEN)
frame1.place(x=40,y=140)
frame2=Frame(root,height="420",width="330",bd=10,bg="#33A9CE",highlightthickness=1,relief=SUNKEN)
frame2.place(x=380,y=140)
#Button Frame
frame3=Frame(root,height="100",width="670",bd=10,bg="#ED420B",highlightthickness=1,relief=SUNKEN)
frame3.place(x=40,y=565)
cal_frame=Frame(root,height="500",width="450",bd=10,highlightthickness=1,relief=SUNKEN)
cal_frame.place(x=750,y=150)
text_frame=Frame(root,height="100",width="100")
text_frame.place(x=1000,y=50)
frame_time=Frame(root,height="200",width="200",bd=10,highlightthickness=1,relief=SUNKEN)
frame_time.place(x=100,y=50)
#Price Frame
p1_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
p1_label.place(x=200,y=80)
p2_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
p2_label.place(x=200,y=120)
p3_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
p3_label.place(x=200,y=160)
p4_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
p4_label.place(x=200,y=200)
p5_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
p5_label.place(x=200,y=240)
order_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
order_label.place(x=200,y=40)
text=Text(root,height=10,width=25,bd=10,font="arial 10")
text.insert(END, "Enter Text Here")
text.place(x=750,y=500)
#Time
label1=Label(frame_time,font="article 30",bg="black",fg="#ED420B")
label1.grid(row=0,column=0)
clock()
#Buttons
#Frame 3
new_window=Button(frame3,text="Price",command=price,font="arial 15 bold",bd=10)
new_window.place(x=80,y=10)
total_btn=Button(frame3,text="Total",command=total,font="arial 15 bold",bd=10)
total_btn.place(x=210,y=10)
reset_btn=Button(frame3,text="Reset",command=reset,font="arial 15 bold",bd=10)
reset_btn.place(x=350,y=10)
quit_btn=Button(frame3,text="Quit",command=quit_fun,font="arial 15 bold",bd=5)
quit_btn.place(x=500,y=10)
clear=Button(root,text="Clear",command=clear,font="arial 10 bold",bd=10)
clear.place(x=760,y=450)
#Payment_Entry_Created
#Frame_2
order_number=Label(frame2,text="Order Number",font="arial 12 bold",bg="#33A9CE")
cost_label=Label(frame2,text="Cost",font="arial 12 bold ",bg="#33A9CE")
service_tax=Label(frame2,text="Service Cost",font="arial 12 bold",bg="#33A9CE")
tax=Label(frame2,text="Tax",font="arial 12 bold ",bg="#33A9CE")
sub_total=Label(frame2,text="Sub Total",font="arial 12 bold",bg="#33A9CE")
total=Label(frame2,text="Total",font="arial 12 bold ",bg="#33A9CE")
#Payment_Entry_Close
#Frame_2
order_number.place(x=10,y=40)
cost_label.place(x=10,y=80)
service_tax.place(x=10,y=120)
p3_label["text"]=tax_charge
#Sub Total
sub_total=p1+p2+p3+p4+p5+p6+p7+p8
sub_display=sub_total
p4_label["text"]=sub_display
#Total
total=display+service_charge+tax_charge
total_display=total
p5_label["text"]=total_display
#Order Number
num=random.randint(1,10000)
order_label["text"]=num
def reset():
global total
dringE.delete(0,END)
burger_kingE.delete(0,END)
cherry.delete(0,END)
nacho_fries.delete(0,END)
pizza.delete(0,END)
biscuits.delete(0,END)
roll.delete(0,END)
tea.delete(0,END)
p1_label["text"]=""
p2_label["text"]=""
p3_label["text"]=""
p4_label["text"]=""
p5_label["text"]=""
order_label["text"]=""
def clock():
current=time.strftime("%H:%M:%S")
label1 ["text"]=current
root.after(1000,clock)
root=Tk()
root.geometry("1000x700")
root.minsize(1000,700)
root.maxsize(1000,700)
heading1=Label(root,text="Hotel Management",font="arial 30 bold",fg="#fc5a03")
heading2=Label(root,text="@python.coder_ Restaurant ",font="arial 18 bold",fg="#fc5a03")
frame1=Frame(root,height="420",width="330",bd=10,bg="#ED420B",highlightthickness=1,relief=SUNKEN)
frame1.place(x=40,y=140)
frame2=Frame(root,height="420",width="330",bd=10,bg="#33A9CE",highlightthickness=1,relief=SUNKEN)
frame2.place(x=380,y=140)
#Button Frame
frame3=Frame(root,height="100",width="670",bd=10,bg="#ED420B",highlightthickness=1,relief=SUNKEN)
frame3.place(x=40,y=565)
cal_frame=Frame(root,height="500",width="450",bd=10,highlightthickness=1,relief=SUNKEN)
cal_frame.place(x=750,y=150)
text_frame=Frame(root,height="100",width="100")
text_frame.place(x=1000,y=50)
frame_time=Frame(root,height="200",width="200",bd=10,highlightthickness=1,relief=SUNKEN)
frame_time.place(x=100,y=50)
#Price Frame
p1_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
p1_label.place(x=200,y=80)
p2_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
p2_label.place(x=200,y=120)
p3_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
p3_label.place(x=200,y=160)
p4_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
p4_label.place(x=200,y=200)
p5_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
p5_label.place(x=200,y=240)
order_label=Label(frame2,font="arial 14 bold ",bg="#33A9CE")
order_label.place(x=200,y=40)
text=Text(root,height=10,width=25,bd=10,font="arial 10")
text.insert(END, "Enter Text Here")
text.place(x=750,y=500)
#Time
label1=Label(frame_time,font="article 30",bg="black",fg="#ED420B")
label1.grid(row=0,column=0)
clock()
#Buttons
#Frame 3
new_window=Button(frame3,text="Price",command=price,font="arial 15 bold",bd=10)
new_window.place(x=80,y=10)
total_btn=Button(frame3,text="Total",command=total,font="arial 15 bold",bd=10)
total_btn.place(x=210,y=10)
reset_btn=Button(frame3,text="Reset",command=reset,font="arial 15 bold",bd=10)
reset_btn.place(x=350,y=10)
quit_btn=Button(frame3,text="Quit",command=quit_fun,font="arial 15 bold",bd=5)
quit_btn.place(x=500,y=10)
clear=Button(root,text="Clear",command=clear,font="arial 10 bold",bd=10)
clear.place(x=760,y=450)
#Payment_Entry_Created
#Frame_2
order_number=Label(frame2,text="Order Number",font="arial 12 bold",bg="#33A9CE")
cost_label=Label(frame2,text="Cost",font="arial 12 bold ",bg="#33A9CE")
service_tax=Label(frame2,text="Service Cost",font="arial 12 bold",bg="#33A9CE")
tax=Label(frame2,text="Tax",font="arial 12 bold ",bg="#33A9CE")
sub_total=Label(frame2,text="Sub Total",font="arial 12 bold",bg="#33A9CE")
total=Label(frame2,text="Total",font="arial 12 bold ",bg="#33A9CE")
#Payment_Entry_Close
#Frame_2
order_number.place(x=10,y=40)
cost_label.place(x=10,y=80)
service_tax.place(x=10,y=120)