c quiz

c quiz

University

15 Qs

quiz-placeholder

Similar activities

C programming-1

C programming-1

University

13 Qs

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

Python Basics

Python Basics

KG - University

15 Qs

Bahasa Pemrograman Python

Bahasa Pemrograman Python

University

10 Qs

Type data python

Type data python

9th Grade - University

15 Qs

CSC301 Chapter 2

CSC301 Chapter 2

University

10 Qs

[20224] CSC301 Quick Exercise 7-1

[20224] CSC301 Quick Exercise 7-1

University

10 Qs

Python debugging

Python debugging

University

10 Qs

c quiz

c quiz

Assessment

Quiz

Computers

University

Hard

Created by

Jahnavi Siddavaram

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Who is the father of C language?

Steve Jobs

James Gosling

Dennis Ritchie

Rasmus Lerdorf

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Which of the following is true for variable names in C?

They can contain alphanumeric characters as well as special characters

It is not an error to declare a variable to be one of the keywords(like goto, static)

Variable names cannot start with a digit

Variable can be of any length

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. Which of the following cannot be a variable name in C?

volatile

true

friend

export

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Which of the following declaration is not supported by C language?

String str;

char *str;

float str = 3e2;

Both “String str;” and “float str = 3e2;”

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?

Standard input

Standard output

Standard error

All of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. What is meant by ‘a’ in the following C operation?

fp = fopen("Random.txt", "a");

Attach

Append

Apprehend

Add

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. What will be the output of the following C code?

#include <stdio.h>

int main()

{

int y = 1000;

int y = 34;

printf("Hello World! %d\n", y);

return 0;

}

Compile time error

Hello World! 34

Hello World! 1000

Hello World! followed by a junk value

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?