Kisi-kisi Soal UTS dan UAS Elektronika Beserta Jawaban

SOAL A 1) Berikut ini yang termasuk komponen elektronika dengan jenis komponen pasif yaitu ....

Kisi-kisi Soal UTS dan UAS Sistem Terdistribusi Beserta Jawaban

SOAL A 1. Berikut ini yang merupakan karakteristik dari definisi sistem terdistribusi adalah ....

Remove Bios Password and Harddissk (HDD) Laptop

I think to remove the bios password on an average PC is already can, although without having to memorize the password. the system jumpers or removing battery bios. ever see a supervisor, admin, system, HDD, bios, setup password?

Memperbaiki Kick Starter Motor Matic

Motor Matic is a motor that is the easiest to use and most in our homeland. please note that the motor also takes care of very sensitive, just like a computer that also takes care of sensitive anyway.

Gejala Kerusakan Mesin Air Submersible Metabo

Mesin Air Submersible atau yang sering disebut kebanyakan orang (satelit) ini sangat bagus, dengan sistemnya yang canggih dan fleksible. tipe mesin yang berbasis kerja di dalam tanah dan hanya menggunakan satu pipa ini, sangat berguna untuk anda yang memiliki banyak lumpur atau air kuning setelah pengeboran.

Showing posts with label Sistem Informasi. Show all posts
Showing posts with label Sistem Informasi. Show all posts

16 October 2025

Complete Git & GitHub Tutorial for Beginners: Managing Code Made Easy

In the modern programming world, Git and GitHub have become essential tools developers use to manage and share code. However, for those just starting, these tools might seem intimidating. Don't worry! This article will provide a comprehensive Git and GitHub tutorial from the basics to being ready for real-world projects.

What Are Git and GitHub?

Git: The Intelligent Version Control System

Git is a version control system that functions to track every change made to your program's code. Imagine Git as a time machine for your code—you can view the change history, revert to previous versions, or work on several features simultaneously without fear of breaking the main code.

Simple analogy: Git is like the "history" feature in Google Docs, but much more powerful and specifically designed for program code.

GitHub: The Social Platform for Programmers

GitHub is a cloud-based platform that stores code managed with Git. If Git is the engine, then GitHub is the garage—a place to store, share, and collaborate with other developers.

Fundamental Differences: Git vs. GitHub

GitGitHub
Local version control system on your computerOnline hosting platform
Installed on your personal computerAccessed via a website
Manages code changesStores and shares code
Free and open-sourceFree for public projects

Initial Steps to Start with Git & GitHub

1. Install Git on Your Computer

  • Download Git from git-scm.com

  • Install with default settings (according to your operating system)

  • Verify the installation by opening a terminal/CMD and typing: git --version

2. Create a GitHub Account

  • Visit github.com

  • Sign up with your email, username, and password

  • Verify your email address

3. Initial Git Configuration

After installation, perform the basic configuration:

bash
git config --global user.name "your-name"
git config --global user.email "your-email@gmail.com"

Practical Guide to Using Git & GitHub

How to Create a Repository on GitHub

  1. Log in to your GitHub account.

  2. Click the "New" or "+" button in the top right corner.

  3. Enter a repository name (e.g., my-first-project).

  4. Add a description (optional).

  5. Choose Public (free) or Private.

  6. Check the box for "Add a README file".

  7. Click "Create repository".

Upload Your First Project to GitHub

bash
# Navigate to your project folder
cd path/to/project/folder

# Initialize a Git repository
git init

# Add all files to the staging area
git add .

# Create the first commit
git commit -m "Initial commit - first project"

# Connect to your GitHub repository
git remote add origin https://github.com/username/repository-name.git

# Upload to GitHub
git push -u origin main

Clone an Existing Repository

bash
# Copy the repository URL from GitHub
git clone https://github.com/username/repository-name.git

Key Concepts in Git

1. Branch: Code Branches for Experimentation

Branches allow you to work on new features without interfering with the main code.

bash
# Create a new branch
git branch new-feature

# Switch to that branch
git checkout new-feature

# Or, create and switch simultaneously
git checkout -b new-feature

2. Commit: Snapshots of Your Changes

Each commit is a snapshot of your code changes.

bash
# Check the status of changes
git status

# Add a specific file
git add filename.html

# Or, add all files
git add .

# Create a commit with a descriptive message
git commit -m "Add user login feature"

3. Push & Pull: Synchronizing with GitHub

bash
# Upload local changes to GitHub
git push origin branch-name

# Download the latest changes from GitHub
git pull origin branch-name

Development Workflow with Git

Standard Workflow

  1. Pull the latest changes from the main branch.

  2. Create a new branch for the feature you're working on.

  3. Commit changes regularly.

  4. Push the branch to GitHub.

  5. Create a Pull Request to merge it into the main branch.

  6. Review code and merge.

Example Daily Workflow

bash
# Start the day by updating to the latest code
git pull origin main

# Create a branch for today's feature
git checkout -b payment-feature

# Work and commit periodically
git add .
git commit -m "Implement bank transfer payment method"

# Stash work temporarily (if you need to switch context)
git stash

# Upload to GitHub
git push origin payment-feature

Benefits of Using GitHub in Your Programming Career

1. A Living Digital Portfolio

GitHub serves as a digital CV that showcases your skills and contributions.

2. Efficient Team Collaboration

  • Multiple developers can work on the same project.

  • Track changes and see who did what.

  • Integrated code review.

3. Backup and Security

Your code is safely stored in the cloud, so you don't have to worry about loss if your computer fails.

4. Continuous Integration/Deployment

With GitHub Actions, you can automate testing and deployment.

Git & GitHub Best Practices

Good Commit Messages

❌ Badfix bug
✅ GoodFix email input validation on registration form

Branch Naming Convention

  • feature/login-authentication

  • bugfix/fix-null-pointer-exception

  • hotfix/critical-security-patch

Commit Regularly

Avoid bundling large changes into a single commit. Small, frequent commits are easier to track.

Conclusion

Mastering Git and GitHub is no longer optional but a necessity for every modern developer. With this tutorial, you now have a solid foundation to:

  • ✅ Manage code versions neatly

  • ✅ Collaborate with developer teams

  • ✅ Build a programming portfolio

  • ✅ Become a more organized programmer

Action Steps Now:

  1. Install Git on your computer.

  2. Create a GitHub account.

  3. Try creating your first repository.

  4. Practice with a small project.

Don't be afraid to experiment and make mistakes—it's part of the learning process! GitHub has a very supportive community for beginner developers.

Happy coding! ðŸš€

Share:

06 October 2016

Kisi-kisi Soal UTS dan UAS Logika dan Algoritma Pemrograman Beserta Jawaban

SOAL A
1. Algoritma berasal dari nama seorang Ilmuwan Arab yang bernama ....
a) Umar Khayyam
b) Al Battani
c) Abu Musa Jabir bin Hayyan
d) Abu Bakar Muhammad bin Zakaria ar-Razi
e) Abu Ja’far Muhammad Ibnu Musa Al Khuwarizmi

2. Setiap langkah algoritma harus didefinisikan dengan tepat dan tidak menimbulkan makna ganda merupakan bagian syarat Algoritma dari ….
a) Output
b) Finiteness
c) Efficiency
d) Input
e) Definiteness

3. Yang bukan termasuk syarat-syarat Algoritma menurut Donald E. Knuth adalah ….
a) Finiteness
b) Definiteness
c) Input
d) Output
e) Efficiency

4. Satu atau lebih instruksi yang dikerjakan secara berurutan sesuai dengan urutan penulisannya. Urutan dari instruksi menentukan hasil akhir dari suatu algoritma merupakan definisi dai struktur dasar Algoritma ....
a) Pengulangan
b) Pemilihan
c) Repetition
d) Selection
e) Sequence

5. Dalam menyusun suatu program, langkah pertama yang harus dilakukan adalah ….
a) Membuat program
b) Membeli komputer
c) Proses
d) Mempelajari program
e) Membuat Algoritma

6. Cara penulisan algoritma yang menyerupai bahasa pemrograman tingkat tinggi disebut dengan ....
a) Pseudocode
b) Assembler
c) Interpreter
d) Translator
e) Emulator

7. Cara penulisan algoritma dengan menggunakan notasi grafis yang merupakan gambar atau bagan yang memperlihatkan urutan atau langkah-langkah dari suatu program dan hubungan antar proses beserta pernyataannya disebut dengan ....
a) Pseudocode
b) Flowchart
c) Emulator
d) Assembler
e) Interpreter

8. Setiap Algoritma akan selalu terdiri dari tiga bagian, bagian tersebut yaitu ….
a) Skripsi, Tesis, Disertasi
b) Header, Deklarasi, Deskripsi
c) Header, Leksikal, Sintaks
d) Sintaks, Leksikal, Deklarasi
e) Semantik, Sintaks, Deskripsi

9. Perhatikan gambar berikut:
Kisi-kisi Soal UTS dan UAS Logika dan Algoritma Pemrograman Beserta Jawaban
Simbol tersebut menggambarkan tentang ....
a) Terminator
b) Proses
c) Input / Output
d) Decision
e) Preparation

10. Tipe data yang hanya mengenal kondisi True atau False pada Bahasa pemrograman C++  adalah ....
a) string
b) char
c) int
d) boolean
e) real

11. Simbol flowchart yang digunakan sebagai awal dan akhir suatu proses adalah ....
a) Start
b) Preparation
c) Decision
d) Input
e) Terminal

12. Suatu nilai yang telah di definisikan dan nilainya tidak akan berubah selama progran tersebut dieksekusi disebut dengan ….
a) Variabel
b) String
c) Operator
d) Integer
e) Konstanta

13. Dalam bahasa C++ terdapat suatu tipe data yang nilainya tidak boleh memiliki nilai desimal adalah ....
a) bolean
b) real
c) string
d) int
e) char

14. Dalam bahasa C++ nilai dari tipe data int memiliki jangkauan nilai sebanyak ....
a) -1024 sampai 1024
b) -128 sampai 128
c) -32768 sampai 32767
d) -256 sampai 256
e) -512 sampai 512

15. Simbol atau kata yang dapat digunakan dalam program untuk melakukan suatu operasi atau manipulasi, seperti menjumlahkan dua nilai, memberikan nilai ke variabel, membandingkan dua buah nilai dan sebagainya disebut dengan ....
a) Operator
b) Variabel
c) String
d) Integer
e) Konstanta

16. +, -, *, dan / merupakan tipe operator dari bagian ....
a) arithmetic operator
b) assignment operator
c) increment dan decrement operator
d) bitwise operator
e) logical operator

17. &&, ||, dan ! merupakan tipe operator dari bagian ....
a) logical operator
b) relational operator
c) increment dan decrement operator
d) assignment operator
e) arithmetic operator

18. >, >=, ==, <=, <, dan != merupakan tipe operator dari bagian ....
a) logical operator
b) relational operator
c) increment dan decrement operator
d) assignment operator
e) arithmetic operator

19. >>, <<, dan ^ merupakan tipe operator dari bagian ....
a) bitwise operator
b) logical operator
c) increment dan decrement operator
d) assignment operator
e) arithmetic operator


20. Tipe data yang digunakan untuk menampung sebuah karakter adalah ....
a) bolean
b) char
c) string
d) int
e) real

21. Identifier berisi data yang dapat dirubah dalam program disebut dengan ....
a) Operator
b) String
c) Variabel
d) Integer
e) Konstanta

22. Suatu alokasi beberapa tempat di memori yang tersimpan secara berurutan yang digunakan untuk menyimpan beberapa nilai dengan tipe data yang homogen disebut dengan ....
a) Operator
b) Array
c) Variabel
d) Integer
e) Konstanta

23. Berikut ini yang tidak termasuk dalam tipe data abstrak adalah ....
a) Boolean
b) Stack
c) Queue
d) List
e) Graph

24. Suatu proses pengulangan kembali alur kerja disebut dengan ....
a) Branching
b) Looping
c) Rekursif
d) Iteratif
e) Searching

25. Suatu proses yang bisa memanggil dirinya sendiri disebut dengan ....
a) Branching
b) Looping
c) Rekursif
d) Iteratif

e) Searching
Share:

Blog Archive