Skip to main content
GCU Logo Mobile
Apply NowRequest Info
  • GCU Login
GCU LoginRequest Info
Grand Canyon University logo in bold purple uppercase text on a white background
  • Degree Programs
    • Areas of Study
      • Business
      • Teaching
      • Language
      • Counseling
      • Psychology
      • Healthcare
      • Nursing
      • Criminal Justice
      • Legal Studies
      • Engineering
      • Science
      • Technology
      • Theology
      • Ministry
      • Digital Arts
      • Digital Media
      • Fine Arts
    • Locations
      • Campus
      • Online
      • Evening
    • Degree Level
      • Bachelor's
      • Master's
      • Doctoral
      • Certificates
      • Bridge
      • Post-Master's
    • Other Course Options
      • Minors
      • Individual Courses
      • High School Dual Enrollment
      • Current Teacher Continuing Education
      All Majors & Programs
      All Majors & Programs
  • Academics
    • Colleges
      • Doctoral
      • Arts & Media
      • Business
      • Education
      • Engineering & Technology
      • Humanities & Social Sciences
      • Natural Sciences
      • Nursing & Health Care
      • Theology
      • Honors
    • More About GCU
      • Academic Catalog & Policies
      • University Accreditation & Regulation
      • Educational Alliances
      • Faculty Directory
      • Office of Assessment
      • Provost Message
      Academics
      Academics
  • Admissions
    • Admissions
      • Admission Requirements
      • Visit Campus
      • Undergraduate Admissions
      • College Transfer Center
      • Graduate & Doctoral Admissions
      • Campus Resources
      Admissions
      Admissions
  • Tuition & Financial Aid
    • Tuition
      • Online & Evening
      • On-Campus
      • Housing & Meal Costs
      • Other Fees
      • Cost of Attendance
    • Financial Aid
      • FAFSA
      • Scholarships & Grants
      • Student Loans
      Tuition & Financial Aid
      Tuition & Financial Aid
  • Why GCU
    • Student Journey
      • Online Learning
      • Campus Life
      • Evening Classes
      • Hybrid Learning
      • Military & Veteran
      • ROTC
      • International Students
      • Native American
    • Our Story
      • University Spirit & Traditions
      • Christian Identity & Mission
      • History & Campus Growth
      • Community Outreach
    • About
      • Leadership Team
      • Campus Locations
      • Blog
      • Offices
      • Contact
      • Media & Branding
      Why GCU
      Why GCU
Apply NowRequest Info

Read time 3 minutes

Published on Jun 21, 2019


In This Article
  • Overview
  • Questions About Arrays
  • Questions About Linked Lists
  • Questions About String Coding
In This Article
Overview
Questions About Arrays
Questions About Linked Lists
Questions About String Coding
Tags
CS and IT
Related Resources

Online Degrees
Admission
Scholarships & Grants
Transfer Center
Unlock Your Potential

Speak with a University Counselor today.

Apply Now
Related Articles In
Engineering & Technology
Instructor observes two students wearing headsets and working on computers in a dark room, focusing on game design and game development projects.

Game Designer vs. Game Developer: Which Path Is Right for You?

Learn the key differences in game designer vs. game developer roles — from creativity to coding — and find out which career path best fits your skills and goals.

10/28/2025

|

4 min read

Student operates drill press in workshop while others work with machinery, illustrating hands-on learning in mechanical engineering technology.

Mechanical Engineering vs. Mechanical Engineering Technology

Explore the key differences between mechanical engineering vs. mechanical engineering technology degrees. Discover which program may be right for you at GCU.

10/27/2025

|

5 min read

Professional working on AI code at dual-monitor setup in modern office, highlighting tech skills and career opportunities in artificial intelligence.

Exploring AI Careers: Turning Advanced Skills Into Practical Impact

Discover how to equip yourself to lead the AI-driven future with technical skills and practical impact across industries like healthcare, finance, law, retail and cybersecurity.

10/20/2025

|

7 min read

The views and opinions expressed in this article are those of the author’s and do not necessarily reflect the official policy or position of Grand Canyon University. Any sources cited were accurate as of the publish date.

We're here to help.

I'm Ready to ApplyI Need More Information
GCU Logo White
1-855-GCU-LOPELive Chat
3300 West Camelback Road  - 
Phoenix, AZ 85017
Grand Canyon University © 2025
All Rights Reserved
  • Majors & Programs
  • Admission
  • Financial Resources
  • Academic Calendar
  • Academic Catalog & Policies
  • Online Learning
  • Why GCU
  • Contact Us
  • Careers
  • Title IX
  • Media & Licensing
  • Consumer Information
  • Financial Disclosures
  • Privacy Policy
  • Cost of Attendance
Find Your Purpose Logo
Video from GCU
FacebookTwitter/XLinkedInInstagramYouTube
  • Current Students
    |
  • Alumni
    |
  • Athletics
    |
  • Arena
    |
  • GCU News
    |
  • Lope Shops
    |
  • GCBC
    |
  • Canyon Promotions
    |
  • Lope House
    |
  • GCU Golf

Privacy / Cookie Disclaimer: Our site uses cookies to personalize content, to provide social media features/ads and to analyze site traffic. We share information about your use of this site with our social media, advertising and analytics teams who may combine it with other information that you’ve provided to them. By continuing to navigate this site you are consenting to the collection of information via our use of cookies. For more information on our cookie collection and use please visit our Privacy Policy.

Share This Story
FacebookTwitter/XLinkedInShare via Email

  1. Home/
  2. Blog/
  3. Engineering & Technology/
  4. The Most Common Programming Interview Questions You’ll Get Asked

The Most Common Programming Interview Questions You’ll Get Asked

image of coding
Start your GCU
journey today.
Step 1: Educational Interests
This helps us connect you with the right enrollment counselor to help you through the process.
Make a selection
Select One
Bachelor's
Master's
Doctoral
Bridge
Make a selection
First select a degree level
Make a selection
First select a degree level and how you would like to attend
Make a selection
First select degree level, modality, and area of interest
Make a selection
Select One
Yes
No
Make a selection
Select One
Yes
No
Make a selection
Select One
Yes
No
West Valley (Phoenix, AZ) ABSN
Select One
Albuquerque, NM ABSN
Boise (Meridian, ID) ABSN
Denver (Englewood, CO) ABSN
East Valley (Chandler, AZ) ABSN
Las Vegas (Henderson, NV) ABSN
Miramar (Miami, FL) ABSN
Orlando (Lake Mary, FL) ABSN
Salt Lake (Sandy, UT) ABSN
St. Louis, MO ABSN
Sun City, AZ ABSN
Tucson, AZ ABSN
West Valley (Phoenix, AZ) ABSN
Make a selection
Select One
Still in High School
High School Diploma or GED
Some College
Associate Degree or over 60 credits
Bachelor's Degree
Master's Degree or Higher
Bachelor's with Cert. & Experience
BS in Nursing
Make a selection
Select One
2029
2028
2027
2026
2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000
1999
1998
1997
1996
1995
1994
1993
1992
1991
1990
1989
1988
1987
1986
1985
1984
1983
1982
1981
1980
1979
1978
1977
1976
1975
1974
1973
1972
1971
1970
1969
1968
1967
1966
1965
1964
1963
1962
1961
1960
1959
1958
1957
1956
1955
1954
1953
1952
1951
1950
1949
1948
1947
1946
1945
1944
1943
1942
1941
1940
1939
1938
1937
1936
1935
U.S. Citizen
U.S. Citizen
Non-U.S. Citizen
No military affiliation
Make a selection
No military affiliation
Active
Spouse
Retired
Veteran
United States
United States
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua And Barbuda
Argentina
Armenia
Aruba
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bosnia And Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Canada
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos (keeling) Islands
Colombia
Comoros
Congo
Congo, The Democratic Republic Of The
Cook Islands
Costa Rica
Cote D'ivoire
Croatia
Cuba
Cyprus
Czech Republic
Denmark
Djibouti
Dominica
Dominican Republic
East Timor
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands (malvinas)
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guinea
Guinea-bissau
Guyana
Haiti
Heard Island And Mcdonald Islands
Holy See (vatican City State)
Honduras
Hong Kong
Hungary
Iceland
India
Indonesia
Iran, Islamic Republic Of
Iraq
Ireland
Israel
Italy
Jamaica
Japan
Jordan
Kazakstan
Kenya
Kiribati
Korea, Democratic People's Republic Of
Korea, Republic Of
Kosovo
Kuwait
Kyrgyzstan
Lao People's Democratic Republic
Latvia
Lebanon
Lesotho
Liberia
Libyan Arab Jamahiriya
Liechtenstein
Lithuania
Luxembourg
Macau
Macedonia, The Former Yugoslav Republic Of
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia, Federated States Of
Moldova, Republic Of
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands
Netherlands Antilles
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
Northern Mariana Islands
Norway
Oman
Pakistan
Palau
Palestinian Territory, Occupied
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russian Federation
Rwanda
Saint Helena
Saint Kitts And Nevis
Saint Lucia
Saint Pierre And Miquelon
Saint Vincent And The Grenadines
Samoa
San Marino
Sao Tome And Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Singapore
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Georgia And The South Sandwich Islands
Spain
Sri Lanka
Sudan
Suriname
Svalbard And Jan Mayen
Swaziland
Sweden
Switzerland
Syrian Arab Republic
Taiwan, Province Of China
Tajikistan
Tanzania, United Republic Of
Thailand
Togo
Tokelau
Tonga
Trinidad And Tobago
Tunisia
Turkey
Turkmenistan
Turks And Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United Kingdom
United States
United States Minor Outlying Islands
Uruguay
Uzbekistan
Vanuatu
Venezuela
Viet Nam
Virgin Islands, British
Virgin Islands, U.s.
Wallis And Futuna
Western Sahara
Yemen
Zambia
Zimbabwe

By clicking submit, you give GCU consent to use automated technology to call and text you regarding educational services. Your consent is not required to receive educational services. GCU will never sell your information. By submitting this form, you agree to GCU's privacy policy.

Computer programmers can make a great impression at the technical interview by being well-prepared for the most common questions. Typically, coders spend weeks studying before each interview. This might seem excessive but remember that the more time you spend preparing for the questions, the more confident you’ll feel in front of the whiteboard.

Questions About Arrays

Interviewers love to ask questions about arrays. In a typical technical interview, you’ll likely get asked multiple questions about them. The problem with them is that, once an array is created, it is impossible to change its size. If you need to make an array shorter or longer, you’ll have to create a brand new array and transfer the elements. To answer array-based questions proficiently, you should brush up on array data structure and programming constructors, like fundamental operators. Consider these common array-based questions and directives:

  • Using Java, reverse an array in place.
  • If an array has multiple duplicates, how can you find duplicate numbers?
  • Using Java, remove duplicates from a particular array.
  • Identify the smallest and largest numbers on an unsorted integer array.

Questions About Linked Lists

Like an array, a linked list stores elements in a linear way. Unlike the array, a linked list does not rely on contiguous storage locations for the elements. Since linked lists are just lists of nodes, you can add or take away elements instead of creating an entirely new linked list. Linked lists are recursive data structures so brush up on the basics of recursion before your technical interview. Consider these common linked list questions and directives:

  • Reverse a linked list.
  • Without recursion, reverse a singly linked list.
  • How can you eliminate duplicate nodes in an unsorted linked list?
  • How can you convert a binary tree to a doubly linked list?
  • How can you swap every two nodes?

Questions About String Coding

If you have a solid knowledge of the array, string-based questions should be easier for you. Strings are a character array. It can be helpful if you remind yourself of the structure of strings, regardless of which programming language you’re using for the solutions. And always remember that strings are immutable. Some of the most common string-based questions and directives include:

  • Find all the permutations of a string.
  • How can you use recursion to reverse a given string?
  • Are two given strings a rotation of each other?
  • Is a given string a palindrome?
  • How can you determine if two strings are anagrams of each other?
  • How could you print duplicate characters from a given string?
  • How can you tell if there are only digits on a given string?

As you can see, there are lots of questions you should prepare for when you’re getting ready for your technical interview. Set aside more time to study than you think you’ll need.

You can prepare for a seamless transition from academia into the workforce with help from the Career IMPACT Center and the Office of Internships. Grand Canyon University is committed to helping our students achieve their career aspirations. If you’re a future student who wants to learn more about our Bachelor of Science in Computer Programming degree, you can click on the link to Request More Information.