Mastering Programming Concepts

Mastering Programming Concepts

University

27 Qs

quiz-placeholder

Similar activities

ICA 02

ICA 02

University

22 Qs

Excel

Excel

University

22 Qs

Teste de avaliação UFCD0822

Teste de avaliação UFCD0822

9th Grade - Professional Development

22 Qs

Examen_1p_InfoII

Examen_1p_InfoII

8th Grade - Professional Development

22 Qs

Post Produzione-Foto

Post Produzione-Foto

University - Professional Development

23 Qs

1A_CIT201 - MIDTERM EXAM 2021-2022

1A_CIT201 - MIDTERM EXAM 2021-2022

University

23 Qs

Section 9: Networking (30-36)

Section 9: Networking (30-36)

University

23 Qs

Macromedia Flash

Macromedia Flash

8th Grade - Professional Development

26 Qs

Mastering Programming Concepts

Mastering Programming Concepts

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Mr. Gogoi

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of accessing an element in an array?

O(n^2)

O(log n)

O(1)

O(n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid declaration of a pointer in C?

int ptr;

float *ptr = NULL;

char ptr;

int *ptr;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: int a = 5; printf('%d', a++);?

5.0

5

4

6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of a stack data structure?

To store data in a First In, First Out (FIFO) manner.

To maintain a sorted list of elements.

To manage data in a Last In, First Out (LIFO) manner.

To allow random access to elements in any order.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C, how do you declare a function that returns an integer?

void functionName() {}

int functionName() {}

int functionName[] {}

function intName() {}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print? int x = 10; printf('%d', ++x);

x

12

10

11

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure uses LIFO (Last In, First Out) principle?

Queue

Linked List

Stack

Array

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers