CodeCraft Essentials – Telegram
CodeCraft Essentials
230 subscribers
187 photos
38 videos
49 files
162 links
Download Telegram
📝Now we will proceed to some exam question for practice and feel free to ask any questions.
consider the following program:

public class TestProg{
public static void main(String[] args){
int choice;
Scanner sc = new Scanner(System.in);
System.out.println("enter choice: ");
choice = sc.nextInt();
switch(choice){
case 1:
System.out.println("Gum ");
case 2:
System.out.println("Coke");
break;
default:
System.out.println("Error");
}
System.out.println("Goodbye");
}
}


If this program runs and the user enters 1 when prompt for choice so which messages will be displayed by the program before terminating?
Consider a class, RecordAlbum, which has three attributes: the artist name (stored as a String), the record noscript (stored as a String) and the price (stored as a double). The constructor for this class takes values for the artist name, noscript and price respectively. Now consider the following array declarationarray declaration

RecordAlbum[] store new RecordAlbum [100);


Which one of the following instructions would add the album "I love Java", by the artists "Charatan & Kans" at a price of £12.99 into the 10th position in the array?
👍1
Hello everyone ✋🏻
Today, we will be advancing to Lab 6 I strongly urge each of you to allocate the next 15 minutes to independently engage with the question and work on it.
Today there won't be exam questions practice see you all tomorrow✌️
👋Hey, everyone!

Just a friendly reminder that our session is starting in just 10 minutes. Please make sure you're ready with your working environment set up for the lab. Let's make the most of this session together and have a great time! 😊
Today, we will be practicing lab 7. I strongly urge each of you to allocate the next 15 minutes to independently engage with the question and work on it.
👍1
📢 Attention everyone! We have an exciting announcement to make. We will be hosting a two-day online Google Classroom session that you won't want to miss!

On Thursday, we will be focusing on Methods, covering important topics such as post-increment and pre-increment, as well as both single and double dimensional Arrays. This session will provide valuable insights and help you strengthen your understanding of these concepts.

Then, on Friday, we will dive into the fascinating world of Object-Oriented Programming (OOP). We'll explore topics such as abstraction and constructors. This session will be especially beneficial for those of you who have an OOP mid-exam on Saturday.

Make sure to invite your friends! These sessions are designed to be informative and will undoubtedly enhance your knowledge in these areas.

Mark your calendars and join us for this incredible learning opportunity. We can't wait to see you there!
5👍1
We kindly request your input regarding the most suitable timing for everyone. Please take a moment to select the time that works best for you. Your preference will help us determine the most convenient schedule for all participants.
Anonymous Poll
12%
12:00 local time (6:00 PM)
21%
2:00 mata
71%
3:00 mata
Good afternoon everyone👋, based on the maximum vote on the poll the google classroom session will be held at 3:00mata(tonight) see you all on the session.
Hello everyone👋 our today's online session will start in a minute join the google meet using the link below:
Dear participants, we sincerely hope today's session proved to be valuable. We made an effort to address significant subjects, including post-increment and pre-increment operations, single and double dimensional arrays, and methods.

Looking ahead to tomorrow's session, we plan to focus on solving previous year's exam questions. We will share these questions within this group and collectively work through them together. We look forward to seeing all of you in tomorrow's session.
4
Hello everyone👋,
Our today's google online session will be held at 3:00mata(tonight) see you all on the session.