just a trial

just a trial

University

8 Qs

quiz-placeholder

Similar activities

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Network Management Week 14

Network Management Week 14

University

10 Qs

How Safe are you? (Disclaimer: I do not own these questions)

How Safe are you? (Disclaimer: I do not own these questions)

University

10 Qs

QUIZZ 1 : DATABASE FUNDAMENTALS

QUIZZ 1 : DATABASE FUNDAMENTALS

University

10 Qs

MT_Chapter 5 & 6 (set 2)

MT_Chapter 5 & 6 (set 2)

University

10 Qs

SO-750

SO-750

University

10 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

just a trial

just a trial

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

samrudhi pawar

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q1. What will be the output of the following code?

#include <stdio.h>

int main() {

int x = 5;

printf("%d %d %d", x, x++, ++x);

return 0;

}

557

767

Undefined behavior

567

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q2. Which of the following is NOT a valid variable name in C?

a) value

b) total_marks

c) 2ndValue

d) value2

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The keyword used to define a constant in C is _________.

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The ASCII value of character 'A' is _________.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Observe the following code and choose the correct output:

#include <stdio.h>

int main() {

char str[] = "HELLO";

printf("%c", str[1]);

return 0;

}

H

E

L

O

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Assertion & Reason
Assertion (A): The break statement can be used to exit from a loop.
Reason (R): The continue statement terminates the entire program.

a) A and R are true, and R is the correct explanation of A.

b) A and R are true, but R is not the correct explanation of A.

c) A is true, R is false.

d) A is false, R is true.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q8. In C, an array index always starts from 1.

true

false

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?