Search Header Logo

C Programming and Unix Quiz

Authored by Salma Qadiri

Computers

12th Grade

Used 4+ times

C Programming and Unix Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

73 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

WHAT IS THE MOST IMPORTANT REASON TO LEARN C?

teaches us exactly how our code runs on the chip

Programs written in C run faster than programs written in other languages

C is a memory-safe language

learning C allows us to read a lot of programs

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A 'COMMAND' AT THE UNIX COMMAND LINE IS ACTUALLY A:

Program

All of the above

File

language construct

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

IN A UNIX FILE SYSTEM, FILES ARE ORGANIZED INTO:

A tree

none of the above

A flat namespace

a set of folders

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

IN 13S WE WANT YOU TO USE THE COMMAND LINE TO WRITE SHELL SCRIPTS SO THAT:

you don't need to use the mouse

you move on bad time

your tests are repeatable

you become experts in scripting

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The expression A && !B evaluates to 0 when:

It can never be zero

whenever A evaluates to 0

when A ≠ 0 both evaluate to something other than 0.

when A evaluates to 0 and B evaluates to not 0.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's the value of the expression A && !A?

undefined

0

1

depends on A

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given a variable A of type int what would &A evaluate to?

int value stored by A

address of the value stored by A

0

int value pointed to the variable A.

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?